@2gis/mapgl
Advanced tools
Comparing version 1.35.0 to 1.35.1
{ | ||
"name": "@2gis/mapgl", | ||
"version": "1.35.0", | ||
"version": "1.35.1", | ||
"description": "MapGL API script loader with typings", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -1,1 +0,3 @@ | ||
export {}; | ||
export interface BssAdsPriority { | ||
adsPriority?: 'city'; | ||
} |
@@ -7,1 +7,6 @@ export declare const MAPGL_SCRIPT_URL: string; | ||
export declare const defaultMapGLTileServer: string; | ||
export declare const defaultOnpremStyleOptions: { | ||
iconsPath: string; | ||
iconsPathForMap: string; | ||
fontsPath: string; | ||
}; |
@@ -1,2 +0,2 @@ | ||
import { MapOptions, FitBoundsOptions, Padding, StyleState } from './types'; | ||
import { MapOptions, FitBoundsOptions, Padding, StyleState, SupportedSimpleOpts, GLContext } from './types'; | ||
import { MapEventTable } from './types/events'; | ||
@@ -137,3 +137,3 @@ import { AnimationOptions, RotationAnimationOptions, ZoomAnimationOptions } from './types/animations'; | ||
*/ | ||
getWebGLContext(): WebGLRenderingContext; | ||
getWebGLContext(): GLContext; | ||
/** | ||
@@ -272,7 +272,12 @@ * Returns HTMLCanvasElement of the map. | ||
* Sets a new value for the map option. | ||
* @param option Map option name. 'disableDragging' option change is now only available. | ||
* @param option Map option name. Only 'disableDragging', 'enableTrackResize' options are available | ||
* @param value New value of the map option. | ||
*/ | ||
setOption(option: 'disableDragging', value: boolean): this; | ||
setOption(option: SupportedSimpleOpts, value: any): this; | ||
/** | ||
* Gets a value of the map option. | ||
* @param option Map option name. Only 'disableDragging', 'enableTrackResize' options are available | ||
*/ | ||
getOption(option: SupportedSimpleOpts): boolean | undefined; | ||
/** | ||
* Patches map style global variables. Use this method if you want to change a particular variable and left other ones intact. | ||
@@ -279,0 +284,0 @@ * |
@@ -157,2 +157,6 @@ import { LngLatBounds } from '../objects/lngLatBounds'; | ||
/** | ||
* Tracks changes of the map container size and automatically updates the size of the map. | ||
*/ | ||
enableTrackResize?: boolean; | ||
/** | ||
* Sets the map WebGL version. It can be helpful if you use CustomLayer with other WebGL libraries. | ||
@@ -255,7 +259,7 @@ */ | ||
/** | ||
* Minimum display styleZoom of the label. | ||
* Minimum display styleZoom of the label. Note that the label's zoom-dependent visibility is constrained by the marker's minZoom and maxZoom options, if specified. | ||
*/ | ||
minZoom?: number; | ||
/** | ||
* Maximum display styleZoom of the label. | ||
* Maximum display styleZoom of the label. Note that the label's zoom-dependent visibility is constrained by the marker's minZoom and maxZoom options, if specified. | ||
*/ | ||
@@ -832,2 +836,6 @@ maxZoom?: number; | ||
maxZoom?: number; | ||
/** | ||
* Number of coordinates per vertex in the input array (2 by default) | ||
*/ | ||
dimensions?: number; | ||
} | ||
@@ -903,1 +911,3 @@ /** | ||
export declare type WebGLVersion = 1 | 2; | ||
export declare type SupportedSimpleOpts = 'disableDragging' | 'enableTrackResize'; | ||
export declare type GLContext = WebGLRenderingContext | WebGL2RenderingContext; |
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
77491
45
2501