@2gis/mapgl
Advanced tools
Comparing version 1.24.1 to 1.25.0
{ | ||
"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 @@ /** |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
68105
2186