OptionalbackgroundThe default background color of the map is white. To achieve a transparent map background, you can set it to "rgba(0, 0, 0, 0)" or simply use the keyword "transparent".
The background color of the layer at index 0 takes precedence over this color. If that layer has no background color, or the map has no layers, the map background color is used. The map background color can be updated after initialization using Map.setBackgroundColor.
OptionalbehaviorBehavior options of the map. Allow user to "drag" / "rotate" / "pitch" or "zoom" the map by mouse/touch interaction.
"drag" / "rotate" and "pitch" are booleans indicating if user interaction is possible or not. Possible values for "zoom" property are
Optionaldrag?: booleanenable or disable dragging the map
Optionalpitch?: booleanenable or disable pitching the map
OptionalpitchAndRotateModifiers?: ModifierKey | ModifierKey[]Modifier key or keys that activate pitch and rotation with a primary-button drag.
Supported values are 'ctrl', 'meta', 'shift', and 'alt'.
If an array is provided, any one of the keys activates the gesture.
Use an empty array to disable the gesture.
Optionalrotate?: booleanenable or disable rotating the map
Optionalzoom?: boolean | "fixed" | "float"configure map zoom behavior:
Optional ExperimentalcameraSpecifies the vertical offset (in meters) applied to the camera above the terrain surface.
This can be used to prevent the camera from intersecting with the terrain or to achieve a specific visual effect.
Only relevant when a TerrainTileLayer is added to the map.
OptionalcenterCenter coordinate of the map.
OptionaldebugEnables or disables the display of the debug tile grid overlay on the map.
When set to true, a grid will be rendered to visualize the boundaries of map tiles,
which is useful for debugging tile loading and rendering issues.
Optionallayersadd layers to display.
Optionalmaxthe maximum zoom level the map can be zoomed in
OptionalmaxThe maximum angle in degrees the map can be pitched
Optionalminthe minimum zoom level the map can be zoomed out
OptionalminThe minimum threshold in pixels to enable the pan map gesture.
OptionalminThe minimum threshold in pixels to enable the pitch map gesture.
OptionalminThe minimum threshold in pixels to enable the rotate map gesture.
Optionalpitchinitial pitch (tilt) of the map in degree.
Optionalrotateinitial rotation of the map in degree.
OptionalsingleSpecifies whether the map should display the world only once at the maximum zoom-out level, and along which axes.
true: Restricts repetition on both the latitude (Y-axis) and longitude (X-axis).false: Allows infinite repetition on both axes.'latitude': Restricts repetition only on the latitude (Y-axis), allowing infinite panning on the X-axis.'both': Restricts repetition on both latitude and longitude axes.When set to true or 'latitude', zooming out is limited to prevent the map from repeating, allowing it to cover the entire visible area without repetition.
OptionaluiConfigure visibility and position of ui components
Optionalzoomduration of a zoom level change animation in milliseconds.
Optionalzoomlevelzoomlevel of the map.
Options to configure the map display.