@2gis/mapgl
Advanced tools
Comparing version 1.48.0 to 1.49.0
{ | ||
"name": "@2gis/mapgl", | ||
"version": "1.48.0", | ||
"version": "1.49.0", | ||
"description": "MapGL API script loader with typings", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -122,3 +122,3 @@ import { MapOptions, FitBoundsOptions, Padding, StyleState, SupportedSimpleOpts, GLContext } from './types'; | ||
* Returns the geographical bounds visible in the current map view. | ||
* @param skipPadding If true, bounds of the viewport will be calculated without taking padding into account. | ||
* @param options.skipPadding If true, bounds of the viewport will be calculated without taking padding into account. | ||
*/ | ||
@@ -336,2 +336,32 @@ getBounds(options?: { | ||
getControlsLayoutPadding(): Padding; | ||
/** | ||
* Hides the layer from the current map style and updates the active layers. | ||
* If only the specified id, then a certain layer will be hidden by id. | ||
* If only the specified type, then all layers with this type will be hidden. | ||
* If both the layer type and id are specified, all layers of the type will be hidden, | ||
* as well as the layer with the specified id, even if it differs from the general hidden type | ||
* (if the layer was visible initially). | ||
* | ||
* @param params.id Id of the hidden layer | ||
* @param params.type Type of hidden layers | ||
*/ | ||
hideLayers(params: { | ||
id?: string; | ||
type?: string; | ||
}): this; | ||
/** | ||
* Shows the layer from the current map style and updates the active layers. | ||
* If only the specified id, then only a certain layer will be visible. | ||
* If only the specified type, then all layers with this type will be visible. | ||
* If both the layer type and id are specified, all layers of the type will be visible, | ||
* as well as the layer with the specified id, even if it differs from the general visible type | ||
* (if the layer was hidden initially). | ||
* | ||
* @param params.id Id of the visible layer | ||
* @param params.type Type of visible layers | ||
*/ | ||
showLayers(params: { | ||
id?: string; | ||
type?: string; | ||
}): this; | ||
private _emitMapEvent; | ||
@@ -338,0 +368,0 @@ private _emitMapErrorEvent; |
88664
2776