azure-maps-control 3.0.0-preview.2 → 3.0.0-preview.4
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 +81 -81
- package/dist/atlas-core-bare-snr-min.js +1 -1
- package/dist/atlas-core-bare-snr.js +828 -339
- package/dist/atlas-core-bare.js +17449 -2297
- package/dist/atlas-core-bare.min.js +1 -1
- package/dist/atlas-core-snr.js +819 -325
- package/dist/atlas-core.js +17645 -2488
- package/dist/atlas-core.min.js +6 -6
- package/dist/atlas.css +4 -28
- package/dist/atlas.js +17622 -2465
- package/dist/atlas.min.css +1 -1
- package/dist/atlas.min.js +32 -32
- package/package.json +15 -12
- package/thirdpartynotices.txt +0 -0
- package/typings/index.d.ts +36 -14
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.0-preview.
|
|
4
|
+
"version": "3.0.0-preview.4",
|
|
5
5
|
"description": "Map SDK for Azure Maps",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"azure",
|
|
@@ -31,39 +31,38 @@
|
|
|
31
31
|
"updatePackageVersionForTests": "node ./bin/updatePackageVersionForTests.js"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@
|
|
34
|
+
"@azure/msal-browser": "^2.32.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@mapbox/mapbox-gl-rtl-text": "^0.2.3",
|
|
38
38
|
"@microsoft/applicationinsights-web": "^2.5.9",
|
|
39
39
|
"@turf/intersect": "^6.3.0",
|
|
40
40
|
"@types/jest": "^27.5.1",
|
|
41
|
-
"@types/jwt-decode": "^
|
|
42
|
-
"@types/lodash": "4.14.
|
|
41
|
+
"@types/jwt-decode": "^3.0.0",
|
|
42
|
+
"@types/lodash": "4.14.191",
|
|
43
43
|
"@types/mapbox-gl": "^1.13.0",
|
|
44
44
|
"@types/node": "^18.11.10",
|
|
45
45
|
"@types/puppeteer": "^1.20.7",
|
|
46
46
|
"@typescript-eslint/eslint-plugin": "^5.33.0",
|
|
47
47
|
"@typescript-eslint/parser": "^5.33.0",
|
|
48
|
-
"adal-angular": "^1.0.18",
|
|
49
48
|
"atob": "^2.1.2",
|
|
50
|
-
"azuremaps-maplibre-gl": "^3.0.0-pre.
|
|
49
|
+
"azuremaps-maplibre-gl": "^3.0.0-pre.6",
|
|
51
50
|
"canvas": "^2.10.2",
|
|
52
51
|
"es-abstract": "^1.17.1",
|
|
53
52
|
"eslint": "^8.22.0",
|
|
54
53
|
"eslint-plugin-security": "^1.5.0",
|
|
55
|
-
"estree-walker": "^
|
|
54
|
+
"estree-walker": "^3.0.0",
|
|
56
55
|
"fs-extra": "^8.1.0",
|
|
57
56
|
"gl": "^6.0.1",
|
|
58
57
|
"glob": "^7.1.6",
|
|
59
|
-
"grunt": "^1.3
|
|
58
|
+
"grunt": "^1.5.3",
|
|
60
59
|
"jest": "^27.5.1",
|
|
61
60
|
"jest-trx-results-processor": "^3.0.1",
|
|
62
|
-
"jwt-decode": "^
|
|
61
|
+
"jwt-decode": "^3.0.0",
|
|
63
62
|
"less": "^3.12.2",
|
|
64
63
|
"less-plugin-clean-css": "^1.5.1",
|
|
65
64
|
"lodash": "4.17.21",
|
|
66
|
-
"node-fetch": "^2.6.
|
|
65
|
+
"node-fetch": "^2.6.7",
|
|
67
66
|
"puppeteer": "^10.2.0",
|
|
68
67
|
"rollup": "^1.32.1",
|
|
69
68
|
"rollup-plugin-commonjs": "^10.1.0",
|
|
@@ -77,7 +76,11 @@
|
|
|
77
76
|
"typescript": "^4.3.5",
|
|
78
77
|
"utf-8-validate": "^5.0.2",
|
|
79
78
|
"uuid-random": "^1.3.2",
|
|
80
|
-
"yargs": "^
|
|
79
|
+
"yargs": "^17.6.2"
|
|
80
|
+
},
|
|
81
|
+
"overrides" : {
|
|
82
|
+
"clean-css": "^5.3.1",
|
|
83
|
+
"serialize-javascript": "^6.0.0"
|
|
81
84
|
},
|
|
82
85
|
"license": "SEE LICENSE IN LICENSE.TXT",
|
|
83
86
|
"files": [
|
|
@@ -87,4 +90,4 @@
|
|
|
87
90
|
],
|
|
88
91
|
"types": "./typings/index.d.ts",
|
|
89
92
|
"main": "./dist/atlas.min.js"
|
|
90
|
-
}
|
|
93
|
+
}
|
package/thirdpartynotices.txt
CHANGED
|
Binary file
|
package/typings/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PublicClientApplication } from "@azure/msal-browser";
|
|
2
2
|
|
|
3
3
|
type Position = atlas.data.Position;
|
|
4
4
|
declare namespace atlas {
|
|
@@ -1991,7 +1991,7 @@ declare namespace atlas {
|
|
|
1991
1991
|
* current values.
|
|
1992
1992
|
* @param options The options for setting the map's camera and for the animation of any view change.
|
|
1993
1993
|
*/
|
|
1994
|
-
setCamera(options?: (CameraOptions | CameraBoundsOptions) & AnimationOptions): void;
|
|
1994
|
+
setCamera(options?: (CameraOptions | (CameraBoundsOptions & { pitch?: number, bearing?: number })) & AnimationOptions): void;
|
|
1995
1995
|
/**
|
|
1996
1996
|
* Returns the camera's current properties.
|
|
1997
1997
|
*/
|
|
@@ -2745,7 +2745,7 @@ declare namespace atlas {
|
|
|
2745
2745
|
/**
|
|
2746
2746
|
* Specifies which set of geopolitically disputed borders and labels are displayed on the map. The View parameter (also referred to as “user region parameter”) is a 2-letter ISO-3166 Country Code that will show the correct maps for that country/region. Country/Regions that are not on the View list or if unspecified will default to the “Unified” View.
|
|
2747
2747
|
* Please see the supported [Views]{@link https://aka.ms/AzureMapsLocalizationViews }.
|
|
2748
|
-
* It is your responsibility to determine the location of your users, and then set the View parameter correctly for that location. The View parameter in Azure Maps must be used in compliance with applicable laws, including those regarding mapping, of the country where maps, images and other data and third party content that You are authorized to access via Azure Maps is made available.
|
|
2748
|
+
* It is your responsibility to determine the location of your users, and then set the View parameter correctly for that location. The View parameter in Azure Maps must be used in compliance with applicable laws, including those regarding mapping, of the country/region where maps, images and other data and third party content that You are authorized to access via Azure Maps is made available.
|
|
2749
2749
|
* @param view The new default view
|
|
2750
2750
|
*/
|
|
2751
2751
|
export function setView(view: string): void;
|
|
@@ -3762,8 +3762,8 @@ declare namespace atlas {
|
|
|
3762
3762
|
* The type of traffic flow to display:
|
|
3763
3763
|
* <p>"none" is to display no traffic flow data</p>
|
|
3764
3764
|
* <p>"relative" is the speed of the road relative to free-flow</p>
|
|
3765
|
-
* <p
|
|
3766
|
-
* <p
|
|
3765
|
+
* <p>@deprecated "absolute" is the absolute speed of the road</p>
|
|
3766
|
+
* <p>@deprecated "relative-delay" displays relative speed only where they differ from free-flow;
|
|
3767
3767
|
* false to stop displaying the traffic flow.</p>
|
|
3768
3768
|
* default `"relative"``
|
|
3769
3769
|
* @default "relative"
|
|
@@ -4009,6 +4009,23 @@ declare namespace atlas {
|
|
|
4009
4009
|
* Defines custom properties that are calculated using expressions against all the points within each cluster and added to the properties of each cluster point.
|
|
4010
4010
|
*/
|
|
4011
4011
|
clusterProperties?: Record<string, AggregateExpression>;
|
|
4012
|
+
/**
|
|
4013
|
+
* Minimum number of points necessary to form a cluster if clustering is enabled.
|
|
4014
|
+
* @default 2
|
|
4015
|
+
*/
|
|
4016
|
+
clusterMinPoints?: number | undefined = 2;
|
|
4017
|
+
/**
|
|
4018
|
+
* 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.
|
|
4019
|
+
*/
|
|
4020
|
+
generateId?: boolean | undefined = false;
|
|
4021
|
+
/**
|
|
4022
|
+
* A property to use as a feature id (for feature state). Either a property name, or an object of the form {<sourceLayer>: <propertyName>}.
|
|
4023
|
+
*/
|
|
4024
|
+
promoteId?: { [key: string]: string } | string | undefined = undefined;
|
|
4025
|
+
/**
|
|
4026
|
+
* An expression for filtering features prior to processing them for rendering.
|
|
4027
|
+
*/
|
|
4028
|
+
filter?: any = undefined
|
|
4012
4029
|
}
|
|
4013
4030
|
|
|
4014
4031
|
/**
|
|
@@ -4295,6 +4312,7 @@ declare namespace atlas {
|
|
|
4295
4312
|
* If false all buildings will be rendered as just their footprints.
|
|
4296
4313
|
* Default `false`
|
|
4297
4314
|
* @default false
|
|
4315
|
+
* @deprecated
|
|
4298
4316
|
*/
|
|
4299
4317
|
showBuildingModels?: boolean;
|
|
4300
4318
|
/**
|
|
@@ -4352,8 +4370,8 @@ declare namespace atlas {
|
|
|
4352
4370
|
* The type of traffic flow to display:
|
|
4353
4371
|
* <p>"none" is to display no traffic flow data</p>
|
|
4354
4372
|
* <p>"relative" is the speed of the road relative to free-flow</p>
|
|
4355
|
-
* <p
|
|
4356
|
-
* <p
|
|
4373
|
+
* <p>@deprecated "absolute" is the absolute speed of the road</p>
|
|
4374
|
+
* <p>@deprecated "relative-delay" displays relative speed only where they differ from free-flow;
|
|
4357
4375
|
* false to stop displaying the traffic flow.</p>
|
|
4358
4376
|
* default `"none"``
|
|
4359
4377
|
* @default "none"
|
|
@@ -4485,7 +4503,7 @@ declare namespace atlas {
|
|
|
4485
4503
|
/**
|
|
4486
4504
|
* The AAD implicit grant mechanism. Recommended for pages protected by a sign-in.
|
|
4487
4505
|
* By default the page will be redirected to the AAD login when the map control initializes.
|
|
4488
|
-
* Specify a logged-in `
|
|
4506
|
+
* Specify a logged-in `PublicClientApplication` in the `AuthenticationOptions`
|
|
4489
4507
|
* for greater control over when/how the users signs in.
|
|
4490
4508
|
* Literal value `"aad"`
|
|
4491
4509
|
*/
|
|
@@ -4548,13 +4566,13 @@ declare namespace atlas {
|
|
|
4548
4566
|
*/
|
|
4549
4567
|
sasToken?: string;
|
|
4550
4568
|
/**
|
|
4551
|
-
* Optionally provide an existing `
|
|
4569
|
+
* Optionally provide an existing `PublicClientApplication` from the MSAL.js library.
|
|
4552
4570
|
* This authentication context will be used to acquire the AAD token.
|
|
4553
4571
|
* Only used with the AAD authentication type.
|
|
4554
4572
|
* This auth context must be configured to use the same AAD app ID as `this.aadAppId`.
|
|
4555
4573
|
* If this is not provided all map instances will share their own private auth context.
|
|
4556
4574
|
*/
|
|
4557
|
-
authContext?:
|
|
4575
|
+
authContext?: PublicClientApplication;
|
|
4558
4576
|
/**
|
|
4559
4577
|
* Sets the required options to configure the subscription key authentication mechanism.
|
|
4560
4578
|
* @param subscriptionKey Subscription Key from your azure maps account
|
|
@@ -4566,9 +4584,9 @@ declare namespace atlas {
|
|
|
4566
4584
|
* @param aadAppId Azure AD App ID
|
|
4567
4585
|
* @param aadTenant Azure AD Tenant Name
|
|
4568
4586
|
* @param aadInstance An optional Azure AD Instance
|
|
4569
|
-
* @param authContext An optional `
|
|
4587
|
+
* @param authContext An optional `PublicClientApplication` from the MSAL.js library
|
|
4570
4588
|
*/
|
|
4571
|
-
setAadProperties?(clientId: string, aadAppId: string, aadTenant: string, aadInstance?: string, authContext?:
|
|
4589
|
+
setAadProperties?(clientId: string, aadAppId: string, aadTenant: string, aadInstance?: string, authContext?: PublicClientApplication): void;
|
|
4572
4590
|
/**
|
|
4573
4591
|
* Sets the required options to configure the anonymous authentication method.
|
|
4574
4592
|
* @param getTokenCallback Callback function responsible for resolving to an authentication token.
|
|
@@ -4645,7 +4663,7 @@ declare namespace atlas {
|
|
|
4645
4663
|
*/
|
|
4646
4664
|
domain?: string;
|
|
4647
4665
|
/**
|
|
4648
|
-
* The map configuration defines the set of styles available to the map.
|
|
4666
|
+
* The map configuration defines the set of styles available to the map.
|
|
4649
4667
|
*/
|
|
4650
4668
|
mapConfiguration?: string | MapConfiguration;
|
|
4651
4669
|
/**
|
|
@@ -4815,6 +4833,10 @@ declare namespace atlas {
|
|
|
4815
4833
|
* If this method has been called before the original initialize promise is returned.
|
|
4816
4834
|
*/
|
|
4817
4835
|
initialize(): Promise<void>;
|
|
4836
|
+
/**
|
|
4837
|
+
* Cleans up any resources used by the authentication manager.
|
|
4838
|
+
*/
|
|
4839
|
+
dispose(): void;
|
|
4818
4840
|
/**
|
|
4819
4841
|
* Returns the current authentication type in use.
|
|
4820
4842
|
*/
|
|
@@ -5712,4 +5734,4 @@ declare namespace atlas {
|
|
|
5712
5734
|
}
|
|
5713
5735
|
}
|
|
5714
5736
|
|
|
5715
|
-
export = atlas;
|
|
5737
|
+
export = atlas;
|