MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

QML MapGroup Element

The MapGroup element aggregates a set of map objects. More...

This element was introduced in Mobility 1.2.

Properties

Detailed Description

Grouping is provided to make it easier to quickly add, remove, show and hide groups of objects.

It also allows users to specify an ordering of objects local to the group via the z-values and insertion order of the objects in the group.

An example of group having a small red circle on top of bigger green circle:

 MapGroup {
     MapCircle {
         color: "green"
         radius: 100
         center: landmark.coordinate
     }
     MapCircle {
         color: "red"
         radius: 30
         center: landmark.coordinate
     }
 }

The MapGroup element is part of the QtMobility.location 1.2 module.

Property Documentation

defaultobjects : list<QGeoMapObject>

This property holds the list of objects which make up the group.

This property group was introduced in Mobility 1.2.


visible : bool

This property holds a boolean corresponding to whether or not the group is visible.

This property group was introduced in Mobility 1.2.


zValue : int

This property holds the z-value of the group.

Map objects are drawn in z-value order, and objects with the same z-value will be drawn in insertion order.

The objects inside the group are drawn according to the z-values and insertion order of the other elements of the group. This is indpendent of the z-value and insertion order of the group element itself.

This property group was introduced in Mobility 1.2.