Experimental
Optional
Experimental
bearing?: numberThe initial bearing of the map, in degrees.
Optional
Experimental
debug?: booleanEnable debug mode to check the visual representation of performance stats.
Optional
Experimental
initialFirst floor to be rendered. By default, floor with the elevation that's closest to 0 is rendered. All floors will be sorted by elevation in ascending order.
Optional
Experimental
outdoorThe outdoor view options.
Optional
enabled?: booleanEnable or disable the outdoor view.
Optional
layersLayers that should be hidden by geometry. This is useful when you want to hide certain layers when they are below the geometry.
Optional
style?: stringA url to a style specification conforming to the Maplibre Style Spec.
Optional
token?: stringThe token is used to fetch outdoor tiles, which will then be rendered.
Optional
Experimental
pitch?: numberThe initial pitch of the map, in degrees.
Optional
Experimental
shadingEnable shading of bottoms of geometry along with outlines to make geometry stand out.
Optional
Experimental
style?: { Style options for the map.
Optional
Experimental
backgroundBackground alpha value. Only relevant if outdoor map is disabled.
Optional
Experimental
backgroundBackground color. Only relevant if outdoor map is disabled.
Optional
Experimental
outlines?: booleanSet the global outlines for all elements. True will enable outlines, false will disable them.
Optional
Experimental
shading?: boolean | ShadingSet the global shading for all elements. True will use default values, false will disable shading.
Optional
Experimental
wallSpecify a color for the top of wall geometry.
Optional
Experimental
wallSpecify a color for the top of wall geometry.
Optional
Experimental
zoomThe initial zoom level of the map, in mercator zoom levels. If it is not specified, it will default to the level that fits the map bounds.
Options for showing a 3D map.