azure-maps-control 3.2.1 → 3.4.0

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "azure-maps-control",
3
3
  "author": "Microsoft Corporation",
4
- "version": "3.2.1",
4
+ "version": "3.4.0",
5
5
  "description": "Map SDK for Azure Maps",
6
6
  "keywords": [
7
7
  "azure",
@@ -36,11 +36,12 @@
36
36
  "dependencies": {
37
37
  "@azure/msal-browser": "^2.32.1",
38
38
  "@mapbox/mapbox-gl-supported": "^2.0.1",
39
- "@maplibre/maplibre-gl-style-spec": "^20.0.0"
39
+ "@maplibre/maplibre-gl-style-spec": "^20.0.0",
40
+ "@types/geojson": "^7946.0.14"
40
41
  },
41
42
  "devDependencies": {
42
43
  "@mapbox/mapbox-gl-rtl-text": "^0.2.3",
43
- "@microsoft/applicationinsights-web": "^3.1.1",
44
+ "@microsoft/applicationinsights-web": "^3.3.0",
44
45
  "@playwright/test": "^1.42.1",
45
46
  "@rollup/plugin-commonjs": "^25.0.4",
46
47
  "@rollup/plugin-json": "^6.0.0",
@@ -72,7 +73,7 @@
72
73
  "lodash": "4.17.21",
73
74
  "node-fetch": "^2.6.8",
74
75
  "playwright-trx-reporter": "^1.0.6",
75
- "puppeteer": "^21.0.0",
76
+ "puppeteer": "^22.14.0",
76
77
  "rollup": "^3.28.0",
77
78
  "rollup-plugin-sourcemaps": "^0.6.3",
78
79
  "rollup-plugin-uglify": "^6.0.4",
@@ -88,7 +89,7 @@
88
89
  "@babel/core": "7.24.4",
89
90
  "rollup": "^3.28.0"
90
91
  },
91
- "license": "SEE LICENSE IN LICENSE.TXT",
92
+ "license": "SEE LICENSE.TXT",
92
93
  "files": [
93
94
  "typings/**/*",
94
95
  "dist/**/*",
Binary file
@@ -995,6 +995,15 @@ declare namespace atlas {
995
995
  * Should perform any necessary cleanup for the layer.
996
996
  */
997
997
  onRemove (): void;
998
+ /**
999
+ * Gets the options of the layer.
1000
+ */
1001
+ abstract getOptions (): LayerOptions;
1002
+ /**
1003
+ * Sets the options of the layer.
1004
+ * @param options The new options of the layer.
1005
+ */
1006
+ abstract setOptions (options: LayerOptions): void;
998
1007
  }
999
1008
 
1000
1009
  /**
@@ -2901,6 +2910,18 @@ declare namespace atlas {
2901
2910
  * in your application.
2902
2911
  */
2903
2912
  export function clearPrewarmedResources (): void;
2913
+ /**
2914
+ * Adds a custom load resource function that will be called when using a URL that starts with a custom url schema.
2915
+ * @param customProtocol - the protocol to hook, for example 'custom'
2916
+ * @param loadFn - the function to use when trying to fetch a tile specified by the customProtocol
2917
+ */
2918
+ export function addProtocol (customProtocol: string, loadFn: (...args: any[]) => Promise<any>): void;
2919
+
2920
+ /**
2921
+ * Removes a previously added protocol in the main thread.
2922
+ * @param customProtocol - the custom protocol to remove registration for
2923
+ */
2924
+ export function removeProtocol (customProtocol: string): void;
2904
2925
  /**
2905
2926
  * Options used when rendering Point objects in a BubbleLayer.
2906
2927
  */
@@ -4158,7 +4179,8 @@ declare namespace atlas {
4158
4179
  */
4159
4180
  generateId?: boolean | undefined;
4160
4181
  /**
4161
- * A property to use as a feature id (for feature state). Either a property name, or an object of the form {<sourceLayer>: <propertyName>}.
4182
+ * A specified property name to be used as a feature ID (for feature state).
4183
+ * This can either be a property name or an object in the form `{<sourceLayer>: <propertyName>}`.
4162
4184
  */
4163
4185
  promoteId?: { [key: string]: string } | string | undefined;
4164
4186
  /**