azure-maps-control 2.1.16 → 2.1.17
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/dist/atlas-core-bare.js +292 -57
- package/dist/atlas-core-bare.min.js +1 -1
- package/dist/atlas-core.js +292 -57
- package/dist/atlas-core.min.js +1 -1
- package/dist/atlas.css +1 -1
- package/dist/atlas.js +292 -57
- package/dist/atlas.min.css +1 -1
- package/dist/atlas.min.js +1 -1
- package/package.json +6 -4
- package/thirdpartynotices.txt +0 -0
- package/typings/index.d.ts +27 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "azure-maps-control",
|
|
3
3
|
"author": "Microsoft Corporation",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.17",
|
|
5
5
|
"description": "Map SDK for Azure Maps",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"azure",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"posttest-filter": "npm run updatePackageVersionForTests -- --isPreTest false",
|
|
25
25
|
"test-filter": "set \"TS_NODE_PROJECT=./test/tsconfig.json\" && mocha --parallel --exit --timeout 30000 --require ts-node/register",
|
|
26
26
|
"thirdPartyNotices": "node ./bin/thirdPartyNotices.js",
|
|
27
|
-
"
|
|
27
|
+
"lint": "eslint -c .eslintrc.json --ext .ts,.js src/",
|
|
28
28
|
"updateEnvVariables": "node ./bin/updateEnvVariables.js",
|
|
29
29
|
"updateExampleKeys": "node ./bin/updateExampleKeys.js",
|
|
30
30
|
"updateTestSecrets": "node ./bin/updateTestSecrets.js",
|
|
@@ -42,11 +42,15 @@
|
|
|
42
42
|
"@types/mapbox-gl": "^1.13.0",
|
|
43
43
|
"@types/mocha": "^5.2.7",
|
|
44
44
|
"@types/puppeteer": "^1.20.7",
|
|
45
|
+
"@typescript-eslint/eslint-plugin": "^5.33.0",
|
|
46
|
+
"@typescript-eslint/parser": "^5.33.0",
|
|
45
47
|
"adal-angular": "^1.0.18",
|
|
46
48
|
"atob": "^2.1.2",
|
|
47
49
|
"azuremaps-maplibre-gl": "^1.14.0-rc4",
|
|
48
50
|
"cypress-multi-reporters": "^1.5.0",
|
|
49
51
|
"es-abstract": "^1.17.1",
|
|
52
|
+
"eslint": "^8.22.0",
|
|
53
|
+
"eslint-plugin-security": "^1.5.0",
|
|
50
54
|
"estree-walker": "^1.0.1",
|
|
51
55
|
"fs-extra": "^8.1.0",
|
|
52
56
|
"glob": "^7.1.6",
|
|
@@ -68,8 +72,6 @@
|
|
|
68
72
|
"rollup-plugin-uglify": "^6.0.4",
|
|
69
73
|
"simplify-ts": "^1.0.2",
|
|
70
74
|
"ts-node": "^8.10.2",
|
|
71
|
-
"tslint": "^5.20.1",
|
|
72
|
-
"tslint-microsoft-contrib": "^6.2.0",
|
|
73
75
|
"typescript": "^3.7.2",
|
|
74
76
|
"utf-8-validate": "^5.0.2",
|
|
75
77
|
"uuid-random": "^1.3.2",
|
package/thirdpartynotices.txt
CHANGED
|
Binary file
|
package/typings/index.d.ts
CHANGED
|
@@ -1907,8 +1907,9 @@ declare namespace atlas {
|
|
|
1907
1907
|
/**
|
|
1908
1908
|
* Set the map control's style options. Any options not specified will default to their current values.
|
|
1909
1909
|
* @param options The options for setting the style of the map control.
|
|
1910
|
+
* @param diff [true] If false, forces a 'full' style update, removing the current style and building the given one instead of attempting a diff-based update. Defaults to true.
|
|
1910
1911
|
*/
|
|
1911
|
-
setStyle(options?: StyleOptions): void;
|
|
1912
|
+
setStyle(options?: StyleOptions, diff?: boolean): void;
|
|
1912
1913
|
/**
|
|
1913
1914
|
* Returns the map control's current style settings.
|
|
1914
1915
|
*/
|
|
@@ -2093,6 +2094,10 @@ declare namespace atlas {
|
|
|
2093
2094
|
* Returns the options for the popup.
|
|
2094
2095
|
*/
|
|
2095
2096
|
getOptions(): PopupOptions;
|
|
2097
|
+
/**
|
|
2098
|
+
* Returns popup container element.
|
|
2099
|
+
*/
|
|
2100
|
+
getPopupContainer(): HTMLElement
|
|
2096
2101
|
/**
|
|
2097
2102
|
* Attaches the popup to the HTML document in a hidden state.
|
|
2098
2103
|
* @param map The map.
|
|
@@ -4177,6 +4182,11 @@ declare namespace atlas {
|
|
|
4177
4182
|
* @default true
|
|
4178
4183
|
*/
|
|
4179
4184
|
showLogo?: boolean;
|
|
4185
|
+
/**
|
|
4186
|
+
* Specifies if the map should display labels
|
|
4187
|
+
* @default true
|
|
4188
|
+
*/
|
|
4189
|
+
showLabels?: boolean;
|
|
4180
4190
|
/**
|
|
4181
4191
|
* Specifies if the map should render an outline around each tile and the tile ID.
|
|
4182
4192
|
* These tile boundaries are useful for debugging.
|
|
@@ -4357,7 +4367,12 @@ declare namespace atlas {
|
|
|
4357
4367
|
* Allows a callback responsible for acquiring an authentication token to be provided.
|
|
4358
4368
|
* Literal value `"anonymous"`
|
|
4359
4369
|
*/
|
|
4360
|
-
anonymous = "anonymous"
|
|
4370
|
+
anonymous = "anonymous",
|
|
4371
|
+
/**
|
|
4372
|
+
* The shared access signature authentication mechanism. Allows a callback responsible for acquiring a token to be provided on requests.
|
|
4373
|
+
* Literal value `"sas"`.
|
|
4374
|
+
*/
|
|
4375
|
+
sas = "sas"
|
|
4361
4376
|
}
|
|
4362
4377
|
|
|
4363
4378
|
/**
|
|
@@ -4395,11 +4410,15 @@ declare namespace atlas {
|
|
|
4395
4410
|
*/
|
|
4396
4411
|
aadInstance?: string;
|
|
4397
4412
|
/**
|
|
4398
|
-
* A callback to use with the anonymous authentication mechanism.
|
|
4413
|
+
* A callback to use with the anonymous/sas authentication mechanism.
|
|
4399
4414
|
* This callback will be responsible for resolving to a authentication token.
|
|
4400
4415
|
* E.g. fetching a CORS protected token from an endpoint.
|
|
4401
4416
|
*/
|
|
4402
4417
|
getToken?: getAuthTokenCallback;
|
|
4418
|
+
/**
|
|
4419
|
+
* Optionally provide an initial token for sas authentication.
|
|
4420
|
+
*/
|
|
4421
|
+
sasToken?: string;
|
|
4403
4422
|
/**
|
|
4404
4423
|
* Optionally provide an existing `AuthenticationContext` from the ADAL.js library.
|
|
4405
4424
|
* This authentication context will be used to acquire the AAD token.
|
|
@@ -4427,6 +4446,11 @@ declare namespace atlas {
|
|
|
4427
4446
|
* @param getTokenCallback Callback function responsible for resolving to an authentication token.
|
|
4428
4447
|
*/
|
|
4429
4448
|
setTokenCallbackFunction?(getTokenCallback: getAuthTokenCallback): void;
|
|
4449
|
+
/**
|
|
4450
|
+
* Sets the required options to configure the sas authentication method.
|
|
4451
|
+
* @param getTokenCallback Callback function responsible for resolving to an authentication token.
|
|
4452
|
+
*/
|
|
4453
|
+
setSasCallbackFunction?(getTokenCallback: getAuthTokenCallback): void;
|
|
4430
4454
|
}
|
|
4431
4455
|
|
|
4432
4456
|
export type ResourceType =
|