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

@2gis/mapgl

Package Overview
Dependencies
Maintainers
6
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.24.1 to 1.25.0

2

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

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

@@ -240,2 +240,8 @@ import { MapOptions, FitBoundsOptions, Padding } from './types';

/**
* Sets a new value for the map option.
* @param option Map option name. 'disableDragging' option change is now only available.
* @param value New value of the map option.
*/
setOption(option: 'disableDragging', value: boolean): this;
/**
* Patches map style global variables. Use this method if you want to change a particular variable and left other ones intact.

@@ -242,0 +248,0 @@ *

@@ -81,26 +81,30 @@ import { LngLatBounds } from '../objects/lngLatBounds';

/**
* Enable OSM copyright auto hide after 5 sec
* Enables OSM copyright auto hide after 5 sec
*/
autoHideOSMCopyright?: boolean;
/**
* Set padding for contols layout
* Sets padding for contols layout
*/
controlsLayoutPadding?: Partial<Padding>;
/**
* Disable map zoom on scrolling over the map container.
* Disables map zoom on scrolling over the map container.
*/
disableZoomOnScroll?: boolean;
/**
* Prevent users from rotating a map.
* Prevents users from rotating the map.
*/
disableRotationByUserInteraction?: boolean;
/**
* Prevent center changing while user is zooming or rotating the map by touch.
* Prevents center changing while user is zooming or rotating the map by touch.
*/
keepCenterWhileUserZoomRotate?: boolean;
/**
* Prevent users from pitching a map.
* Prevents users from pitching the map.
*/
disablePitchByUserInteraction?: boolean;
/**
* Prevents the map from dragging.
*/
disableDragging?: boolean;
/**
* Dimensions in pixels applied on each side of the viewport for shifting the vanishing point.

@@ -111,7 +115,7 @@ * the padding on each side has a clamp to a positive value no larger than the map canvas size for either side

/**
* Set preserveDrawingBuffer option to WebGLRenderingContext.
* Sets preserveDrawingBuffer option to WebGLRenderingContext.
*/
preserveDrawingBuffer?: boolean;
/**
* Set default background color, while style is loading
* Sets default background color, while style is loading
*/

@@ -422,2 +426,7 @@ defaultBackgroundColor?: string;

userData?: any;
/**
* HTML marker can be pointer-event target if this option is set to `true` (pointer-events: auto),
* otherwise it can't (pointer-events: none).
*/
interactive?: boolean;
}

@@ -424,0 +433,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