@2gis/mapgl
Advanced tools
Comparing version 1.47.1 to 1.48.0
{ | ||
"name": "@2gis/mapgl", | ||
"version": "1.47.1", | ||
"version": "1.48.0", | ||
"description": "MapGL API script loader with typings", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -122,4 +122,7 @@ import { MapOptions, FitBoundsOptions, Padding, StyleState, SupportedSimpleOpts, GLContext } from './types'; | ||
* Returns the geographical bounds visible in the current map view. | ||
* @param skipPadding If true, bounds of the viewport will be calculated without taking padding into account. | ||
*/ | ||
getBounds(): LngLatBoundsClass; | ||
getBounds(options?: { | ||
skipPadding?: boolean; | ||
}): LngLatBoundsClass; | ||
/** | ||
@@ -228,2 +231,7 @@ * Returns pixel coordinates `[x, y, z]`, relative to the map's container, that correspond to the specified geographical coordinates. | ||
/** | ||
* Checks if a style layer with the given identifier exists in the current map style. | ||
* @param layerId The identifier of a layer. | ||
*/ | ||
hasLayer(layerId: string): boolean; | ||
/** | ||
* Adds a style layer to the current map style. | ||
@@ -333,2 +341,8 @@ * @param layer Style layer object. | ||
private _initControls; | ||
/** | ||
* Валидация параметров в опциях инициализации карты (пока выборочно). | ||
* Невалидные будут установлены в undefined, чтобы вызов | ||
* applyOptionalDefaults заменил их на дефолтные. | ||
*/ | ||
private _validateOptions; | ||
} |
@@ -54,2 +54,2 @@ /** | ||
*/ | ||
export declare type Easing = 'linear' | 'easeInQuad' | 'easeOutQuad' | 'easeInOutQuad' | 'easeInCubic' | 'easeOutCubic' | 'easeInOutCubic' | 'easeInQuart' | 'easeOutQuart' | 'easeInOutQuart' | 'easeInQuint' | 'easeOutQuint' | 'easeInOutQuint' | 'easeInSine' | 'easeOutSine' | 'easeInOutSine' | 'easeInExpo' | 'easeOutExpo' | 'easeInOutExpo' | 'easeInCirc' | 'easeOutCirc' | 'easeInOutCirc' | 'easeInElastic' | 'easeOutElastic' | 'easeInOutElastic' | 'easeInBack' | 'easeOutBack' | 'easeInOutBack' | 'easeOutBounce'; | ||
export type Easing = 'linear' | 'easeInQuad' | 'easeOutQuad' | 'easeInOutQuad' | 'easeInCubic' | 'easeOutCubic' | 'easeInOutCubic' | 'easeInQuart' | 'easeOutQuart' | 'easeInOutQuart' | 'easeInQuint' | 'easeOutQuint' | 'easeInOutQuint' | 'easeInSine' | 'easeOutSine' | 'easeInOutSine' | 'easeInExpo' | 'easeOutExpo' | 'easeInOutExpo' | 'easeInCirc' | 'easeOutCirc' | 'easeInOutCirc' | 'easeInElastic' | 'easeOutElastic' | 'easeInOutElastic' | 'easeInBack' | 'easeOutBack' | 'easeInOutBack' | 'easeOutBounce'; |
@@ -239,3 +239,3 @@ import { Style } from './styles'; | ||
*/ | ||
export declare type EventTargetData = GeoJsonEventTargetData | DefaultEventTargetData; | ||
export type EventTargetData = GeoJsonEventTargetData | DefaultEventTargetData; | ||
/** | ||
@@ -242,0 +242,0 @@ * The GeoJson target data of a pointer event. |
@@ -7,3 +7,3 @@ import { LngLatBounds } from '../objects/lngLatBounds'; | ||
import { GeoJsonSource } from '../sources/geoJsonSource'; | ||
export declare type DiscardApplyOptions = 'maxBounds' | 'styleZoom' | 'modelsTilesUrl' | 'modelsTileSet' | 'defaultSourceModelsRootUrl' | 'defaultSourceModelsAppearStrategy' | 'sessionId' | 'tileSessionId' | 'tileServerDefaultLang' | 'keepCenterWhileUserZoomRotate' | 'preserveDrawingBuffer' | 'useRtlTextPlugin' | 'rtlPluginUrl' | 'rtlPluginHash' | 'commercialPoiRandomSeed' | 'disableSurvivedPoiPrevalence' | 'webglVersion' | 'disableBssStatistics' | 'disableBssStatisticsForCommPoi' | 'bssUrl' | 'disableAntiAliasing' | 'key' | 'zoomControl' | 'trafficControl' | 'scaleControl' | 'floorControl' | 'copyright' | 'interactiveCopyright' | 'autoHideOSMCopyright' | 'controlsLayoutPadding' | 'styleState' | 'styleOptions' | 'styleServer' | 'tileServer' | 'tileProtocol' | 'tileSet' | 'commercialTileSet' | 'trafficServer' | 'trafficProtocol' | 'floorsEnabled' | 'floorsUrl' | 'disableAnalytics' | 'subdomains' | 'metroControl' | 'cameraConfig'; | ||
export type DiscardApplyOptions = 'maxBounds' | 'styleZoom' | 'modelsTilesUrl' | 'modelsTileSet' | 'defaultSourceModelsRootUrl' | 'defaultSourceModelsAppearStrategy' | 'sessionId' | 'tileSessionId' | 'tileServerDefaultLang' | 'keepCenterWhileUserZoomRotate' | 'preserveDrawingBuffer' | 'useRtlTextPlugin' | 'rtlPluginUrl' | 'rtlPluginHash' | 'commercialPoiRandomSeed' | 'disableSurvivedPoiPrevalence' | 'webglVersion' | 'disableBssStatistics' | 'disableBssStatisticsForCommPoi' | 'bssUrl' | 'disableAntiAliasing' | 'key' | 'zoomControl' | 'trafficControl' | 'scaleControl' | 'floorControl' | 'copyright' | 'interactiveCopyright' | 'autoHideOSMCopyright' | 'controlsLayoutPadding' | 'styleState' | 'styleOptions' | 'styleServer' | 'tileServer' | 'tileProtocol' | 'tileSet' | 'commercialTileSet' | 'trafficServer' | 'trafficProtocol' | 'floorsEnabled' | 'floorsUrl' | 'disableAnalytics' | 'subdomains' | 'metroControl' | 'cameraConfig' | 'trafficMinZoom' | 'trafficMaxZoom' | 'trafficMaxDetailLevel'; | ||
/** | ||
@@ -498,3 +498,3 @@ * Map initialization options. | ||
*/ | ||
export declare type ControlPosition = 'topLeft' | 'topCenter' | 'topRight' | 'centerLeft' | 'centerRight' | 'bottomLeft' | 'bottomCenter' | 'bottomRight'; | ||
export type ControlPosition = 'topLeft' | 'topCenter' | 'topRight' | 'centerLeft' | 'centerRight' | 'bottomLeft' | 'bottomCenter' | 'bottomRight'; | ||
/** | ||
@@ -1053,9 +1053,9 @@ * Control initialization options. | ||
} | ||
export declare type Source = GeoJsonSource | RasterTileSource; | ||
export declare type WebGLVersion = 1 | 2; | ||
export type Source = GeoJsonSource | RasterTileSource; | ||
export type WebGLVersion = 1 | 2; | ||
/** | ||
* Tile coordinates [x, y, zoom] | ||
*/ | ||
export declare type TileCoords = [number, number, number]; | ||
export declare type SupportedSimpleOpts = 'disableDragging' | 'enableTrackResize' | 'loopWorld'; | ||
export declare type GLContext = WebGLRenderingContext | WebGL2RenderingContext; | ||
export type TileCoords = [number, number, number]; | ||
export type SupportedSimpleOpts = 'disableDragging' | 'enableTrackResize' | 'loopWorld'; | ||
export type GLContext = WebGLRenderingContext | WebGL2RenderingContext; |
@@ -1,2 +0,2 @@ | ||
export declare type InterpolateExpression<T extends number | string> = [ | ||
export type InterpolateExpression<T extends number | string> = [ | ||
'interpolate', | ||
@@ -11,3 +11,3 @@ [ | ||
]; | ||
export declare type StepExpression<T extends number> = ['step', ...T[]]; | ||
export type StepExpression<T extends number> = ['step', ...T[]]; | ||
/** | ||
@@ -18,4 +18,4 @@ * Stub type representing the style layer. | ||
*/ | ||
export declare type Layer = any; | ||
export declare type Style = any; | ||
export type Layer = any; | ||
export type Style = any; | ||
/** | ||
@@ -22,0 +22,0 @@ * Style options - paths to icons and fonts. |
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
87302
2746