Vector elements
Markers, popups, lines and polygons the app puts on the map. Created with kind element.
| Type | Class |
|---|---|
"balloon" | BalloonPopup |
"line" | Line |
"marker" | Marker |
"point" | Point |
"polygon" | Polygon |
"text" | Text |
"balloon" — BalloonPopup
{"type": "balloon", "baseBillboard": …, "style": …, "title": …, "description": …}
{"type": "balloon", "geometry": …, "style": …, "title": …, "description": …}
{"type": "balloon", "position": …, "style": …, "title": …, "description": …}
| Key | Type | Always required | Notes |
|---|---|---|---|
baseBillboard | object std::shared_ptr<Billboard> | no | an id of kind element, or an inline spec |
style | object std::shared_ptr<BalloonPopupStyle> | yes | an id of kind elementstyle, or an inline spec |
title | string | yes | |
description | string | yes | |
geometry | object std::shared_ptr<Geometry> | no | an id of kind geometry, or an inline spec |
position | struct MapPos | no |
| Property | Type | Access | Description |
|---|---|---|---|
balloonPopupEventListener | object vectorelements.BalloonPopupEventListener | read/write | Returns the balloon popup event listener. |
description | string | read/write | Returns the description of this balloon popup. |
style | object styles.BalloonPopupStyle | read/write | Returns the style of this balloon popup. |
title | string | read/write | Returns the title of this balloon popup. |
Inherited from Popup:
| Property | Type | Access | Description |
|---|---|---|---|
anchorPointX | number | read/write | Returns the horizontal anchor point of this popup. |
anchorPointY | number | read/write | Returns the vertical anchor point of this popup. |
style | object styles.PopupStyle | read/write | Returns the style of this Popup. |
Inherited from Billboard:
| Property | Type | Access | Description |
|---|---|---|---|
baseBillboard | object std::shared_ptr<massif::Billboard> | read/write | Returns the base billboard this billboard is attached to. |
bounds | struct massif::MapBounds | read-only | Returns the bounds of this billboard or the base billboard, if there is one. |
geometry | object geometry.Geometry | read/write | Returns the geometry object that defines the location of this billboard. |
rootGeometry | object geometry.Geometry | read-only | Returns the location of the root billboard. If this billboard has a location, this method is equavalent to the Billboard::getGeometry method. If this billboard is attached to another billboard, the hierarchy is traveled recursively and the location of the root billboard is returned. |
rotation | number | read/write | Returns the rotation angle of this billboard. |
Inherited from VectorElement:
| Property | Type | Access | Description |
|---|---|---|---|
bounds | struct massif::MapBounds | read-only | Returns the bounds of this vector element. |
geometry | object geometry.Geometry | read-only | Returns the geometry object that defines the location of this vector element. |
id | integer | read/write | Returns the internal id of this vector element. |
metaData | struct std::map<std::string, massif::Variant> | read/write | Returns a copy of the vector element meta data map. The changes you make to this map are NOT reflected in the actual meta data of the element. |
visible | boolean | read/write | Returns the state of the visibility flag of this vector element. |
"line" — Line
{"type": "line", "geometry": …, "style": …}
{"type": "line", "poses": …, "style": …}
| Key | Type | Always required | Notes |
|---|---|---|---|
geometry | object std::shared_ptr<LineGeometry> | no | an id of kind geometry, or an inline spec |
style | object std::shared_ptr<LineStyle> | yes | an id of kind elementstyle, or an inline spec |
poses | struct std::vector<MapPos> | no |
| Property | Type | Access | Description |
|---|---|---|---|
geometry | object geometry.LineGeometry | read/write | |
style | object std::shared_ptr<massif::LineStyle> | read/write | Returns the style of this line. |
Inherited from VectorElement:
| Property | Type | Access | Description |
|---|---|---|---|
bounds | struct massif::MapBounds | read-only | Returns the bounds of this vector element. |
geometry | object geometry.Geometry | read-only | Returns the geometry object that defines the location of this vector element. |
id | integer | read/write | Returns the internal id of this vector element. |
metaData | struct std::map<std::string, massif::Variant> | read/write | Returns a copy of the vector element meta data map. The changes you make to this map are NOT reflected in the actual meta data of the element. |
visible | boolean | read/write | Returns the state of the visibility flag of this vector element. |
"marker" — Marker
{"type": "marker", "baseBillboard": …, "style": …}
{"type": "marker", "geometry": …, "style": …}
{"type": "marker", "position": …, "style": …}
| Key | Type | Always required | Notes |
|---|---|---|---|
baseBillboard | object std::shared_ptr<Billboard> | no | an id of kind element, or an inline spec |
style | object std::shared_ptr<MarkerStyle> | yes | an id of kind elementstyle, or an inline spec |
geometry | object std::shared_ptr<Geometry> | no | an id of kind geometry, or an inline spec |
position | struct MapPos | no |
| Property | Type | Access | Description |
|---|---|---|---|
style | object std::shared_ptr<massif::MarkerStyle> | read/write | Returns the style of this marker. |
Inherited from Billboard:
| Property | Type | Access | Description |
|---|---|---|---|
baseBillboard | object std::shared_ptr<massif::Billboard> | read/write | Returns the base billboard this billboard is attached to. |
bounds | struct massif::MapBounds | read-only | Returns the bounds of this billboard or the base billboard, if there is one. |
geometry | object geometry.Geometry | read/write | Returns the geometry object that defines the location of this billboard. |
rootGeometry | object geometry.Geometry | read-only | Returns the location of the root billboard. If this billboard has a location, this method is equavalent to the Billboard::getGeometry method. If this billboard is attached to another billboard, the hierarchy is traveled recursively and the location of the root billboard is returned. |
rotation | number | read/write | Returns the rotation angle of this billboard. |
Inherited from VectorElement:
| Property | Type | Access | Description |
|---|---|---|---|
bounds | struct massif::MapBounds | read-only | Returns the bounds of this vector element. |
geometry | object geometry.Geometry | read-only | Returns the geometry object that defines the location of this vector element. |
id | integer | read/write | Returns the internal id of this vector element. |
metaData | struct std::map<std::string, massif::Variant> | read/write | Returns a copy of the vector element meta data map. The changes you make to this map are NOT reflected in the actual meta data of the element. |
visible | boolean | read/write | Returns the state of the visibility flag of this vector element. |
"point" — Point
{"type": "point", "geometry": …, "style": …}
{"type": "point", "position": …, "style": …}
| Key | Type | Always required | Notes |
|---|---|---|---|
geometry | object std::shared_ptr<PointGeometry> | no | an id of kind geometry, or an inline spec |
style | object std::shared_ptr<PointStyle> | yes | an id of kind elementstyle, or an inline spec |
position | struct MapPos | no |
| Property | Type | Access | Description |
|---|---|---|---|
geometry | object geometry.PointGeometry | read/write | |
style | object std::shared_ptr<massif::PointStyle> | read/write | Returns the style of this point. |
Inherited from VectorElement:
| Property | Type | Access | Description |
|---|---|---|---|
bounds | struct massif::MapBounds | read-only | Returns the bounds of this vector element. |
geometry | object geometry.Geometry | read-only | Returns the geometry object that defines the location of this vector element. |
id | integer | read/write | Returns the internal id of this vector element. |
metaData | struct std::map<std::string, massif::Variant> | read/write | Returns a copy of the vector element meta data map. The changes you make to this map are NOT reflected in the actual meta data of the element. |
visible | boolean | read/write | Returns the state of the visibility flag of this vector element. |
"polygon" — Polygon
{"type": "polygon", "poses": …, "holes": …, "style": …}
{"type": "polygon", "geometry": …, "style": …}
{"type": "polygon", "poses": …, "style": …}
| Key | Type | Always required | Notes |
|---|---|---|---|
poses | struct std::vector<MapPos> | no | |
holes | struct std::vector<std::vector<MapPos> > | no | |
style | object std::shared_ptr<PolygonStyle> | yes | an id of kind elementstyle, or an inline spec |
geometry | object std::shared_ptr<PolygonGeometry> | no | an id of kind geometry, or an inline spec |
| Property | Type | Access | Description |
|---|---|---|---|
geometry | object geometry.PolygonGeometry | read/write | |
style | object std::shared_ptr<massif::PolygonStyle> | read/write | Returns the style of this polygon. |
Inherited from VectorElement:
| Property | Type | Access | Description |
|---|---|---|---|
bounds | struct massif::MapBounds | read-only | Returns the bounds of this vector element. |
geometry | object geometry.Geometry | read-only | Returns the geometry object that defines the location of this vector element. |
id | integer | read/write | Returns the internal id of this vector element. |
metaData | struct std::map<std::string, massif::Variant> | read/write | Returns a copy of the vector element meta data map. The changes you make to this map are NOT reflected in the actual meta data of the element. |
visible | boolean | read/write | Returns the state of the visibility flag of this vector element. |
"text" — Text
{"type": "text", "baseBillboard": …, "style": …, "text": …}
{"type": "text", "geometry": …, "style": …, "text": …}
{"type": "text", "position": …, "style": …, "text": …}
| Key | Type | Always required | Notes |
|---|---|---|---|
baseBillboard | object std::shared_ptr<Billboard> | no | an id of kind element, or an inline spec |
style | object std::shared_ptr<TextStyle> | yes | an id of kind elementstyle, or an inline spec |
text | string | yes | |
geometry | object std::shared_ptr<Geometry> | no | an id of kind geometry, or an inline spec |
position | struct MapPos | no |
| Property | Type | Access | Description |
|---|---|---|---|
style | object styles.TextStyle | read/write | Returns the style of this text label. |
title | string | read/write | Returns the display text. |
Inherited from Label:
| Property | Type | Access | Description |
|---|---|---|---|
style | object styles.LabelStyle | read/write | Returns the style of this label. |
Inherited from Billboard:
| Property | Type | Access | Description |
|---|---|---|---|
baseBillboard | object std::shared_ptr<massif::Billboard> | read/write | Returns the base billboard this billboard is attached to. |
bounds | struct massif::MapBounds | read-only | Returns the bounds of this billboard or the base billboard, if there is one. |
geometry | object geometry.Geometry | read/write | Returns the geometry object that defines the location of this billboard. |
rootGeometry | object geometry.Geometry | read-only | Returns the location of the root billboard. If this billboard has a location, this method is equavalent to the Billboard::getGeometry method. If this billboard is attached to another billboard, the hierarchy is traveled recursively and the location of the root billboard is returned. |
rotation | number | read/write | Returns the rotation angle of this billboard. |
Inherited from VectorElement:
| Property | Type | Access | Description |
|---|---|---|---|
bounds | struct massif::MapBounds | read-only | Returns the bounds of this vector element. |
geometry | object geometry.Geometry | read-only | Returns the geometry object that defines the location of this vector element. |
id | integer | read/write | Returns the internal id of this vector element. |
metaData | struct std::map<std::string, massif::Variant> | read/write | Returns a copy of the vector element meta data map. The changes you make to this map are NOT reflected in the actual meta data of the element. |
visible | boolean | read/write | Returns the state of the visibility flag of this vector element. |
Base classes
Not constructed directly. Their properties are reachable on every object above that derives from them.
Billboard
| Property | Type | Access | Description |
|---|---|---|---|
baseBillboard | object std::shared_ptr<massif::Billboard> | read/write | Returns the base billboard this billboard is attached to. |
bounds | struct massif::MapBounds | read-only | Returns the bounds of this billboard or the base billboard, if there is one. |
geometry | object geometry.Geometry | read/write | Returns the geometry object that defines the location of this billboard. |
rootGeometry | object geometry.Geometry | read-only | Returns the location of the root billboard. If this billboard has a location, this method is equavalent to the Billboard::getGeometry method. If this billboard is attached to another billboard, the hierarchy is traveled recursively and the location of the root billboard is returned. |
rotation | number | read/write | Returns the rotation angle of this billboard. |
Inherited from VectorElement:
| Property | Type | Access | Description |
|---|---|---|---|
bounds | struct massif::MapBounds | read-only | Returns the bounds of this vector element. |
geometry | object geometry.Geometry | read-only | Returns the geometry object that defines the location of this vector element. |
id | integer | read/write | Returns the internal id of this vector element. |
metaData | struct std::map<std::string, massif::Variant> | read/write | Returns a copy of the vector element meta data map. The changes you make to this map are NOT reflected in the actual meta data of the element. |
visible | boolean | read/write | Returns the state of the visibility flag of this vector element. |
Label
| Property | Type | Access | Description |
|---|---|---|---|
style | object styles.LabelStyle | read/write | Returns the style of this label. |
Inherited from Billboard:
| Property | Type | Access | Description |
|---|---|---|---|
baseBillboard | object std::shared_ptr<massif::Billboard> | read/write | Returns the base billboard this billboard is attached to. |
bounds | struct massif::MapBounds | read-only | Returns the bounds of this billboard or the base billboard, if there is one. |
geometry | object geometry.Geometry | read/write | Returns the geometry object that defines the location of this billboard. |
rootGeometry | object geometry.Geometry | read-only | Returns the location of the root billboard. If this billboard has a location, this method is equavalent to the Billboard::getGeometry method. If this billboard is attached to another billboard, the hierarchy is traveled recursively and the location of the root billboard is returned. |
rotation | number | read/write | Returns the rotation angle of this billboard. |
Inherited from VectorElement:
| Property | Type | Access | Description |
|---|---|---|---|
bounds | struct massif::MapBounds | read-only | Returns the bounds of this vector element. |
geometry | object geometry.Geometry | read-only | Returns the geometry object that defines the location of this vector element. |
id | integer | read/write | Returns the internal id of this vector element. |
metaData | struct std::map<std::string, massif::Variant> | read/write | Returns a copy of the vector element meta data map. The changes you make to this map are NOT reflected in the actual meta data of the element. |
visible | boolean | read/write | Returns the state of the visibility flag of this vector element. |
Popup
| Property | Type | Access | Description |
|---|---|---|---|
anchorPointX | number | read/write | Returns the horizontal anchor point of this popup. |
anchorPointY | number | read/write | Returns the vertical anchor point of this popup. |
style | object styles.PopupStyle | read/write | Returns the style of this Popup. |
Inherited from Billboard:
| Property | Type | Access | Description |
|---|---|---|---|
baseBillboard | object std::shared_ptr<massif::Billboard> | read/write | Returns the base billboard this billboard is attached to. |
bounds | struct massif::MapBounds | read-only | Returns the bounds of this billboard or the base billboard, if there is one. |
geometry | object geometry.Geometry | read/write | Returns the geometry object that defines the location of this billboard. |
rootGeometry | object geometry.Geometry | read-only | Returns the location of the root billboard. If this billboard has a location, this method is equavalent to the Billboard::getGeometry method. If this billboard is attached to another billboard, the hierarchy is traveled recursively and the location of the root billboard is returned. |
rotation | number | read/write | Returns the rotation angle of this billboard. |
Inherited from VectorElement:
| Property | Type | Access | Description |
|---|---|---|---|
bounds | struct massif::MapBounds | read-only | Returns the bounds of this vector element. |
geometry | object geometry.Geometry | read-only | Returns the geometry object that defines the location of this vector element. |
id | integer | read/write | Returns the internal id of this vector element. |
metaData | struct std::map<std::string, massif::Variant> | read/write | Returns a copy of the vector element meta data map. The changes you make to this map are NOT reflected in the actual meta data of the element. |
visible | boolean | read/write | Returns the state of the visibility flag of this vector element. |
VectorElement
| Property | Type | Access | Description |
|---|---|---|---|
bounds | struct massif::MapBounds | read-only | Returns the bounds of this vector element. |
geometry | object geometry.Geometry | read-only | Returns the geometry object that defines the location of this vector element. |
id | integer | read/write | Returns the internal id of this vector element. |
metaData | struct std::map<std::string, massif::Variant> | read/write | Returns a copy of the vector element meta data map. The changes you make to this map are NOT reflected in the actual meta data of the element. |
visible | boolean | read/write | Returns the state of the visibility flag of this vector element. |