azure-maps-control 3.0.1 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ReadMe.md +2 -2
- package/dist/atlas-core-bare-snr-min.js +1 -1
- package/dist/atlas-core-bare-snr.js +41 -16
- package/dist/atlas-core-bare.js +59 -33
- package/dist/atlas-core-bare.min.js +1 -1
- package/dist/atlas-core-snr.js +651 -235
- package/dist/atlas-core.js +669 -252
- package/dist/atlas-core.min.js +4 -4
- package/dist/atlas-esm.js +117160 -0
- package/dist/atlas-esm.min.js +108 -0
- package/dist/atlas.js +669 -252
- package/dist/atlas.min.js +4 -4
- package/package.json +7 -4
- package/thirdpartynotices.txt +0 -0
- package/typings/index.d.ts +17 -16
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "azure-maps-control",
|
|
3
3
|
"author": "Microsoft Corporation",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.3",
|
|
5
5
|
"description": "Map SDK for Azure Maps",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"azure",
|
|
@@ -35,7 +35,8 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@azure/msal-browser": "^2.32.1",
|
|
38
|
-
"@mapbox/mapbox-gl-supported": "^2.0.1"
|
|
38
|
+
"@mapbox/mapbox-gl-supported": "^2.0.1",
|
|
39
|
+
"@maplibre/maplibre-gl-style-spec": "^19.3.0"
|
|
39
40
|
},
|
|
40
41
|
"devDependencies": {
|
|
41
42
|
"@mapbox/mapbox-gl-rtl-text": "^0.2.3",
|
|
@@ -52,7 +53,7 @@
|
|
|
52
53
|
"@typescript-eslint/eslint-plugin": "^6.4.0",
|
|
53
54
|
"@typescript-eslint/parser": "^6.4.0",
|
|
54
55
|
"atob": "^2.1.2",
|
|
55
|
-
"azuremaps-maplibre-gl": "^3.
|
|
56
|
+
"azuremaps-maplibre-gl": "^3.6.1",
|
|
56
57
|
"canvas": "^2.10.2",
|
|
57
58
|
"es-abstract": "^1.20.1",
|
|
58
59
|
"eslint": "^8.39.0",
|
|
@@ -84,6 +85,7 @@
|
|
|
84
85
|
"yargs": "^17.7.2"
|
|
85
86
|
},
|
|
86
87
|
"overrides": {
|
|
88
|
+
"@babel/core": "7.23.2",
|
|
87
89
|
"rollup": "^3.28.0"
|
|
88
90
|
},
|
|
89
91
|
"license": "SEE LICENSE IN LICENSE.TXT",
|
|
@@ -93,5 +95,6 @@
|
|
|
93
95
|
"thirdpartynotices.txt"
|
|
94
96
|
],
|
|
95
97
|
"types": "./typings/index.d.ts",
|
|
96
|
-
"main": "./dist/atlas.min.js"
|
|
98
|
+
"main": "./dist/atlas.min.js",
|
|
99
|
+
"module": "./dist/atlas-esm.min.js"
|
|
97
100
|
}
|
package/thirdpartynotices.txt
CHANGED
|
Binary file
|
package/typings/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PublicClientApplication } from "@azure/msal-browser";
|
|
2
|
-
import { DataDrivenPropertyValueSpecification, PropertyValueSpecification, ExpressionFilterSpecification
|
|
2
|
+
import { DataDrivenPropertyValueSpecification, PropertyValueSpecification, ExpressionFilterSpecification } from "@maplibre/maplibre-gl-style-spec";
|
|
3
3
|
|
|
4
|
+
type PositionAnchor = "center" | "top" | "bottom" | "left" | "right" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
4
5
|
type Position = atlas.data.Position;
|
|
5
6
|
declare namespace atlas {
|
|
6
7
|
|
|
@@ -221,7 +222,7 @@ declare namespace atlas {
|
|
|
221
222
|
* @param data The FeatureCollection, Feature, Geometry, Shape or array of these objects to calculate the bounding box for.
|
|
222
223
|
* @returns A bounding box in the format [minLon, minLat, maxLon, maxLat].
|
|
223
224
|
*/
|
|
224
|
-
static fromData(data: FeatureCollection | Feature<Geometry, any> | Geometry | Shape | Array<FeatureCollection | Feature<Geometry, any> | Geometry>): BoundingBox;
|
|
225
|
+
static fromData(data: FeatureCollection | Feature<Geometry, any> | Geometry | Shape | Array<FeatureCollection | Feature<Geometry, any> | Geometry | Shape>): BoundingBox;
|
|
225
226
|
/**
|
|
226
227
|
* Splits a BoundingBox that crosses the Antimeridian into two BoundingBox's. One entirely west of the Antimerdian and another entirely east of the Antimerdian.
|
|
227
228
|
* @param bounds
|
|
@@ -657,9 +658,9 @@ declare namespace atlas {
|
|
|
657
658
|
* A control for changing the pitch of the map.
|
|
658
659
|
*/
|
|
659
660
|
export class PitchControl extends ControlBase {
|
|
660
|
-
protected static PITCH_DURATION_MS;
|
|
661
|
-
protected static DEFAULT_PITCH;
|
|
662
|
-
protected static INVERT_ORDER_POSITIONS;
|
|
661
|
+
protected static PITCH_DURATION_MS: number;
|
|
662
|
+
protected static DEFAULT_PITCH: number;
|
|
663
|
+
protected static INVERT_ORDER_POSITIONS: ControlPosition[];
|
|
663
664
|
|
|
664
665
|
protected container: HTMLDivElement | null;
|
|
665
666
|
protected map: Map | null;
|
|
@@ -668,7 +669,7 @@ declare namespace atlas {
|
|
|
668
669
|
protected pitchDecrementButton: HTMLButtonElement | null;
|
|
669
670
|
|
|
670
671
|
protected hasMouse: boolean;
|
|
671
|
-
protected
|
|
672
|
+
protected hasFocus: boolean;
|
|
672
673
|
|
|
673
674
|
protected lastActiveTime: number;
|
|
674
675
|
protected options: PitchControlOptions;
|
|
@@ -754,7 +755,7 @@ declare namespace atlas {
|
|
|
754
755
|
* A control for changing the zoom of the map.
|
|
755
756
|
*/
|
|
756
757
|
export class ZoomControl extends ControlBase {
|
|
757
|
-
protected static ZOOM_DURATION_MS;
|
|
758
|
+
protected static ZOOM_DURATION_MS: number;
|
|
758
759
|
protected container: HTMLDivElement | null;
|
|
759
760
|
protected zoomInButton: HTMLButtonElement | null;
|
|
760
761
|
protected zoomOutButton: HTMLButtonElement | null;
|
|
@@ -2080,7 +2081,7 @@ declare namespace atlas {
|
|
|
2080
2081
|
*/
|
|
2081
2082
|
getTraffic(): TrafficOptions;
|
|
2082
2083
|
/**
|
|
2083
|
-
* Removes all
|
|
2084
|
+
* Removes all sources, layers, markers, and popups from the map.
|
|
2084
2085
|
* User added images are preserved.
|
|
2085
2086
|
*/
|
|
2086
2087
|
clear(): void;
|
|
@@ -2132,7 +2133,7 @@ declare namespace atlas {
|
|
|
2132
2133
|
* @param elevationSource elevation tile source
|
|
2133
2134
|
* @param exaggeration the elevation exaggeration factor
|
|
2134
2135
|
*/
|
|
2135
|
-
enableElevation(elevationSource: string | ElevationTileSource, exaggeration?: number): void;
|
|
2136
|
+
enableElevation(elevationSource: string | atlas.source.ElevationTileSource, exaggeration?: number): void;
|
|
2136
2137
|
/**
|
|
2137
2138
|
* Disables the 3D terrain mesh.
|
|
2138
2139
|
*/
|
|
@@ -4094,19 +4095,19 @@ declare namespace atlas {
|
|
|
4094
4095
|
* Minimum number of points necessary to form a cluster if clustering is enabled.
|
|
4095
4096
|
* @default 2
|
|
4096
4097
|
*/
|
|
4097
|
-
clusterMinPoints?: number | undefined
|
|
4098
|
+
clusterMinPoints?: number | undefined;
|
|
4098
4099
|
/**
|
|
4099
4100
|
* Whether to generate ids for the geojson features. When enabled, the feature.id property will be auto assigned based on its index in the features array, over-writing any previous values.
|
|
4100
4101
|
*/
|
|
4101
|
-
generateId?: boolean | undefined
|
|
4102
|
+
generateId?: boolean | undefined;
|
|
4102
4103
|
/**
|
|
4103
4104
|
* A property to use as a feature id (for feature state). Either a property name, or an object of the form {<sourceLayer>: <propertyName>}.
|
|
4104
4105
|
*/
|
|
4105
|
-
promoteId?: { [key: string]: string } | string | undefined
|
|
4106
|
+
promoteId?: { [key: string]: string } | string | undefined;
|
|
4106
4107
|
/**
|
|
4107
4108
|
* An expression for filtering features prior to processing them for rendering.
|
|
4108
4109
|
*/
|
|
4109
|
-
filter?: any
|
|
4110
|
+
filter?: any;
|
|
4110
4111
|
}
|
|
4111
4112
|
|
|
4112
4113
|
/**
|
|
@@ -4772,8 +4773,8 @@ declare namespace atlas {
|
|
|
4772
4773
|
*/
|
|
4773
4774
|
styleAPIVersion?: string;
|
|
4774
4775
|
/**
|
|
4775
|
-
* Enable accessibility
|
|
4776
|
-
*
|
|
4776
|
+
* Enable the accessibility feature to provide screen reader support for users who have difficulty visualizing the web application.
|
|
4777
|
+
* This property is set to true by default.
|
|
4777
4778
|
* @default true
|
|
4778
4779
|
*/
|
|
4779
4780
|
enableAccessibility?: boolean;
|
|
@@ -5483,7 +5484,7 @@ declare namespace atlas {
|
|
|
5483
5484
|
*/
|
|
5484
5485
|
add(layer: atlas.layer.Layer | atlas.layer.Layer[], before?: string | atlas.layer.Layer): void;
|
|
5485
5486
|
/**
|
|
5486
|
-
* Removes all
|
|
5487
|
+
* Removes all layers from the map.
|
|
5487
5488
|
*/
|
|
5488
5489
|
clear(): void;
|
|
5489
5490
|
/**
|