@2gis/mapgl
Advanced tools
Comparing version 1.5.1 to 1.6.0
{ | ||
"name": "@2gis/mapgl", | ||
"version": "1.5.1", | ||
"version": "1.6.0", | ||
"description": "MapGL API script loader with typings", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -160,2 +160,7 @@ import { MapOptions, LngLatBounds } from './types'; | ||
/** | ||
* Upload styles object by its id and apply it to the map | ||
* @param styleId uuid of the style | ||
*/ | ||
setStyleById(styleId: string): Promise<this>; | ||
/** | ||
* Destroys the map and frees all related resources. | ||
@@ -162,0 +167,0 @@ */ |
@@ -0,1 +1,2 @@ | ||
import type { StyleId } from '@webmaps/jakarta'; | ||
/** | ||
@@ -73,2 +74,10 @@ * Map initialization options. | ||
preserveDrawingBuffer?: boolean; | ||
/** | ||
* Set default background color, while style is loading | ||
*/ | ||
defaultBackgroundColor?: string; | ||
/** | ||
* Set style id | ||
*/ | ||
style?: StyleId; | ||
} | ||
@@ -75,0 +84,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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
42691
1360
0