Skip to main content

Value types

These are not created with a spec. They arrive as an event payload, a call result or the value of an OBJECT property, and their properties are readable through the same dotted paths.

Address​

PropertyTypeAccessDescription
categoriesstruct std::vector<std::string>read-onlyReturns the list of category tags describing the address.
countrystringread-onlyReturns the country name included in the address.
countystringread-onlyReturns the county name included in the address.
houseNumberstringread-onlyReturns the house number included in the address.
localitystringread-onlyReturns the locality (city, town, village) name included in the address.
namestringread-onlyReturns the name included in the address.
neighbourhoodstringread-onlyReturns the local neighbourhood name included in the address.
postcodestringread-onlyReturns the postcode of the address.
regionstringread-onlyReturns the region name included in the address.
streetstringread-onlyReturns the street name included in the address.

AnimationStyle​

PropertyTypeAccessDescription
fadeAnimationTypeenumread-onlyReturns the fade animation type.
phaseInDurationnumberread-onlyReturns the phase-in duration of the animation.
phaseOutDurationnumberread-onlyReturns the phase-out duration of the animation.
relativeSpeednumberread-onlyReturns the relative speed of the animation.
sizeAnimationTypeenumread-onlyReturns the size-related animation type.

AnimationStyleBuilder​

PropertyTypeAccessDescription
fadeAnimationTypeenumread/writeReturns the fade animation type.
phaseInDurationnumberread/writeReturns the phase-in duration of the animation.
phaseOutDurationnumberread/writeReturns the phase-out duration of the animation.
relativeSpeednumberread/writeReturns the relative speed of the animation.
sizeAnimationTypeenumread/writeReturns the size-related animation type.

BalloonPopupButton​

PropertyTypeAccessDescription
styleobject styles.BalloonPopupButtonStyleread-onlyReturns the style of this button.
tagvariantread/writeReturns the user-defined tag associated with the button.
textstringread-onlyReturns the text of this button.

BalloonPopupButtonClickInfo​

PropertyTypeAccessDescription
buttonobject vectorelements.BalloonPopupButtonread-onlyReturns the clicked button.
clickInfostruct massif::ClickInforead-onlyReturns the click info.
clickTypeenumread-onlyReturns the click type.
vectorElementobject vectorelements.VectorElementread-onlyReturns the clicked vector element.

BalloonPopupButtonStyle​

PropertyTypeAccessDescription
backgroundColorcolorread-onlyReturns the background color of the button.
buttonWidthintegerread-onlyReturns the width of the button. If this value is -1, then button width is calculated automatically based on button text.
cornerRadiusintegerread-onlyReturns the corner radius of the button.
strokeColorcolorread-onlyReturns the color of the stroke surrounding the button.
strokeWidthintegerread-onlyReturns the width of the stroke surrounding the button.
textColorcolorread-onlyReturns the color of the text.
textFontNamestringread-onlyReturns the name of the text font.
textFontSizeintegerread-onlyReturns the size of the text font.
textMarginsstruct massif::BalloonPopupMarginsread-onlyReturns the margins of the text.

Inherited from Style:

PropertyTypeAccessDescription
colorcolorread-onlyReturns the color of the vector element.

BalloonPopupButtonStyleBuilder​

PropertyTypeAccessDescription
buttonWidthintegerread/writeReturns the width of the button. If this value is -1, then button width is calculated automatically based on button text.
cornerRadiusintegerread/writeReturns the corner radius of the button.
strokeColorcolorread/writeReturns the color of the stroke surrounding the button.
strokeWidthintegerread/writeReturns the width of the stroke surrounding the button.
textColorcolorread/writeReturns the color of the text.
textFontNamestringread/writeReturns the name of the text font.
textFontSizeintegerread/writeReturns the size of the text font.
textMarginsstruct massif::BalloonPopupMarginsread/writeReturns the margins of the text.

Inherited from StyleBuilder:

PropertyTypeAccessDescription
colorcolorread/writeReturns the color of the vector element.

BalloonPopupMargins​

PropertyTypeAccessDescription
bottomintegerread-only
leftintegerread-only
rightintegerread-only
topintegerread-only

BaseMapView​

PropertyTypeAccessDescription
cameraPosstruct massif::MapPosread-onlyReturns the position the camera itself is above (the viewpoint), which at a low tilt is far from the focus it looks at. Where a top-down view has to be centred to come back to the same place.
flightActivebooleanread-onlyReturns true while a flyTo animation is running.
flightProgressnumberread-onlyHow far along a flyTo animation is, from 0 to 1, or -1 when none is running. The value the camera is actually at, so an app animating its own state alongside the move reads it rather than its own clock.
focusPosstruct massif::MapPosread-onlyReturns the position that the camera is currently looking at.
rotationnumberread-onlyReturns the map rotation in degrees. 0 means looking north, 90 means west, -90 means east and 180 means south.
tiltnumberread-onlyReturns the tilt angle in degrees. 0 means looking directly at the horizon, 90 means looking directly down.
zoomnumberread-onlyReturns the zoom level. The value returned is never negative, 0 means absolutely zoomed out and all other values describe some level of zoom.
MethodArgumentsReturns
fitBoundsbounds: json, screenBounds: json, integerZoom: bool, resetRotation: bool, resetTilt: bool, durationSeconds: floatvoid
flyTopos: pos, zoom: float, rotation: float, tilt: float, climbHeight: float, durationSeconds: float, easing: stringvoid
mapToScreenpos: posjson
moveCameraTopos: pos, zoom: float, rotation: float, tilt: floatvoid
moveTopos: pos, zoom: float, rotation: float, tilt: floatvoid
screenToMapx: float, y: floatjson
stopFlight—void

CelestialClickInfo​

PropertyTypeAccessDescription
altitudenumberread-onlyReturns the altitude of the clicked object at the time of the click, or the one the click aimed at.
azimuthnumberread-onlyReturns the azimuth of the clicked object at the time of the click, or the one the click aimed at.
celestialObjectobject celestial.CelestialObjectread-onlyReturns the clicked object.
clickInfostruct massif::ClickInforead-onlyReturns the click info.
clickTypeenumread-onlyReturns the click type.

ClickInfo​

PropertyTypeAccessDescription
clickTypeenumread-onlyReturns the click type.
durationnumberread-onlyReturns the click duration in seconds.

ClusteredVectorLayer​

PropertyTypeAccessDescription
animatedClustersbooleanread/writeReturns the cluster animation flag value.
clusterElementBuilderobject layers.ClusterElementBuilderread-onlyReturns the current callback used for creating cluster elements.
maximumClusterZoomnumberread/writeReturns the maximum zoom level when clusters are shown. If zoom level is greater, then clusters are replaced with individual elements. Default is 24.
minimumClusterDistancenumberread/writeReturns the current minimum distance between clusters (in device-independent pixels).

Inherited from VectorLayer:

PropertyTypeAccessDescription
ZBufferingbooleanread/writeReturns true if Z-buffering is enabled for 2D geometry. By default it is disabled and used only for billboards.
dataSourceobject datasources.VectorDataSourceread-onlyReturns the vector data source of this vector layer.
vectorElementEventListenerobject layers.VectorElementEventListenerread/writeReturns the vector element event listener.

Inherited from Layer:

PropertyTypeAccessDescription
cullDelayintegerread/writeReturns the culling delay of the layer in milliseconds.
metaDatastruct std::map<std::string, massif::Variant>read/writeReturns a copy of the layer meta data map. The changes you make to this map are NOT reflected in the actual meta data of the layer.
opacitynumberread/writeReturns the opacity of this layer.
postProcessedbooleanread/writeReturns whether this layer goes through the post-process effect.
updatePriorityintegerread/writeReturns the layer task priority of this layer.
visiblebooleanread/writeReturns the visibility of this layer.
visibleZoomRangestruct massif::MapRangeread/writeReturns the visible zoom range of this layer.
MethodArgumentsReturns
refresh—void
EventPayloadConsumable
vectorelement.clickedVectorElementClickInfoyes

Color​

PropertyTypeAccessDescription
ARGBintegerread-onlyEncodes this map color into 32-bit integer value (ARGB format).
aintegerread-onlyReturns the alpha component of this map color.
bintegerread-onlyReturns the blue component of this map color.
gintegerread-onlyReturns the green component of this map color.
rintegerread-onlyReturns the red component of this map color.

CullState​

PropertyTypeAccessDescription
viewStatestruct massif::ViewStateread-onlyReturns a view state.

CustomPopup​

PropertyTypeAccessDescription
popupHandlerobject vectorelements.CustomPopupHandlerread-onlyReturns the handler used for the 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.

EditableVectorLayer​

PropertyTypeAccessDescription
selectedVectorElementobject std::shared_ptr<massif::VectorElement>read/writeReturns the selected vector element. If no element is currently selected, null is returned.
vectorEditEventListenerobject layers.VectorEditEventListenerread/writeReturns the current edit event listener for the layer.

Inherited from VectorLayer:

PropertyTypeAccessDescription
ZBufferingbooleanread/writeReturns true if Z-buffering is enabled for 2D geometry. By default it is disabled and used only for billboards.
dataSourceobject datasources.VectorDataSourceread-onlyReturns the vector data source of this vector layer.
vectorElementEventListenerobject layers.VectorElementEventListenerread/writeReturns the vector element event listener.

Inherited from Layer:

PropertyTypeAccessDescription
cullDelayintegerread/writeReturns the culling delay of the layer in milliseconds.
metaDatastruct std::map<std::string, massif::Variant>read/writeReturns a copy of the layer meta data map. The changes you make to this map are NOT reflected in the actual meta data of the layer.
opacitynumberread/writeReturns the opacity of this layer.
postProcessedbooleanread/writeReturns whether this layer goes through the post-process effect.
updatePriorityintegerread/writeReturns the layer task priority of this layer.
visiblebooleanread/writeReturns the visibility of this layer.
visibleZoomRangestruct massif::MapRangeread/writeReturns the visible zoom range of this layer.
MethodArgumentsReturns
refresh—void
EventPayloadConsumable
vectorelement.clickedVectorElementClickInfoyes

FeatureBuilder​

PropertyTypeAccessDescription
geometryobject geometry.Geometryread/writeReturns the geometry of the builder.

FeatureCollection​

PropertyTypeAccessDescription
featureCountintegerread-onlyReturns the number of features in this container.
MethodArgumentsReturns
getFeatureindex: intobject

FeatureCollectionSearchService​

PropertyTypeAccessDescription
featureCollectionobject std::shared_ptr<massif::FeatureCollection>read-onlyReturns the feature collection of the search service.
maxResultsintegerread/writeReturns the maximum number of results the search service returns.
projectionobject std::shared_ptr<massif::Projection>read-onlyReturns the projection of the feature collection of the search service.
MethodArgumentsReturns
findFeaturesrequest: handleobject

GeoJSONGeometryReader​

PropertyTypeAccessDescription
targetProjectionobject projections.Projectionread/writeReturns the current target projection. If target projection is set, all geometry coordinates will be converted from WGS84 to target projection coordinate system.

GeoJSONGeometryWriter​

PropertyTypeAccessDescription
sourceProjectionobject projections.Projectionread/writeReturns the current source projection. If source projection is set, all geometry coordinates will be converted from given coordinate system to WGS84.
zbooleanread/writeReturns the state of Z coordinate serialization.

GeocodingResult​

PropertyTypeAccessDescription
addressstruct massif::GeocodingAddressread-onlyReturns the address of the result.
featureCollectionobject std::shared_ptr<massif::FeatureCollection>read-onlyReturns the feature collection of the result.
projectionobject std::shared_ptr<massif::Projection>read-onlyReturns the projection of the geometry in the result.
ranknumberread-onlyReturns the rank of the result. The rank is a normalized number between 0 and 1, 1 meaning a perfect match.

GeometryCollection​

PropertyTypeAccessDescription
geometryobject geometry.MultiGeometryread/write
styleobject std::shared_ptr<massif::GeometryCollectionStyle>read/writeReturns the style of this geometry collection.

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.

GeometryCollectionStyle​

PropertyTypeAccessDescription
lineStyleobject std::shared_ptr<massif::LineStyle>read-onlyReturns the line style.
pointStyleobject std::shared_ptr<massif::PointStyle>read-onlyReturns the point style.
polygonStyleobject std::shared_ptr<massif::PolygonStyle>read-onlyReturns the polygon style.

Inherited from Style:

PropertyTypeAccessDescription
colorcolorread-onlyReturns the color of the vector element.

GeometryCollectionStyleBuilder​

PropertyTypeAccessDescription
lineStyleobject std::shared_ptr<massif::LineStyle>read/writeReturns the line style.
pointStyleobject std::shared_ptr<massif::PointStyle>read/writeReturns the point style.
polygonStyleobject std::shared_ptr<massif::PolygonStyle>read/writeReturns the polygon style.

Inherited from StyleBuilder:

PropertyTypeAccessDescription
colorcolorread/writeReturns the color of the vector element.

Layers​

PropertyTypeAccessDescription
countintegerread-onlyReturns the current layer count.
MethodArgumentsReturns
addlayer: handlevoid
clear—void
getindex: intobject
insertindex: int, layer: handlevoid
removelayer: handlebool
setindex: int, layer: handlevoid

LightStop​

PropertyTypeAccessDescription
ambientColorcolorread-onlyReturns the ambient colour.
ambientIntensitynumberread-onlyReturns the ambient intensity.
sunAltitudenumberread-onlyReturns the sun height this light belongs to.
sunColorcolorread-onlyReturns the directional colour.
sunIntensitynumberread-onlyReturns the directional intensity.

Log​

PropertyTypeAccessDescription
logEventListenerobject utils.LogEventListenerstaticReturns the current log listener.
showDebugbooleanstaticReturns the state of internal debug message logging.
showErrorbooleanstaticReturns the state of error logging.
showInfobooleanstaticReturns the state of general info logging.
showWarnbooleanstaticReturns the state of warning logging.
tagstringstaticReturns the tag for the log events.

ManeuverArrowBuilder​

PropertyTypeAccessDescription
lengthAfternumberread/writeReturns the length of the arrow after the maneuver point.
lengthBeforenumberread/writeReturns the length of the arrow before the maneuver point.

MapBounds​

PropertyTypeAccessDescription
centerstruct massif::MapPosread-onlyCalculates the center map position of this map envelope object.
deltastruct massif::MapVecread-onlyCalculates the difference vector between the maximum and minimum map positions of this map bounds object.
maxstruct massif::MapPosread-onlyReturns the maximum (north east) map position of this map envelope object.
minstruct massif::MapPosread-onlyReturns the minimum (south west) map position of this map envelope object.

MapBoxOnlineGeocodingService​

PropertyTypeAccessDescription
customServiceURLstringread/writeReturns the custom backend service URL.

Inherited from GeocodingService:

PropertyTypeAccessDescription
autocompletebooleanread/write
languagestringread/write
maxResultsintegerread/write
MethodArgumentsReturns
calculateAddressesrequest: handlejson

MapBoxOnlineReverseGeocodingService​

PropertyTypeAccessDescription
customServiceURLstringread/writeReturns the custom backend service URL.

Inherited from ReverseGeocodingService:

PropertyTypeAccessDescription
languagestringread/write
MethodArgumentsReturns
calculateAddressesrequest: handlejson

MapClickInfo​

PropertyTypeAccessDescription
clickInfostruct massif::ClickInforead-onlyReturns the click info.
clickPosstruct massif::MapPosread-onlyReturns the click position.
clickTypeenumread-onlyReturns the click type.

MapEnvelope​

PropertyTypeAccessDescription
boundsstruct massif::MapBoundsread-onlyReturns the map bounds of this map envelope.
convexHullstruct std::vector<massif::MapPos>read-onlyReturns the convex hull of this map envelope.

MapInteractionInfo​

PropertyTypeAccessDescription
animationStartedbooleanread-onlyReturns true if the interaction has started an animation.
panActionbooleanread-onlyReturns true if the interaction included a map pan action.
rotateActionbooleanread-onlyReturns true if the interaction included a rotate action.
tiltActionbooleanread-onlyReturns true if the interaction included a tilt action.
zoomActionbooleanread-onlyReturns true if the interaction included a zoom action.

MapMoveInfo​

PropertyTypeAccessDescription
reasonenumread-onlyReturns what caused the movement.

MapPos​

PropertyTypeAccessDescription
xnumberread-onlyReturns the x coordinate of this map position.
ynumberread-onlyReturns the y coordinate of this map position.
znumberread-onlyReturns the z coordinate of this map position.

MapRange​

PropertyTypeAccessDescription
lengthnumberread-onlyCalculates the length of this map range. Defined as max - min.
maxnumberread-onlyReturns the max value of this map range.
midrangenumberread-onlyCalculate the midrange value.
minnumberread-onlyReturns the min value of this map range.

MapRenderer​

PropertyTypeAccessDescription
mapRendererListenerobject std::shared_ptr<massif::MapRendererListener>read/writeReturns the map renderer listener. Can be null.

MapTile​

PropertyTypeAccessDescription
frameNrintegerread-onlyReturns the time of this map tile.
tileIdintegerread-onlyReturns the internal tile id of this map tile.
xintegerread-onlyReturns the x coordinate of this map tile.
yintegerread-onlyReturns the y coordinate of this map tile.
zoomintegerread-onlyReturns the zoom level of this map tile.

MapVec​

PropertyTypeAccessDescription
lengthnumberread-onlyCalculates the length of this map vector.
normalizedstruct massif::MapVecread-onlyCreates a new map vector by normalizing this map vector.
xnumberread-onlyReturns the x coordinate of this map vector.
ynumberread-onlyReturns the y coordinate of this map vector.
znumberread-onlyReturns the z coordinate of this map vector.

MultiGeometry​

PropertyTypeAccessDescription
geometryCountintegerread-onlyReturns the number of geometry objects in this multi geometry container.

Inherited from Geometry:

PropertyTypeAccessDescription
boundsstruct massif::MapBoundsread-onlyReturns the minimal bounds for the geometry.
centerPosstruct massif::MapPosread-only
geoJSONstringread-onlyReturns the geometry as a GeoJSON string, in its own coordinates. Here rather than only on Feature because serialising a shape otherwise means constructing a GeoJSONGeometryWriter, which no string-based binding can do.
typeenumread-only

NMLModel​

PropertyTypeAccessDescription
rotationAnglenumberread/writeReturns the rotation angle of this model. This is deprecated. Use getRotation instead.
rotationAxisstruct massif::MapVecread/writeReturns the rotation axis of this model. If rotation angle is 0, then the axis is irrelevant.
scalenumberread/writeReturns the scale of this model.
styleobject std::shared_ptr<massif::NMLModelStyle>read/writeReturns the style of this object.

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.

NMLModelStyle​

PropertyTypeAccessDescription
modelAssetobject std::shared_ptr<massif::BinaryData>read-onlyReturns the model asset of the object.
orientationModeenumread-onlyReturns the orientation mode of the model.
scalingModeenumread-onlyReturns the scaling mode of the model.

Inherited from BillboardStyle:

PropertyTypeAccessDescription
animationStyleobject std::shared_ptr<massif::AnimationStyle>read-onlyReturns the animation style of the billboard.
attachAnchorPointXnumberread-onlyReturns the horizontal attaching anchor point of the billoard.
attachAnchorPointYnumberread-onlyReturns the vertical attaching anchor point of the billoard.
causesOverlapbooleanread-onlyReturns the state of the causes overlap flag.
hideIfOverlappedbooleanread-onlyReturns the state of the allow overlap flag.
horizontalOffsetnumberread-onlyReturns the horizontal offset of the billboard.
placementPriorityintegerread-onlyReturns the placement priority of the billboard.
scaleWithDPIbooleanread-onlyReturns the state of the scale with DPI flag.
verticalOffsetnumberread-onlyReturns the vertical offset of the billboard.

Inherited from Style:

PropertyTypeAccessDescription
colorcolorread-onlyReturns the color of the vector element.

NMLModelStyleBuilder​

PropertyTypeAccessDescription
modelAssetobject std::shared_ptr<massif::BinaryData>read/writeReturns the model asset of the object.
orientationModeenumread/writeReturns the orientation mode of the model.
scalingModeenumread/writeReturns the scaling mode of the model.

Inherited from BillboardStyleBuilder:

PropertyTypeAccessDescription
animationStyleobject std::shared_ptr<massif::AnimationStyle>read/writeReturns the animation style of the billboard.
attachAnchorPointXnumberread/writeReturns the horizontal attaching anchor point of the billboard.
attachAnchorPointYnumberread/writeReturns the vertical attaching anchor point of the billboard.
causesOverlapbooleanread/writeReturns the state of the causes overlap flag.
hideIfOverlappedbooleanread/writeReturns the state of the allow overlap flag.
horizontalOffsetnumberread/writeReturns the horizontal offset of the billboard.
placementPriorityintegerread/writeReturns the placement priority of the billboard.
scaleWithDPIbooleanread/writeReturns the state of the scale with DPI flag.
verticalOffsetnumberread/writeReturns the vertical offset of the billboard.

Inherited from StyleBuilder:

PropertyTypeAccessDescription
colorcolorread/writeReturns the color of the vector element.

Options​

PropertyTypeAccessDescription
DPInumberread/writeReturns the dots per inch value.
ambientLightColorcolorread/writeReturns the color of the ambient light.
backgroundBitmap
or background
object std::shared_ptr<massif::Bitmap>read/writeReturns the background bitmap. May be null.
baseProjection
or projection
object projections.Projectionread/writeReturns the base projection.
clearColorcolorread/writeReturns the clear color used by the renderer before drawing anything else. By default, this is white. It should be set to (0, 0, 0, 0) if transparent MapView is needed.
clickMovingTolerancenumberread/writeReturns how far a pointer may travel before a press stops counting as a click.
clickTypeDetectionbooleanread/writeReturns the click type detection state.
debugTileBordersbooleanread/writeReturns the state of the tile border debug overlay.
doubleClickDetectionbooleanread/writeReturns the double click detection state.
doubleClickMaxDurationnumberread/writeReturns the double click max duration in seconds.
drawDistancenumberread/writeReturns the draw distance value.
envelopeThreadPoolSizeintegerread/writeReturns the number of threads used by the envelope task pool.
fieldOfViewYnumberread/writeReturns the vertical field of view angle.
focusPointOffsetstruct massif::ScreenPosread/writeReturns the focus point offset (from screen center) in pixels.
fogOptions
or fog
object std::shared_ptr<massif::FogOptions>read/writeReturns the fog (atmosphere) options. May be null.
freeRoamLookSensitivitynumberread/writeReturns how fast a FREE_ROAM_MODE_LOOK drag turns the view.
freeRoamModeenumread/writeReturns the free roam mode.
freeRoamMoveSpeednumberread/writeReturns the first person move multiplier.
kineticPanbooleanread/writeReturns the state of the kinetic panning flag.
kineticRotationbooleanread/writeReturns the state of the kinetic rotation flag.
kineticZoombooleanread/writeReturns the state of kinetic zoom flag.
labelPaddingnumberread/writeReturns how far outside the viewport labels are placed, in screen pixels.
labelViewDistancenumberread/writeReturns how far labels are placed, in multiples of the camera-to-focus distance.
layersLabelsProcessedInReverseOrderbooleanread/writeReturns wether layers are processed in reversed order to process labels.
lightOptions
or light
object std::shared_ptr<massif::LightOptions>read/writeReturns the light (sun) options. May be null.
longClickDurationnumberread/writeReturns the long click duration in seconds.
mainLightColorcolorread/writeReturns the color of the main light.
mainLightDirectionstruct massif::MapVecread/writeReturns the direction of the main light.
orbitAroundPivotbooleanread/writeReturns true if a tilt gesture orbits the ground under the pointer instead of the screen centre.
panBoundsstruct massif::MapBoundsread/writeReturns the map panning bounds constraints. Map bounds minimum and maximum points are in the base projection's coordinate system.
panningModeenumread/writeReturns the panning mode.
panningSpeedModeenumread/writeReturns the panning speed mode.
pivotModeenumread/writeReturns the pivot mode.
renderProjectionModeenumread/writeReturns the render projection mode.
restrictedPanningbooleanread/writeReturns the state of the restricted panning flag.
rotatablebooleanread/writeReturns the state of the map rotatability flag.
rotationGesturesbooleanread/writeReturns the state of rotation gestures.
seamlessPanningbooleanread/writeReturns the state of seamless horizontal panning flag.
skyColorcolorread/writeReturns the sky color.
skyOptions
or sky
object std::shared_ptr<massif::SkyOptions>read/writeReturns the sky options. May be null.
terrainOptions
or terrain
object std::shared_ptr<massif::TerrainOptions>read/writeReturns the terrain options. May be null if no terrain is configured.
tileDrawSizeintegerread/writeReturns the tile size used for drawing map tiles.
tileLODFactornumberread/writeReturns the factor on the screen size a tile may cover before it is refined.
tileLODMaxZoomLevelsOnScreennumberread/writeReturns how many distinct zoom levels a tilted view may spread over.
tileLODTileCountRationumberread/writeReturns how many times more tiles a tilted view may load than a top-down one.
tileStyleZoomLiftintegerread/writeReturns how many zoom levels above its own a coarsened tile may be styled at.
tileThreadPoolSizeintegerread/writeReturns the number of threads used by the tile task pool.
tiltGestureReversedbooleanread/writeReturns true if tilting gesture direction is reversed (and same as with Google Maps).
tiltRangestruct massif::MapRangeread/writeReturns the tilt range constraint.
userInputbooleanread/writeReturns the state of the user input flag.
zoomGesturesbooleanread/writeReturns the state of zoom gestures.
zoomOffsetnumberread/writeReturns how many zoom levels the camera is offset from the tile-size convention.
zoomRangestruct massif::MapRangeread/writeReturns the zoom range constraint.
EventPayloadConsumable
map.clickedMapClickInfono
map.idle—no
map.interactionMapInteractionInfono
map.movedMapMoveInfono
map.stableMapMoveInfono

PackageInfo​

PropertyTypeAccessDescription
metaInfoobject std::shared_ptr<massif::PackageMetaInfo>read-onlyReturns package meta info. If package contains no meta info, null is returned.
namestringread-onlyReturns the default name (short description) of the package. It is better to use getNames method instead, as each package may contain multiple names. The name returned is generic name or if that is not available, then English name.
packageIdstringread-onlyReturns the internal package id. This should not be displayed to the user.
packageTypeenumread-onlyReturns the package type.
sizeintegerread-onlyReturns the size of the package in bytes. This can be displayed to the user.
tileMaskobject std::shared_ptr<massif::PackageTileMask>read-onlyReturns the encoded tile mask of the package. This is available for map packages but not for routing packages. This should not be displayed to the user.
versionintegerread-onlyReturns the package version. This should not be displayed to the user.

PackageManager​

PropertyTypeAccessDescription
localPackagesstruct std::vector<std::shared_ptr<massif::PackageInfo> >read-only
packageManagerListenerobject packagemanager.PackageManagerListenerread/write
serverPackageListAgeintegerread-only
serverPackageListMetaInfoobject std::shared_ptr<massif::PackageMetaInfo>read-only
serverPackagesstruct std::vector<std::shared_ptr<massif::PackageInfo> >read-only

PackageManagerTileDataSource​

PropertyTypeAccessDescription
packageManagerobject packagemanager.PackageManagerread-onlyReturns the package manager instance used by the data source.

Inherited from TileDataSource:

PropertyTypeAccessDescription
dataExtentstruct massif::MapBoundsread-onlyReturns the extent of the tiles in this data source. The bounds are in coordinate system of the projection of the data source.
maxOverzoomLevelintegerread/writeGets the current maximum overzoom level for this datasource. Over it the datasource will not be "drawn"
maxZoomintegerread-onlyReturns the maximum zoom level supported by this data source.
metaDatastruct std::map<std::string, massif::Variant>read/writeReturns a copy of the data source meta data map; changes to it are not reflected in the source. The map is attached to every loaded tile, e.g. "dem_encoding" ("mapbox" or "terrarium") selects the elevation decoder. A wrapper source with no map of its own answers with its wrapped source's.
minZoomintegerread-onlyReturns the minimum zoom level supported by this data source.
projectionobject projections.Projectionread-onlyReturns the projection of this tile source.
MethodArgumentsReturns
getMetaDataElementkey: stringjson
loadTiletile: tileobject
setMetaDataElementkey: string, value: jsonvoid

PackageMetaInfo​

PropertyTypeAccessDescription
variantvariantread-onlyReturns the underlying variant.

PackageStatus​

PropertyTypeAccessDescription
currentActionenumread-onlyReturns the current action being performed.
pausedbooleanread-onlyReturns the paused state of the action.
progressnumberread-onlyReturns the progress of the action.

PackageTileMask​

PropertyTypeAccessDescription
maxZoomLevelintegerread-onlyReturns maximum zoom level encoded in this tilemask.
stringValuestringread-onlyReturns the encoded tile mask value. This should not be displayed to the user.

PeliasOnlineGeocodingService​

PropertyTypeAccessDescription
customServiceURLstringread/writeReturns the custom backend service URL.

Inherited from GeocodingService:

PropertyTypeAccessDescription
autocompletebooleanread/write
languagestringread/write
maxResultsintegerread/write
MethodArgumentsReturns
calculateAddressesrequest: handlejson

PeliasOnlineReverseGeocodingService​

PropertyTypeAccessDescription
customServiceURLstringread/writeReturns the custom backend service URL.

Inherited from ReverseGeocodingService:

PropertyTypeAccessDescription
languagestringread/write
MethodArgumentsReturns
calculateAddressesrequest: handlejson

Polygon3D​

PropertyTypeAccessDescription
geometryobject geometry.PolygonGeometryread/write
heightnumberread/writeReturns the height of this 3d polygon.
styleobject std::shared_ptr<massif::Polygon3DStyle>read/writeReturns the style of this 3d 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.

Polygon3DStyle​

PropertyTypeAccessDescription
sideColorcolorread-onlyReturns the color for sides of the 3d polygon.

Inherited from Style:

PropertyTypeAccessDescription
colorcolorread-onlyReturns the color of the vector element.

Polygon3DStyleBuilder​

PropertyTypeAccessDescription
sideColorcolorread/writeReturns the color of the 3d polygon sides.

Inherited from StyleBuilder:

PropertyTypeAccessDescription
colorcolorread/writeReturns the color of the vector element.

PopupClickInfo​

PropertyTypeAccessDescription
clickInfostruct massif::ClickInforead-onlyReturns the click info.
clickPosstruct massif::MapPosread-onlyReturns the click position.
clickTypeenumread-onlyReturns the click type.
elementClickPosstruct massif::ScreenPosread-onlyReturns the 2D click position on the clicked popup.
popupobject vectorelements.Popupread-onlyReturns the clicked popup.

PopupDrawInfo​

PropertyTypeAccessDescription
DPToPXnumberread-onlyReturns the value used for converting display independent pixels (dp) to pixels (px).
anchorScreenPosstruct massif::ScreenPosread-onlyReturns the screen position of the anchor point of this popup in pixels.
popupobject vectorelements.Popupread-onlyReturns the popup to draw.
screenBoundsstruct massif::ScreenBoundsread-onlyReturns the screen bounds, so that the popup can be clipped if neccessary.

PostProcessEffect​

PropertyTypeAccessDescription
fragmentShaderstringread-onlyReturns the fragment shader source of the effect.
namestringread-onlyReturns the name of the effect.
terrainDepthRequiredbooleanread/writeReturns true if the effect needs the terrain depth pre-pass (uTerrainDepthTex).
terrainNormalsRequiredbooleanread/writeReturns true if the effect wants the terrain surface normal in the depth pre-pass.
MethodArgumentsReturns
setFloatParametername: string, value: floatvoid

RasterTileClickInfo​

PropertyTypeAccessDescription
clickInfostruct massif::ClickInforead-onlyReturns the click info.
clickPosstruct massif::MapPosread-onlyReturns the click position.
clickTypeenumread-onlyReturns the click type.
interpolatedColorcolorread-onlyReturns the interpolated color at the click position.
layerobject layers.Layerread-onlyReturns the layer of the raster tile.
mapTilestruct massif::MapTileread-onlyReturns the tile id of the clicked feature.
nearestColorcolorread-onlyReturns the color of the nearest pixel to the click position.

RouteMatchingPoint​

PropertyTypeAccessDescription
edgeIndexintegerread-onlyReturns the corresponding matching edge index in the matching result.
posstruct massif::MapPosread-onlyReturns the position of the matching point.
typeenumread-onlyReturns the type of the matching point.

RouteMatchingResult​

PropertyTypeAccessDescription
matchingEdgesstruct std::vector<massif::RouteMatchingEdge>read-onlyReturns the list with details of the matched edges.
matchingPointsstruct std::vector<massif::RouteMatchingPoint>read-onlyReturns the list with details of the matched points.
pointsstruct std::vector<massif::MapPos>read-onlyReturns the point list of the result. The list contains all the points from the request snapped to the road network.
projectionobject std::shared_ptr<massif::Projection>read-onlyReturns the projection of the points in the result.
rawResultstringread-onlyReturns raw result

RoutingInstruction​

PropertyTypeAccessDescription
actionenumread-onlyReturns the action of the instruction.
azimuthnumberread-onlyReturns the azimuth of the initial position.
distancenumberread-onlyReturns the distance to move along the given street.
geometryTagvariantread-onlyReturns the geometry tag associated with the instructions.
instructionstringread-onlyReturns the optional instruction description. This info is dependent on the routing engine (can be empty) and may be localized.
pointIndexintegerread-onlyReturns the index of the first geometry point in external point array.
streetNamestringread-onlyReturns the name of street.
timenumberread-onlyReturns the time approximate duration of the instruction.
turnAnglenumberread-onlyReturns the turn angle of the action.

RoutingResult​

PropertyTypeAccessDescription
instructionCountintegerread-onlyReturns the number of turn-by-turn instructions.
instructionsstruct std::vector<massif::RoutingInstruction>read-onlyReturns the turn-by-turn instruction list.
instructionsJSONstringread-onlyReturns every turn-by-turn instruction as one JSON array, saving a binding call per field. Keys: action (the enum's integer value), pointIndex, streetName, instruction, turnAngle, azimuth, distance, time.
pointCountintegerread-onlyReturns the number of points in the path.
pointsstruct std::vector<massif::MapPos>read-onlyReturns the point list of the result. The list contains all the points the route must pass in correct order.
projectionobject std::shared_ptr<massif::Projection>read-onlyReturns the projection of the points in the result.
rawResultstringread-onlyReturns the raw result.
totalDistancenumberread-onlyReturns the total distance of the path.
totalTimenumberread-onlyReturns the approximate total duration of the path.
MethodArgumentsReturns
getInstructionindex: intobject
getPoints—doubles

ScreenBounds​

PropertyTypeAccessDescription
centerstruct massif::ScreenPosread-onlyCalculates the center screen position of this screen envelope object.
maxstruct massif::ScreenPosread-onlyReturns the maximum screen position of this screen envelope object.
minstruct massif::ScreenPosread-onlyReturns the minimum screen position.

ScreenPos​

PropertyTypeAccessDescription
xnumberread-onlyReturns the x coordinate of this position.
ynumberread-onlyReturns the y coordinate of this position.

TextMargins​

PropertyTypeAccessDescription
bottomintegerread-only
leftintegerread-only
rightintegerread-only
topintegerread-only

TileData​

PropertyTypeAccessDescription
dataobject std::shared_ptr<massif::BinaryData>read-onlyReturns tile data as binary data.
heightintegerread-onlyThe pixel height, or 0 when the data is an encoded file.
maxAgeintegerread/writeReturns the maximum age of the tile data, tile data will expire after that point.
rawPixelsbooleanread-onlyReturns true when getData() holds raw RGBA8 pixels rather than an encoded file. A consumer that turns tiles into bitmaps has to check this before decoding.
replaceWithParentbooleanread/writeReturns true if the tile should be replaced with parent tile.
widthintegerread-onlyThe pixel width, or 0 when the data is an encoded file.
MethodArgumentsReturns
getMetaDataElementkey: stringjson

TileDownloadInfo​

PropertyTypeAccessDescription
progressnumberread-onlyReturns the progress of the download.
tilestruct massif::MapTileread-onlyReturns the tile the event concerns, which is only meaningful for a failure.
tileCountintegerread-onlyReturns the number of tiles the download will fetch.

TomTomOnlineGeocodingService​

PropertyTypeAccessDescription
customServiceURLstringread/writeReturns the custom backend service URL.

Inherited from GeocodingService:

PropertyTypeAccessDescription
autocompletebooleanread/write
languagestringread/write
maxResultsintegerread/write
MethodArgumentsReturns
calculateAddressesrequest: handlejson

TomTomOnlineReverseGeocodingService​

PropertyTypeAccessDescription
customServiceURLstringread/writeReturns the custom backend service URL.

Inherited from ReverseGeocodingService:

PropertyTypeAccessDescription
languagestringread/write
MethodArgumentsReturns
calculateAddressesrequest: handlejson

UTFGridClickInfo​

PropertyTypeAccessDescription
clickInfostruct massif::ClickInforead-onlyReturns the click info.
clickPosstruct massif::MapPosread-onlyReturns the click position.
clickTypeenumread-onlyReturns the click type.
elementInfovariantread-onlyReturns the info tag of the clicked element.
layerobject layers.Layerread-onlyReturns the clicked layer.

Variant​

PropertyTypeAccessDescription
arraySizeintegerread-onlyReturns the number of elements in the array.
boolbooleanread-onlyReturns the boolean value of this variant.
doublenumberread-onlyReturns the floating point value of this variant.
longintegerread-onlyReturns the integer value of this variant.
objectKeysstruct std::vector<std::string>read-onlyReturns all the keys in the object.
stringstringread-onlyReturns the string value of this variant.
typeenumread-onlyReturns the type of this variant.

VectorData​

PropertyTypeAccessDescription
elementsstruct std::vector<std::shared_ptr<massif::VectorElement> >read-onlyReturns the list of vector elements.

VectorElementClickInfo​

PropertyTypeAccessDescription
clickInfostruct massif::ClickInforead-onlyReturns the click info.
clickPosstruct massif::MapPosread-onlyReturns the click position.
clickTypeenumread-onlyReturns the click type.
elementClickPosstruct massif::MapPosread-onlyReturns the position on the clicked element that is closest to the click position: the center for points, the closest point for lines, the anchor point for billboards, getClickPos() for polygons.
layerobject layers.Layerread-onlyReturns the layer of the clicked vector element.
vectorElementobject vectorelements.VectorElementread-onlyReturns the clicked vector element.

VectorElementDragInfo​

PropertyTypeAccessDescription
mapPosstruct massif::MapPosread-onlyReturns the drag position in projection coordinate system of the layer.
screenPosstruct massif::ScreenPosread-onlyReturns the drag position in screen coordinates.
vectorElementobject vectorelements.VectorElementread-onlyReturns the vector element being dragged.
vectorElementDragModeenumread-onlyReturns the drag mode.

VectorElementSearchService​

PropertyTypeAccessDescription
dataSourceobject std::shared_ptr<massif::VectorDataSource>read-onlyReturns the vector data source of the search service.
maxResultsintegerread/writeReturns the maximum number of results the search service returns.

VectorTileClickInfo​

PropertyTypeAccessDescription
clickInfostruct massif::ClickInforead-onlyReturns the click info.
clickPosstruct massif::MapPosread-onlyReturns the click position.
clickTypeenumread-onlyReturns the click type.
featureobject std::shared_ptr<massif::VectorTileFeature>read-onlyReturns the clicked feature.
featureClickPosstruct massif::MapPosread-onlyReturns the position on the clicked feature that is closest to the click position: the center for points, the closest point for lines, the anchor point for billboards, getClickPos() for polygons.
featureIdintegerread-onlyReturns the id of the clicked feature.
featureLayerNamestringread-onlyReturns the name of the layer of the clicked feature. Note that this is the layer name in the tile, not the name of style layer.
featurePosstruct massif::MapPosread-onlyReturns the position of the clicked feature. For a MultiPoint this is the clicked point (see getFeaturePosIndex), not the centre of the set.
featurePosIndexintegerread-onlyIn case of MultiPoint PointGeometry this will return the index of the clicked position
layerobject layers.Layerread-onlyReturns the layer of the vector tile.
mapTilestruct massif::MapTileread-onlyReturns the tile id of the clicked feature.

VectorTileFeature​

PropertyTypeAccessDescription
distancenumberread-only
idintegerread-onlyReturns the id of the feature.
layerNamestringread-onlyReturns the layer name of the feature.
mapTilestruct massif::MapTileread-onlyReturns the map tile of the feature.

Inherited from Feature:

PropertyTypeAccessDescription
geometryobject geometry.Geometryread-onlyReturns the geometry of the feature.
geometryGeoJSONstringread-onlyReturns the feature's geometry as a GeoJSON string, in its own coordinates. Serialising a geometry otherwise means constructing a GeoJSONGeometryWriter in the binding, which every binding then does differently and, in a scripting one, slowly.
propertiesvariantread-onlyReturns the properties of the feature.

VectorTileFeatureBuilder​

PropertyTypeAccessDescription
idintegerread/writeReturns the id of the builder.
layerNamestringread/writeReturns the layer name of the builder.
mapTilestruct massif::MapTileread/writeReturns the map tile of the builder.

Inherited from FeatureBuilder:

PropertyTypeAccessDescription
geometryobject geometry.Geometryread/writeReturns the geometry of the builder.

VectorTileFeatureCollection​

Inherited from FeatureCollection:

PropertyTypeAccessDescription
featureCountintegerread-onlyReturns the number of features in this container.
MethodArgumentsReturns
getFeatureindex: intobject
getFeatureindex: intobject

ViewState​

PropertyTypeAccessDescription
DPInumberread-onlyReturns the dots per inch parameter of the screen.
DPToPXnumberread-onlyReturns a value that is used for converting display independent pixels (dp) to pixels (px). This values depends on the screen density.
FOVYintegerread-onlyReturns the vertical field of view angle.
aspectRationumberread-onlyReturns the aspect ratio of the map screen. Equal to width / height.
cameraChangedbooleanread-onlyReturns the state of the camera changed flag.
farnumberread-onlyReturns the far plane distance.
heightintegerread-onlyReturns the height of the map screen.
nearnumberread-onlyReturns the near plane distance.
rotationnumberread-onlyReturns the camera rotation angle.
screenHeightintegerread-onlyReturns the screen height.
screenWidthintegerread-onlyReturns the screen width.
tiltnumberread-onlyReturns the camera tilt angle. A negative tilt means the view looks above the horizon.
unitToDPCoefnumberread-onlyReturns the conversion ratio between internal map units and screen density independent pixels (DP or DIP). This parameter is dependent on the zoom level, DPI and other screen parameters.
unitToPXCoefnumberread-onlyReturns the conversion ratio between internal map units and screen pixels. This parameter is dependent on the zoom level and other screen parameters.
widthintegerread-onlyReturns the width of the map screen.
zoomnumberread-onlyReturns the camera zoom level.
zoom0Distancenumberread-onlyReturns the distance between the focus and the camera position, when the zoom level is set to 0. This parameter depends on the screen size, DPI, tile draw size and field of view settings.

WKBGeometryWriter​

PropertyTypeAccessDescription
bigEndianbooleanread/writeReturns the endianness of output format.
zbooleanread/writeReturns the state of Z coordinate serialization.

WKTGeometryWriter​

PropertyTypeAccessDescription
zbooleanread/writeReturns the state of Z coordinate serialization.