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

@2gis/mapgl

Package Overview
Dependencies
Maintainers
2
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.2.1 to 1.3.0

2

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

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

@@ -38,6 +38,10 @@ import { MapOptions, LngLatBounds } from './types';

/**
* Returns the current map zoom in degrees.
* Returns the current map zoom.
*/
getZoom(): number;
/**
* Returns the current map style zoom.
*/
getStyleZoom(): number;
/**
* Sets the map rotation angle.

@@ -117,2 +121,10 @@ * @param rotation The desired map rotation in degrees.

/**
* Returns WebGLRenderingContext of the map canvas.
*/
getWebGLContext(): WebGLRenderingContext;
/**
* Returns HTMLCanvasElement of the map.
*/
getCanvas(): HTMLCanvasElement;
/**
* Updates the map size. This method should be called after any change in the map container size.

@@ -119,0 +131,0 @@ */

@@ -57,2 +57,14 @@ /**

disableZoomOnScroll?: boolean;
/**
* Prevent users from rotating a map.
*/
disableRotationByUserInteraction?: boolean;
/**
* Prevent users from pitching a map.
*/
disablePitchByUserInteraction?: boolean;
/**
* Set preserveDrawingBuffer option to WebGLRenderingContext.
*/
preserveDrawingBuffer?: boolean;
}

@@ -59,0 +71,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