New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@2gis/mapgl

Package Overview
Dependencies
Maintainers
0
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@2gis/mapgl - npm Package Compare versions

Comparing version 1.48.0 to 1.49.0

2

package.json
{
"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;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc