@2gis/mapgl
Advanced tools
Comparing version 1.6.0 to 1.7.0
{ | ||
"name": "@2gis/mapgl", | ||
"version": "1.6.0", | ||
"version": "1.7.0", | ||
"description": "MapGL API script loader with typings", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -165,2 +165,11 @@ import { MapOptions, LngLatBounds } from './types'; | ||
/** | ||
* Sets the desired map language. | ||
* @param language short string code 'en', 'ru', ...etc | ||
*/ | ||
setLanguage(language: string): this; | ||
/** | ||
* Returns the desired map language. | ||
*/ | ||
getLanguage(): string; | ||
/** | ||
* Destroys the map and frees all related resources. | ||
@@ -167,0 +176,0 @@ */ |
@@ -1,2 +0,1 @@ | ||
import type { StyleId } from '@webmaps/jakarta'; | ||
/** | ||
@@ -15,2 +14,8 @@ * Map initialization options. | ||
/** | ||
* Map style zoom. | ||
* Use this option if you want to set the same zoom that is used in the style settings. The styleZoom and zoom options set the same map scale but in different projections. | ||
* If both options are set, the styleZoom has a higher priority than the zoom option. | ||
*/ | ||
styleZoom?: number; | ||
/** | ||
* Minimum map zoom. | ||
@@ -80,5 +85,10 @@ */ | ||
/** | ||
* Set style id | ||
* The map style ID, that you can get at https://styles.2gis.com | ||
*/ | ||
style?: StyleId; | ||
style?: string; | ||
/** | ||
* The desired map language. | ||
* short language code 'en', 'ru', ...etc | ||
*/ | ||
lang?: string; | ||
} | ||
@@ -85,0 +95,0 @@ /** |
@@ -1,5 +0,1 @@ | ||
/** | ||
* Находит по переданному полному src скрипта значение для callback в GET-параметрах. | ||
* Используется во время отложенной инициализации скрипта карты. | ||
*/ | ||
export declare function findCallbackNameInSearchQuery(src: string): string | undefined; | ||
export {}; |
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
43026
1375