MTMapOptions
Parameters of the map object.
Constructors
Initializes map options with center, zoom, bearing, and pitch.
Initializes map options with center and zoom.
Initializes map options with center, zoom and language.
Initializes map options with center, zoom and terrain.
Initializes map options with center, zoom and projection.
Full constructor with optional parameters for all properties.
Properties
Boolean indicating whether attribution control is added directly to the map.
The threshold, measured in degrees, that determines when the map's bearing will snap to north.
Determines whether to cancel, or retain, tiles from the current viewport which are still loading but which belong to a farther (smaller) zoom level than the current one.
Boolean indicating whether cross source collisions are enabled.
Boolean indicating whether the double tap to zoom interaction is enabled.
Boolean indicating whether the drag to pan interaction is enabled.
Boolean indicating whether the drag to rotate interaction is enabled.
The duration of the fade-in/fade-out animation for label collisions, in milliseconds.
Boolean indicating whether geolocate control is added directly to the map.
Boolean indicating whether center is clamped to the ground.
Boolean indicating whether interaction on the map is enabled.
Boolean indicating whether session logic is enabled.
The language of the map.
A value representing the position of the MapTiler wordmark on the map.
Boolean indicating whether MapTiler logo is visible on the map.
The maximum number of tiles stored in the tile cache for a given source.
The maximum number of zoom levels for which to store tiles for a given source.
Boolean indicating whether minimap control is added directly to the map.
Boolean indicating whether navigation control is added directly to the map.
Projection type of the map object.
Boolean indicating whether projection control is added directly to the map.
Boolean indicating whether the map's roll control with "drag to rotate" interaction is enabled.
Boolean indicating whether scale control is added directly to the map.
Boolean indicating whether Resource Timing API information will be collected.
Boolean indicating whether the drag to pitch" interaction is enabled.
Boolean indicating whether the pinch to rotate and zoom interaction is enabled.
Boolean indicating whether the map's pitch control with drag to rotate interaction will be disabled.
Boolean indicating whether the map won't attempt to re-request tiles once they expire.
Boolean indicating whether multiple copies of the world will be rendered side by side beyond -180 and 180 degrees longitude.
Boolean indicating whether style should be validated.
Boolean indicating whether terrain control is added directly to the map.
3D terrain exaggeration factor.
Boolean indicating whether 3D terrain is enabled.