Skip to main content

Vector elements

Markers, popups, lines and polygons the app puts on the map. Created with kind element.

TypeClass
"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": …}
KeyTypeAlways requiredNotes
baseBillboardobject std::shared_ptr<Billboard>noan id of kind element, or an inline spec
styleobject std::shared_ptr<BalloonPopupStyle>yesan id of kind elementstyle, or an inline spec
titlestringyes
descriptionstringyes
geometryobject std::shared_ptr<Geometry>noan id of kind geometry, or an inline spec
positionstruct MapPosno
PropertyTypeAccessDescription
balloonPopupEventListenerobject vectorelements.BalloonPopupEventListenerread/writeReturns the balloon popup event listener.
descriptionstringread/writeReturns the description of this balloon popup.
styleobject styles.BalloonPopupStyleread/writeReturns the style of this balloon popup.
titlestringread/writeReturns the title of this balloon popup.

Inherited from Popup:

PropertyTypeAccessDescription
anchorPointXnumberread/writeReturns the horizontal anchor point of this popup.
anchorPointYnumberread/writeReturns the vertical anchor point of this popup.
styleobject styles.PopupStyleread/writeReturns the style of this Popup.

Inherited from Billboard:

PropertyTypeAccessDescription
baseBillboardobject std::shared_ptr<massif::Billboard>read/writeReturns the base billboard this billboard is attached to.
boundsstruct massif::MapBoundsread-onlyReturns the bounds of this billboard or the base billboard, if there is one.
geometryobject geometry.Geometryread/writeReturns the geometry object that defines the location of this billboard.
rootGeometryobject geometry.Geometryread-onlyReturns the location of the root billboard: getGeometry() if this billboard has a location, otherwise the location found by following the chain of base billboards to its root.
rotationnumberread/writeReturns the rotation angle of this billboard.

Inherited from VectorElement:

PropertyTypeAccessDescription
boundsstruct massif::MapBoundsread-onlyReturns the bounds of this vector element.
geometryobject geometry.Geometryread-onlyReturns the geometry object that defines the location of this vector element.
idintegerread/writeReturns the internal id of this vector element.
metaDatastruct std::map<std::string, massif::Variant>read/writeReturns 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.
visiblebooleanread/writeReturns the state of the visibility flag of this vector element.

"line" — Line​

{"type": "line", "geometry": …, "style": …}
{"type": "line", "poses": …, "style": …}
KeyTypeAlways requiredNotes
geometryobject std::shared_ptr<LineGeometry>noan id of kind geometry, or an inline spec
styleobject std::shared_ptr<LineStyle>yesan id of kind elementstyle, or an inline spec
posesstruct std::vector<MapPos>no
PropertyTypeAccessDescription
geometryobject geometry.LineGeometryread/write
styleobject std::shared_ptr<massif::LineStyle>read/writeReturns the style of this line.

Inherited from VectorElement:

PropertyTypeAccessDescription
boundsstruct massif::MapBoundsread-onlyReturns the bounds of this vector element.
geometryobject geometry.Geometryread-onlyReturns the geometry object that defines the location of this vector element.
idintegerread/writeReturns the internal id of this vector element.
metaDatastruct std::map<std::string, massif::Variant>read/writeReturns 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.
visiblebooleanread/writeReturns the state of the visibility flag of this vector element.

"marker" — Marker​

{"type": "marker", "baseBillboard": …, "style": …}
{"type": "marker", "geometry": …, "style": …}
{"type": "marker", "position": …, "style": …}
KeyTypeAlways requiredNotes
baseBillboardobject std::shared_ptr<Billboard>noan id of kind element, or an inline spec
styleobject std::shared_ptr<MarkerStyle>yesan id of kind elementstyle, or an inline spec
geometryobject std::shared_ptr<Geometry>noan id of kind geometry, or an inline spec
positionstruct MapPosno
PropertyTypeAccessDescription
styleobject std::shared_ptr<massif::MarkerStyle>read/writeReturns the style of this marker.

Inherited from Billboard:

PropertyTypeAccessDescription
baseBillboardobject std::shared_ptr<massif::Billboard>read/writeReturns the base billboard this billboard is attached to.
boundsstruct massif::MapBoundsread-onlyReturns the bounds of this billboard or the base billboard, if there is one.
geometryobject geometry.Geometryread/writeReturns the geometry object that defines the location of this billboard.
rootGeometryobject geometry.Geometryread-onlyReturns the location of the root billboard: getGeometry() if this billboard has a location, otherwise the location found by following the chain of base billboards to its root.
rotationnumberread/writeReturns the rotation angle of this billboard.

Inherited from VectorElement:

PropertyTypeAccessDescription
boundsstruct massif::MapBoundsread-onlyReturns the bounds of this vector element.
geometryobject geometry.Geometryread-onlyReturns the geometry object that defines the location of this vector element.
idintegerread/writeReturns the internal id of this vector element.
metaDatastruct std::map<std::string, massif::Variant>read/writeReturns 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.
visiblebooleanread/writeReturns the state of the visibility flag of this vector element.

"point" — Point​

{"type": "point", "geometry": …, "style": …}
{"type": "point", "position": …, "style": …}
KeyTypeAlways requiredNotes
geometryobject std::shared_ptr<PointGeometry>noan id of kind geometry, or an inline spec
styleobject std::shared_ptr<PointStyle>yesan id of kind elementstyle, or an inline spec
positionstruct MapPosno
PropertyTypeAccessDescription
geometryobject geometry.PointGeometryread/write
styleobject std::shared_ptr<massif::PointStyle>read/writeReturns the style of this point.

Inherited from VectorElement:

PropertyTypeAccessDescription
boundsstruct massif::MapBoundsread-onlyReturns the bounds of this vector element.
geometryobject geometry.Geometryread-onlyReturns the geometry object that defines the location of this vector element.
idintegerread/writeReturns the internal id of this vector element.
metaDatastruct std::map<std::string, massif::Variant>read/writeReturns 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.
visiblebooleanread/writeReturns 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": …}
KeyTypeAlways requiredNotes
posesstruct std::vector<MapPos>no
holesstruct std::vector<std::vector<MapPos> >no
styleobject std::shared_ptr<PolygonStyle>yesan id of kind elementstyle, or an inline spec
geometryobject std::shared_ptr<PolygonGeometry>noan id of kind geometry, or an inline spec
PropertyTypeAccessDescription
geometryobject geometry.PolygonGeometryread/write
styleobject std::shared_ptr<massif::PolygonStyle>read/writeReturns the style of this polygon.

Inherited from VectorElement:

PropertyTypeAccessDescription
boundsstruct massif::MapBoundsread-onlyReturns the bounds of this vector element.
geometryobject geometry.Geometryread-onlyReturns the geometry object that defines the location of this vector element.
idintegerread/writeReturns the internal id of this vector element.
metaDatastruct std::map<std::string, massif::Variant>read/writeReturns 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.
visiblebooleanread/writeReturns 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": …}
KeyTypeAlways requiredNotes
baseBillboardobject std::shared_ptr<Billboard>noan id of kind element, or an inline spec
styleobject std::shared_ptr<TextStyle>yesan id of kind elementstyle, or an inline spec
textstringyes
geometryobject std::shared_ptr<Geometry>noan id of kind geometry, or an inline spec
positionstruct MapPosno
PropertyTypeAccessDescription
styleobject styles.TextStyleread/writeReturns the style of this text label.
titlestringread/writeReturns the display text.

Inherited from Label:

PropertyTypeAccessDescription
styleobject styles.LabelStyleread/writeReturns the style of this label.

Inherited from Billboard:

PropertyTypeAccessDescription
baseBillboardobject std::shared_ptr<massif::Billboard>read/writeReturns the base billboard this billboard is attached to.
boundsstruct massif::MapBoundsread-onlyReturns the bounds of this billboard or the base billboard, if there is one.
geometryobject geometry.Geometryread/writeReturns the geometry object that defines the location of this billboard.
rootGeometryobject geometry.Geometryread-onlyReturns the location of the root billboard: getGeometry() if this billboard has a location, otherwise the location found by following the chain of base billboards to its root.
rotationnumberread/writeReturns the rotation angle of this billboard.

Inherited from VectorElement:

PropertyTypeAccessDescription
boundsstruct massif::MapBoundsread-onlyReturns the bounds of this vector element.
geometryobject geometry.Geometryread-onlyReturns the geometry object that defines the location of this vector element.
idintegerread/writeReturns the internal id of this vector element.
metaDatastruct std::map<std::string, massif::Variant>read/writeReturns 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.
visiblebooleanread/writeReturns 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​

PropertyTypeAccessDescription
baseBillboardobject std::shared_ptr<massif::Billboard>read/writeReturns the base billboard this billboard is attached to.
boundsstruct massif::MapBoundsread-onlyReturns the bounds of this billboard or the base billboard, if there is one.
geometryobject geometry.Geometryread/writeReturns the geometry object that defines the location of this billboard.
rootGeometryobject geometry.Geometryread-onlyReturns the location of the root billboard: getGeometry() if this billboard has a location, otherwise the location found by following the chain of base billboards to its root.
rotationnumberread/writeReturns the rotation angle of this billboard.

Inherited from VectorElement:

PropertyTypeAccessDescription
boundsstruct massif::MapBoundsread-onlyReturns the bounds of this vector element.
geometryobject geometry.Geometryread-onlyReturns the geometry object that defines the location of this vector element.
idintegerread/writeReturns the internal id of this vector element.
metaDatastruct std::map<std::string, massif::Variant>read/writeReturns 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.
visiblebooleanread/writeReturns the state of the visibility flag of this vector element.

Label​

PropertyTypeAccessDescription
styleobject styles.LabelStyleread/writeReturns the style of this label.

Inherited from Billboard:

PropertyTypeAccessDescription
baseBillboardobject std::shared_ptr<massif::Billboard>read/writeReturns the base billboard this billboard is attached to.
boundsstruct massif::MapBoundsread-onlyReturns the bounds of this billboard or the base billboard, if there is one.
geometryobject geometry.Geometryread/writeReturns the geometry object that defines the location of this billboard.
rootGeometryobject geometry.Geometryread-onlyReturns the location of the root billboard: getGeometry() if this billboard has a location, otherwise the location found by following the chain of base billboards to its root.
rotationnumberread/writeReturns the rotation angle of this billboard.

Inherited from VectorElement:

PropertyTypeAccessDescription
boundsstruct massif::MapBoundsread-onlyReturns the bounds of this vector element.
geometryobject geometry.Geometryread-onlyReturns the geometry object that defines the location of this vector element.
idintegerread/writeReturns the internal id of this vector element.
metaDatastruct std::map<std::string, massif::Variant>read/writeReturns 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.
visiblebooleanread/writeReturns the state of the visibility flag of this vector element.
PropertyTypeAccessDescription
anchorPointXnumberread/writeReturns the horizontal anchor point of this popup.
anchorPointYnumberread/writeReturns the vertical anchor point of this popup.
styleobject styles.PopupStyleread/writeReturns the style of this Popup.

Inherited from Billboard:

PropertyTypeAccessDescription
baseBillboardobject std::shared_ptr<massif::Billboard>read/writeReturns the base billboard this billboard is attached to.
boundsstruct massif::MapBoundsread-onlyReturns the bounds of this billboard or the base billboard, if there is one.
geometryobject geometry.Geometryread/writeReturns the geometry object that defines the location of this billboard.
rootGeometryobject geometry.Geometryread-onlyReturns the location of the root billboard: getGeometry() if this billboard has a location, otherwise the location found by following the chain of base billboards to its root.
rotationnumberread/writeReturns the rotation angle of this billboard.

Inherited from VectorElement:

PropertyTypeAccessDescription
boundsstruct massif::MapBoundsread-onlyReturns the bounds of this vector element.
geometryobject geometry.Geometryread-onlyReturns the geometry object that defines the location of this vector element.
idintegerread/writeReturns the internal id of this vector element.
metaDatastruct std::map<std::string, massif::Variant>read/writeReturns 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.
visiblebooleanread/writeReturns the state of the visibility flag of this vector element.

VectorElement​

PropertyTypeAccessDescription
boundsstruct massif::MapBoundsread-onlyReturns the bounds of this vector element.
geometryobject geometry.Geometryread-onlyReturns the geometry object that defines the location of this vector element.
idintegerread/writeReturns the internal id of this vector element.
metaDatastruct std::map<std::string, massif::Variant>read/writeReturns 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.
visiblebooleanread/writeReturns the state of the visibility flag of this vector element.