Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@2gis/mapgl

Package Overview
Dependencies
Maintainers
7
Versions
86
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.32.1 to 1.33.0

2

package.json
{
"name": "@2gis/mapgl",
"version": "1.32.1",
"version": "1.33.0",
"description": "MapGL API script loader with typings",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -81,7 +81,7 @@ import { MapOptions, FitBoundsOptions, Padding, StyleState } from './types';

/**
* Return the current minimum map zoom.
* Returns the current minimum map zoom.
*/
getMinZoom(): number;
/**
* Return the current maximum map zoom.
* Returns the current maximum map zoom.
*/

@@ -165,3 +165,3 @@ getMaxZoom(): number;

/**
* Upload styles object by its id and apply it to the map.
* Uploads styles object by its id and apply it to the map.
* Returns a promise that contains param styleId.

@@ -246,3 +246,3 @@ * @param styleId uuid of the style.

/**
* Sets whole map style global variables at once, any previously set variables will be reset or overriden.
* Sets whole map style global variables at once, any previously set variables will be reset or overridden.
*

@@ -289,7 +289,7 @@ * @param styleState

/**
* Call the map rerender.
* Calls the map rerender.
*/
triggerRerender(): void;
/**
* Set padding for controls layout.
* Sets padding for controls layout.
* @param {Partial<Padding>} padding. Unspecified values will be replaced with default values.

@@ -299,3 +299,3 @@ */

/**
* Get current padding of controls layout.
* Gets current padding of controls layout.
*/

@@ -302,0 +302,0 @@ getControlsLayoutPadding(): Padding;

@@ -139,7 +139,7 @@ import { Style } from './styles';

/**
* Emitted after the style load on the map.
* Emitted after the map style is loaded.
*/
styleload: StyleLoadEvent;
/**
* Emitted after the change language on the map.
* Emitted after the map language is changed.
*/

@@ -146,0 +146,0 @@ changeLanguage: ChangeLanguageEvent;

@@ -87,2 +87,5 @@ import { LngLatBounds } from '../objects/lngLatBounds';

* Enables OSM copyright auto hide after 5 sec
*
* **[DEPRECATED]** This option is no longer supported and will be removed in the next major release.
* @deprecated
*/

@@ -154,6 +157,3 @@ autoHideOSMCopyright?: boolean;

/**
* Устанавливает используемую версию WebGL.
*
* Настройка пригодится для глубокой интеграции карты, например при использовании CustomLayer,
* когда важно какая версия WebGL будет использоваться.
* Sets the map WebGL version. It can be helpful if you use CustomLayer with other WebGL libraries.
*/

@@ -761,2 +761,6 @@ webglVersion?: WebGLVersion;

animation?: AnimationOptions;
/**
* The limit for the maximum zoom.
*/
maxZoom?: number;
}

@@ -773,3 +777,3 @@ /**

export interface FeatureState {
[key: string]: number | string | boolean;
[key: string]: number | string | boolean | null;
}

@@ -776,0 +780,0 @@ /**

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