Map
()
(style)
Upload styles object by its id and apply it to the map.
(styleState)
Sets whole map style global variables at once, any previously set variables will be reset or overriden.
(styleState)
Patches map style global variables. Use this method if you want to change a particular variable and leave other ones intact.
(bounds, options)
Pans and zooms the map to contain its visible area within the specified geographical bounds. This method also resets the map pitch and rotation to 0. But the map rotation can be saved by option considerRotation.
bounds
LonLatBounds
The geographical bounds to fit in
options
FitBoundsOptions?
FitBounds options
(options)
Tests whether the current browser supports MapGL. Use our raster map implementation https://api.2gis.ru/doc/maps/en/quickstart/ if not.
(options)
Tests whether the current browser supports MapGL and returns the reason if not
center
rotation
maxZoom
minZoom
zoom
styleZoom
maxPitch
minPitch
pitch
bounds
disableRotationByUserInteraction
disablePitchByUserInteraction
autoHideOSMCopyright
floorPlan
The floor plan currently displayed on the map.
padding
Padding in density independent pixels from the different sides of the map canvas. It influences map moving methods such as fitBounds.
language
The desired map language. Short language code "en", "ru", etc.
userLocation