@2gis/mapgl
Advanced tools
Comparing version 1.2.1 to 1.3.0
{ | ||
"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 @@ /** |
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
41089
1327