@2gis/mapgl
Advanced tools
Comparing version 1.28.0 to 1.29.0
{ | ||
"name": "@2gis/mapgl", | ||
"version": "1.28.0", | ||
"version": "1.29.0", | ||
"description": "MapGL API script loader with typings", | ||
@@ -22,7 +22,6 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@webmaps/jakarta": "*", | ||
"@webmaps/mapgl-api": "*", | ||
"@webmaps/mapgl-api": "^1.29.0-types", | ||
"ts-loader": "^9.2.6", | ||
"tslib": "^2.3.1", | ||
"typescript": "^4.3.5", | ||
"typescript": "^4.6.4", | ||
"webpack": "^5.69.1", | ||
@@ -29,0 +28,0 @@ "webpack-cli": "^4.9.2" |
@@ -17,3 +17,4 @@ import { Map } from './map'; | ||
import { RasterTileSource } from './sources/rasterTileSource'; | ||
export { Map, Marker, Label, HtmlMarker, Control, ZoomControl, TrafficControl, ScaleControl, FloorControl, CircleMarker, Circle, Polygon, Polyline, GeoJsonSource, RasterTileSource, Raster, }; | ||
import { DefaultSource } from './sources/defaultSource'; | ||
export { Map, Marker, Label, HtmlMarker, Control, ZoomControl, TrafficControl, ScaleControl, FloorControl, CircleMarker, Circle, Polygon, Polyline, GeoJsonSource, DefaultSource, RasterTileSource, Raster, }; | ||
export { LngLatBounds, LngLatBoundsClass } from './objects/lngLatBounds'; | ||
@@ -20,0 +21,0 @@ export { AnimationOptions, RotationAnimationOptions, Easing } from './types/animations'; |
@@ -1,2 +0,2 @@ | ||
import { MapOptions, FitBoundsOptions, Padding } from './types'; | ||
import { MapOptions, FitBoundsOptions, Padding, StyleState } from './types'; | ||
import { MapEventTable } from './types/events'; | ||
@@ -7,2 +7,3 @@ import { AnimationOptions, RotationAnimationOptions } from './types/animations'; | ||
import { Layer } from './types/styles'; | ||
import { DefaultSource } from './sources/defaultSource'; | ||
/** | ||
@@ -13,2 +14,6 @@ * The main class for map initialization. | ||
/** | ||
* @hidden | ||
*/ | ||
private defaultSource; | ||
/** | ||
* Example: | ||
@@ -112,2 +117,6 @@ * ```js | ||
/** | ||
* Returns true if the map isn't moving and has rendered all the viewport tiles. | ||
*/ | ||
isIdle(): boolean; | ||
/** | ||
* Returns the geographical bounds visible in the current map view. | ||
@@ -192,2 +201,6 @@ */ | ||
/** | ||
* Returns the map default source. | ||
*/ | ||
getDefaultSource(): DefaultSource; | ||
/** | ||
* Sets the map padding. | ||
@@ -231,5 +244,3 @@ * the padding on each side has a clamp to a positive value no larger than the map canvas size for either side | ||
*/ | ||
setStyleState(styleState: { | ||
[key: string]: boolean; | ||
}): this; | ||
setStyleState(styleState: StyleState): this; | ||
/** | ||
@@ -255,5 +266,3 @@ * Sets options that affect the map style. | ||
*/ | ||
patchStyleState(styleState: { | ||
[key: string]: boolean; | ||
}): this; | ||
patchStyleState(styleState: StyleState): this; | ||
/** | ||
@@ -260,0 +269,0 @@ * Destroys the map and frees all related resources. |
@@ -5,3 +5,3 @@ import { Map } from '../map'; | ||
/** | ||
* * Class for creating geoJson data source on the map | ||
* Class for creating GeoJSON data source in the map. | ||
*/ | ||
@@ -8,0 +8,0 @@ export declare class GeoJsonSource { |
@@ -107,2 +107,3 @@ import { Style } from './styles'; | ||
* Idle means that the map is not interacting, all tiles are drawn and labeling is finished. | ||
* This event doesn't take into account any asset loading (for example, marker icons). | ||
*/ | ||
@@ -109,0 +110,0 @@ idle: MapEvent; |
@@ -133,5 +133,3 @@ import { LngLatBounds } from '../objects/lngLatBounds'; | ||
*/ | ||
styleState?: { | ||
[key: string]: boolean; | ||
}; | ||
styleState?: StyleState; | ||
/** | ||
@@ -156,2 +154,5 @@ * Map style options. Containts path to style assets - icons and fonts. | ||
} | ||
export interface StyleState { | ||
[key: string]: number | string | boolean | number[] | string[] | undefined; | ||
} | ||
/** | ||
@@ -770,2 +771,22 @@ * Options for Map.isSupported method. | ||
/** | ||
* FeatureState attributes. | ||
*/ | ||
export interface FeatureState { | ||
[key: string]: number | string | boolean; | ||
} | ||
/** | ||
* FeatureStateMap source attributes. | ||
* | ||
* Example: | ||
* ```js | ||
* const featureStateMap = { | ||
* "123448123931": {"height":300}, | ||
* "321231323121": {"height":200}, | ||
* } | ||
* ``` | ||
*/ | ||
export interface FeatureStateMap { | ||
[key: string]: FeatureState; | ||
} | ||
/** | ||
* GeoJson data source initialization options. | ||
@@ -772,0 +793,0 @@ */ |
@@ -24,3 +24,7 @@ export declare type InterpolateExpression<T extends number | string> = [ | ||
iconsPath: string; | ||
/** | ||
* @hidden | ||
*/ | ||
iconsPathForMap?: string; | ||
fontsPath: string; | ||
} |
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
72697
6
44
2363