azure-maps-control 3.0.0-preview.8 → 3.0.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/ReadMe.md +8 -3
- package/dist/atlas-core-bare-snr-min.js +1 -1
- package/dist/atlas-core-bare-snr.js +2515 -1628
- package/dist/atlas-core-bare.js +5656 -4751
- package/dist/atlas-core-bare.min.js +1 -1
- package/dist/atlas-core-snr.js +51729 -50694
- package/dist/atlas-core.js +70162 -69109
- package/dist/atlas-core.min.js +3 -3
- package/dist/atlas-internal.min.js +1 -1
- package/dist/atlas.js +88775 -80037
- package/dist/atlas.min.js +3 -3
- package/package.json +35 -29
- package/thirdpartynotices.txt +0 -0
- package/typings/index.d.ts +112 -53
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
|
|
4
|
+
"version": "3.0.0",
|
|
5
5
|
"description": "Map SDK for Azure Maps",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"azure",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"test": "npm run test:unit && npm run test:func",
|
|
21
21
|
"test:unit": "jest -c test/unit/jest.config.js",
|
|
22
22
|
"test:func": "jest -c test/func/jest.config.js",
|
|
23
|
+
"test:e2e": "npx playwright test -c test/e2e/playwright.config.ts",
|
|
23
24
|
"pretest:func": "npm run updatePackageVersionForTests -- --isPreTest true",
|
|
24
25
|
"posttest:func": "npm run updatePackageVersionForTests -- --isPreTest false",
|
|
25
26
|
"coverage": "npm run test:unit -- --collectCoverage && npm run test:func",
|
|
@@ -27,9 +28,10 @@
|
|
|
27
28
|
"lint": "eslint --ext .ts,.js --ignore-path .gitignore src/",
|
|
28
29
|
"lint-fix": "eslint --fix --ext .ts,.js --ignore-path .gitignore src/",
|
|
29
30
|
"updateEnvVariables": "node ./bin/updateEnvVariables.js",
|
|
30
|
-
"updateExampleKeys": "node ./bin/updateExampleKeys.js",
|
|
31
31
|
"updateTestSecrets": "node ./bin/updateTestSecrets.js",
|
|
32
|
-
"updatePackageVersionForTests": "node ./bin/updatePackageVersionForTests.js"
|
|
32
|
+
"updatePackageVersionForTests": "node ./bin/updatePackageVersionForTests.js",
|
|
33
|
+
"set-test-env": "npm run updateEnvVariables -- --variablesJsonPath ./variables.json --appInsightsKey \"8cb5d35d-e977-478d-9264-2cd3f3dbe606\" --envDomain \"t-azmaps.azurelbs.com\" --staticAssetsEnvDomain \"t-azmaps.azurelbs.com\" --aadInstance \"https://login.windows-ppe.net/\" --styleDefinitionsVersion \"2023-01-01\"",
|
|
34
|
+
"set-prod-env": "npm run updateEnvVariables -- --variablesJsonPath ./variables.json --appInsightsKey \"e96cb745-c6f5-409c-a775-c4313e468c1d\" --envDomain \"atlas.microsoft.com\" --staticAssetsEnvDomain \"atlas.microsoft.com\" --aadInstance \"https://login.microsoftonline.com/\" --styleDefinitionsVersion \"2023-01-01\""
|
|
33
35
|
},
|
|
34
36
|
"dependencies": {
|
|
35
37
|
"@azure/msal-browser": "^2.32.1",
|
|
@@ -37,52 +39,56 @@
|
|
|
37
39
|
},
|
|
38
40
|
"devDependencies": {
|
|
39
41
|
"@mapbox/mapbox-gl-rtl-text": "^0.2.3",
|
|
40
|
-
"@microsoft/applicationinsights-web": "^
|
|
42
|
+
"@microsoft/applicationinsights-web": "^3.0.0",
|
|
43
|
+
"@playwright/test": "^1.36.2",
|
|
44
|
+
"@rollup/plugin-commonjs": "^25.0.3",
|
|
45
|
+
"@rollup/plugin-json": "^6.0.0",
|
|
46
|
+
"@rollup/plugin-node-resolve": "^15.1.0",
|
|
41
47
|
"@testing-library/dom": "^9.3.0",
|
|
42
48
|
"@turf/intersect": "^6.3.0",
|
|
43
|
-
"@types/jest": "^
|
|
49
|
+
"@types/jest": "^29.0.0",
|
|
44
50
|
"@types/jwt-decode": "^3.0.0",
|
|
45
|
-
"@types/lodash": "4.14.
|
|
46
|
-
"@types/
|
|
47
|
-
"@types/
|
|
48
|
-
"@
|
|
49
|
-
"@typescript-eslint/
|
|
50
|
-
"@typescript-eslint/parser": "^5.58.0",
|
|
51
|
+
"@types/lodash": "4.14.195",
|
|
52
|
+
"@types/node": "^18.17.1",
|
|
53
|
+
"@types/puppeteer": "^7.0.0",
|
|
54
|
+
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
55
|
+
"@typescript-eslint/parser": "^6.0.0",
|
|
51
56
|
"atob": "^2.1.2",
|
|
52
|
-
"azuremaps-maplibre-gl": "3.
|
|
57
|
+
"azuremaps-maplibre-gl": "^3.2.2",
|
|
53
58
|
"canvas": "^2.10.2",
|
|
54
|
-
"es-abstract": "^1.
|
|
55
|
-
"eslint": "^8.
|
|
59
|
+
"es-abstract": "^1.20.1",
|
|
60
|
+
"eslint": "^8.39.0",
|
|
56
61
|
"eslint-plugin-security": "^1.5.0",
|
|
57
62
|
"estree-walker": "^3.0.0",
|
|
58
|
-
"fs-extra": "^
|
|
63
|
+
"fs-extra": "^11.0.0",
|
|
59
64
|
"gl": "^6.0.1",
|
|
60
|
-
"glob": "^
|
|
61
|
-
"grunt": "^1.
|
|
62
|
-
"jest": "^
|
|
65
|
+
"glob": "^10.0.0",
|
|
66
|
+
"grunt": "^1.6.1",
|
|
67
|
+
"jest": "^29.0.0",
|
|
68
|
+
"jest-environment-jsdom": "^29.6.1",
|
|
63
69
|
"jest-trx-results-processor": "^3.0.1",
|
|
64
70
|
"jwt-decode": "^3.0.0",
|
|
65
|
-
"less": "^
|
|
71
|
+
"less": "^4.0.0",
|
|
66
72
|
"less-plugin-clean-css": "^1.5.1",
|
|
67
73
|
"lodash": "4.17.21",
|
|
68
|
-
"node-fetch": "^2.6.
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"rollup
|
|
72
|
-
"rollup-plugin-json": "^4.0.0",
|
|
73
|
-
"rollup-plugin-node-resolve": "^5.2.0",
|
|
74
|
+
"node-fetch": "^2.6.8",
|
|
75
|
+
"playwright-trx-reporter": "^1.0.6",
|
|
76
|
+
"puppeteer": "^20.0.0",
|
|
77
|
+
"rollup": "^3.0.0",
|
|
74
78
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
75
79
|
"rollup-plugin-uglify": "^6.0.4",
|
|
76
80
|
"simplify-ts": "^1.0.2",
|
|
77
|
-
"ts-jest": "^
|
|
78
|
-
"ts-node": "^
|
|
79
|
-
"typescript": "^
|
|
80
|
-
"utf-8-validate": "^
|
|
81
|
+
"ts-jest": "^29.0.0",
|
|
82
|
+
"ts-node": "^10.0.0",
|
|
83
|
+
"typescript": "^5.0.0",
|
|
84
|
+
"utf-8-validate": "^6.0.0",
|
|
81
85
|
"uuid-random": "^1.3.2",
|
|
82
86
|
"yargs": "^17.6.2"
|
|
83
87
|
},
|
|
84
88
|
"overrides": {
|
|
89
|
+
"@rollup/pluginutils": "^5.0.2",
|
|
85
90
|
"clean-css": "^5.3.1",
|
|
91
|
+
"rollup": "^3.0.0",
|
|
86
92
|
"serialize-javascript": "^6.0.0"
|
|
87
93
|
},
|
|
88
94
|
"license": "SEE LICENSE IN LICENSE.TXT",
|
package/thirdpartynotices.txt
CHANGED
|
Binary file
|
package/typings/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PublicClientApplication } from "@azure/msal-browser";
|
|
2
|
+
import { DataDrivenPropertyValueSpecification, PropertyValueSpecification, ExpressionFilterSpecification, PositionAnchor } from "azuremaps-maplibre-gl";
|
|
2
3
|
|
|
3
4
|
type Position = atlas.data.Position;
|
|
4
5
|
declare namespace atlas {
|
|
@@ -1315,6 +1316,21 @@ declare namespace atlas {
|
|
|
1315
1316
|
*/
|
|
1316
1317
|
getShape(sourceLayer: string, filter?: Expression): Array<atlas.data.Feature<atlas.data.Geometry, any>>;
|
|
1317
1318
|
}
|
|
1319
|
+
|
|
1320
|
+
/**
|
|
1321
|
+
* Elevation tile source describes how to access elevation (raster DEM) tile data.
|
|
1322
|
+
* It can then be used to enable map elevation via `map.enableElevation(elevationSource)`
|
|
1323
|
+
*/
|
|
1324
|
+
export class ElevationTileSource extends Source {
|
|
1325
|
+
private options: ElevationTileSourceOptions;
|
|
1326
|
+
|
|
1327
|
+
constructor (id?: string, options?: ElevationTileSourceOptions);
|
|
1328
|
+
|
|
1329
|
+
/**
|
|
1330
|
+
* Gets the options of the ElevationTileSource.
|
|
1331
|
+
*/
|
|
1332
|
+
public getOptions (): ElevationTileSourceOptions;
|
|
1333
|
+
}
|
|
1318
1334
|
}
|
|
1319
1335
|
|
|
1320
1336
|
//math functions
|
|
@@ -2075,6 +2091,17 @@ declare namespace atlas {
|
|
|
2075
2091
|
* result in only a single frame being rendered.
|
|
2076
2092
|
*/
|
|
2077
2093
|
triggerRepaint(): void;
|
|
2094
|
+
/**
|
|
2095
|
+
* Loads a 3D terrain mesh, based on a "raster-dem" source.
|
|
2096
|
+
*
|
|
2097
|
+
* @param elevationSource elevation tile source
|
|
2098
|
+
* @param exaggeration the elevation exaggeration factor
|
|
2099
|
+
*/
|
|
2100
|
+
enableElevation(elevationSource: string | ElevationTileSource, exaggeration?: number): void;
|
|
2101
|
+
/**
|
|
2102
|
+
* Disables the 3D terrain mesh.
|
|
2103
|
+
*/
|
|
2104
|
+
disableElevation(): void;
|
|
2078
2105
|
/**
|
|
2079
2106
|
* The callback used when styleOptions.autoResize is true.
|
|
2080
2107
|
*/
|
|
@@ -2820,38 +2847,38 @@ declare namespace atlas {
|
|
|
2820
2847
|
* Default `"#1A73AA"`.
|
|
2821
2848
|
* @default "#1A73AA"
|
|
2822
2849
|
*/
|
|
2823
|
-
color?: string |
|
|
2850
|
+
color?: string | DataDrivenPropertyValueSpecification<string>;
|
|
2824
2851
|
/**
|
|
2825
2852
|
* The amount to blur the circles.
|
|
2826
2853
|
* A value of 1 blurs the circles such that only the center point if at full opacity.
|
|
2827
2854
|
* Default `0`.
|
|
2828
2855
|
* @default 0
|
|
2829
2856
|
*/
|
|
2830
|
-
blur?: number |
|
|
2857
|
+
blur?: number | DataDrivenPropertyValueSpecification<number>;
|
|
2831
2858
|
/**
|
|
2832
2859
|
* A number between 0 and 1 that indicates the opacity at which the circles will be drawn.
|
|
2833
2860
|
* Default `1`.
|
|
2834
2861
|
* @default 1
|
|
2835
2862
|
*/
|
|
2836
|
-
opacity?: number |
|
|
2863
|
+
opacity?: number | DataDrivenPropertyValueSpecification<number>;
|
|
2837
2864
|
/**
|
|
2838
2865
|
* The color of the circles' outlines.
|
|
2839
2866
|
* Default `"#FFFFFF"`.
|
|
2840
2867
|
* @default "#FFFFFF"
|
|
2841
2868
|
*/
|
|
2842
|
-
strokeColor?: string |
|
|
2869
|
+
strokeColor?: string | DataDrivenPropertyValueSpecification<string>;
|
|
2843
2870
|
/**
|
|
2844
2871
|
* A number between 0 and 1 that indicates the opacity at which the circles' outlines will be drawn.
|
|
2845
2872
|
* Default `1`.
|
|
2846
2873
|
* @default 1
|
|
2847
2874
|
*/
|
|
2848
|
-
strokeOpacity?: number |
|
|
2875
|
+
strokeOpacity?: number | DataDrivenPropertyValueSpecification<number>;
|
|
2849
2876
|
/**
|
|
2850
2877
|
* The width of the circles' outlines in pixels.
|
|
2851
2878
|
* Default `2`.
|
|
2852
2879
|
* @default 2
|
|
2853
2880
|
*/
|
|
2854
|
-
strokeWidth?: number |
|
|
2881
|
+
strokeWidth?: number | DataDrivenPropertyValueSpecification<number>;
|
|
2855
2882
|
/**
|
|
2856
2883
|
* Specifies the orientation of circle when map is pitched.
|
|
2857
2884
|
* <p>`"map"`: The circle is aligned to the plane of the map.</p>
|
|
@@ -2866,7 +2893,7 @@ declare namespace atlas {
|
|
|
2866
2893
|
* Default `8`.
|
|
2867
2894
|
* @default 8
|
|
2868
2895
|
*/
|
|
2869
|
-
radius?: number |
|
|
2896
|
+
radius?: number | DataDrivenPropertyValueSpecification<number>;
|
|
2870
2897
|
}
|
|
2871
2898
|
|
|
2872
2899
|
/**
|
|
@@ -2895,7 +2922,7 @@ declare namespace atlas {
|
|
|
2895
2922
|
* Default `"bottom"`.
|
|
2896
2923
|
* @default "bottom"
|
|
2897
2924
|
*/
|
|
2898
|
-
anchor?:
|
|
2925
|
+
anchor?: PositionAnchor | DataDrivenPropertyValueSpecification<PositionAnchor>;
|
|
2899
2926
|
/**
|
|
2900
2927
|
* Specifies if other symbols can overlap this symbol.
|
|
2901
2928
|
* If true, other symbols can be visible even if they collide with the icon.
|
|
@@ -2911,7 +2938,7 @@ declare namespace atlas {
|
|
|
2911
2938
|
* Default `"marker-blue"`.
|
|
2912
2939
|
* @default "marker-blue"
|
|
2913
2940
|
*/
|
|
2914
|
-
image?: string |
|
|
2941
|
+
image?: string | DataDrivenPropertyValueSpecification<string>;
|
|
2915
2942
|
/**
|
|
2916
2943
|
* Specifies an offset distance of the icon from its anchor in pixels.
|
|
2917
2944
|
* Positive values indicate right and down, while negative values indicate left and up.
|
|
@@ -2920,7 +2947,7 @@ declare namespace atlas {
|
|
|
2920
2947
|
* Default `[0, 0]`.
|
|
2921
2948
|
* @default [0, 0]
|
|
2922
2949
|
*/
|
|
2923
|
-
offset?:
|
|
2950
|
+
offset?: Pixel | DataDrivenPropertyValueSpecification<Pixel>;
|
|
2924
2951
|
/**
|
|
2925
2952
|
* Specifies if a symbols icon can be hidden but its text displayed if it is overlapped with another symbol.
|
|
2926
2953
|
* If true, text will display without their corresponding icons
|
|
@@ -2934,7 +2961,7 @@ declare namespace atlas {
|
|
|
2934
2961
|
* Default `2`.
|
|
2935
2962
|
* @default 2
|
|
2936
2963
|
*/
|
|
2937
|
-
padding?: number |
|
|
2964
|
+
padding?: number | DataDrivenPropertyValueSpecification<number>;
|
|
2938
2965
|
/**
|
|
2939
2966
|
* Specifies the orientation of the icon when the map is pitched.
|
|
2940
2967
|
* <p>`"auto"`: Automatically matches the value of `rotationAlignment`.</p>
|
|
@@ -2949,7 +2976,7 @@ declare namespace atlas {
|
|
|
2949
2976
|
* Default `0`.
|
|
2950
2977
|
* @default 0
|
|
2951
2978
|
*/
|
|
2952
|
-
rotation?: number |
|
|
2979
|
+
rotation?: number | DataDrivenPropertyValueSpecification<number>;
|
|
2953
2980
|
/**
|
|
2954
2981
|
* In combination with the placement property of a SymbolLayerOptions
|
|
2955
2982
|
* this determines the rotation behavior of icons.
|
|
@@ -2968,13 +2995,13 @@ declare namespace atlas {
|
|
|
2968
2995
|
* Default `1`.
|
|
2969
2996
|
* @default 1
|
|
2970
2997
|
*/
|
|
2971
|
-
size?: number |
|
|
2998
|
+
size?: number | DataDrivenPropertyValueSpecification<number>;
|
|
2972
2999
|
/**
|
|
2973
3000
|
* A number between 0 and 1 that indicates the opacity at which the icon will be drawn.
|
|
2974
3001
|
* Default `1`.
|
|
2975
3002
|
* @default 1
|
|
2976
3003
|
*/
|
|
2977
|
-
opacity?: number |
|
|
3004
|
+
opacity?: number | DataDrivenPropertyValueSpecification<number>;
|
|
2978
3005
|
}
|
|
2979
3006
|
|
|
2980
3007
|
/**
|
|
@@ -3038,14 +3065,14 @@ declare namespace atlas {
|
|
|
3038
3065
|
* Default `1`
|
|
3039
3066
|
* @default 1
|
|
3040
3067
|
*/
|
|
3041
|
-
intensity?: number |
|
|
3068
|
+
intensity?: number | PropertyValueSpecification<number>;
|
|
3042
3069
|
|
|
3043
3070
|
/**
|
|
3044
3071
|
* The opacity at which the heatmap layer will be rendered defined as a number between 0 and 1.
|
|
3045
3072
|
* Default `1`.
|
|
3046
3073
|
* @default 1
|
|
3047
3074
|
*/
|
|
3048
|
-
opacity?: number |
|
|
3075
|
+
opacity?: number | PropertyValueSpecification<number>;
|
|
3049
3076
|
|
|
3050
3077
|
/**
|
|
3051
3078
|
* The radius in pixels used to render a data point on the heatmap.
|
|
@@ -3053,7 +3080,7 @@ declare namespace atlas {
|
|
|
3053
3080
|
* Default `30`.
|
|
3054
3081
|
* @default 30
|
|
3055
3082
|
*/
|
|
3056
|
-
radius?: number |
|
|
3083
|
+
radius?: number | PropertyValueSpecification<number>;
|
|
3057
3084
|
|
|
3058
3085
|
/**
|
|
3059
3086
|
* Specifies how much an individual data point contributes to the heatmap.
|
|
@@ -3062,7 +3089,7 @@ declare namespace atlas {
|
|
|
3062
3089
|
* Default `1`
|
|
3063
3090
|
* @default 1
|
|
3064
3091
|
*/
|
|
3065
|
-
weight?: number |
|
|
3092
|
+
weight?: number | PropertyValueSpecification<number>;
|
|
3066
3093
|
}
|
|
3067
3094
|
|
|
3068
3095
|
/**
|
|
@@ -3123,13 +3150,13 @@ declare namespace atlas {
|
|
|
3123
3150
|
* Default `0`.
|
|
3124
3151
|
* @default 0
|
|
3125
3152
|
*/
|
|
3126
|
-
blur?: number |
|
|
3153
|
+
blur?: number | DataDrivenPropertyValueSpecification<number>;
|
|
3127
3154
|
/**
|
|
3128
3155
|
* Specifies the color of the line.
|
|
3129
3156
|
* Default `"#1E90FF"`.
|
|
3130
3157
|
* @default "#1E90FF"
|
|
3131
3158
|
*/
|
|
3132
|
-
strokeColor?: string |
|
|
3159
|
+
strokeColor?: string | DataDrivenPropertyValueSpecification<string>;
|
|
3133
3160
|
/**
|
|
3134
3161
|
* Specifies the lengths of the alternating dashes and gaps that form the dash pattern.
|
|
3135
3162
|
* Numbers must be equal or greater than 0. The lengths are scaled by the strokeWidth.
|
|
@@ -3149,13 +3176,13 @@ declare namespace atlas {
|
|
|
3149
3176
|
* Default `0`.
|
|
3150
3177
|
* @default 0
|
|
3151
3178
|
*/
|
|
3152
|
-
offset?: number |
|
|
3179
|
+
offset?: number | DataDrivenPropertyValueSpecification<number>;
|
|
3153
3180
|
/**
|
|
3154
3181
|
* A number between 0 and 1 that indicates the opacity at which the line will be drawn.
|
|
3155
3182
|
* Default `1`.
|
|
3156
3183
|
* @default 1
|
|
3157
3184
|
*/
|
|
3158
|
-
strokeOpacity?: number |
|
|
3185
|
+
strokeOpacity?: number | DataDrivenPropertyValueSpecification<number>;
|
|
3159
3186
|
/**
|
|
3160
3187
|
* The amount of offset in pixels to render the line relative to where it would render normally.
|
|
3161
3188
|
* Negative values indicate left and up.
|
|
@@ -3176,7 +3203,7 @@ declare namespace atlas {
|
|
|
3176
3203
|
* Default `2`.
|
|
3177
3204
|
* @default 2
|
|
3178
3205
|
*/
|
|
3179
|
-
strokeWidth?: number |
|
|
3206
|
+
strokeWidth?: number | DataDrivenPropertyValueSpecification<number>;
|
|
3180
3207
|
}
|
|
3181
3208
|
|
|
3182
3209
|
/**
|
|
@@ -3250,14 +3277,14 @@ declare namespace atlas {
|
|
|
3250
3277
|
* Default `0`.
|
|
3251
3278
|
* @default 0
|
|
3252
3279
|
*/
|
|
3253
|
-
base?: number |
|
|
3280
|
+
base?: number | DataDrivenPropertyValueSpecification<number>;
|
|
3254
3281
|
/**
|
|
3255
3282
|
* The color to fill the polygons with.
|
|
3256
3283
|
* Ignored if `fillPattern` is set.
|
|
3257
3284
|
* Default `"#1E90FF"`.
|
|
3258
3285
|
* @default "#1E90FF"
|
|
3259
3286
|
*/
|
|
3260
|
-
fillColor?: string |
|
|
3287
|
+
fillColor?: string | DataDrivenPropertyValueSpecification<string>;
|
|
3261
3288
|
/**
|
|
3262
3289
|
* The height in meters to extrude this layer.
|
|
3263
3290
|
* This height is relative to the ground.
|
|
@@ -3265,7 +3292,7 @@ declare namespace atlas {
|
|
|
3265
3292
|
* Default `0`
|
|
3266
3293
|
* @default 0
|
|
3267
3294
|
*/
|
|
3268
|
-
height?: number |
|
|
3295
|
+
height?: number | DataDrivenPropertyValueSpecification<number>;
|
|
3269
3296
|
/**
|
|
3270
3297
|
* A number between 0 and 1 that indicates the opacity at which the fill will be drawn.
|
|
3271
3298
|
* Default `1`.
|
|
@@ -3319,18 +3346,18 @@ declare namespace atlas {
|
|
|
3319
3346
|
* Default `"#1E90FF"`.
|
|
3320
3347
|
* @default "#1E90FF"
|
|
3321
3348
|
*/
|
|
3322
|
-
fillColor?: string |
|
|
3349
|
+
fillColor?: string | DataDrivenPropertyValueSpecification<string>;
|
|
3323
3350
|
/**
|
|
3324
3351
|
* A number between 0 and 1 that indicates the opacity at which the fill will be drawn.
|
|
3325
3352
|
* Default `0.5`.
|
|
3326
3353
|
* @default 0.5
|
|
3327
3354
|
*/
|
|
3328
|
-
fillOpacity?: number |
|
|
3355
|
+
fillOpacity?: number | DataDrivenPropertyValueSpecification<number>;
|
|
3329
3356
|
|
|
3330
3357
|
/**
|
|
3331
3358
|
* Name of image in sprite to use for drawing image fills. For seamless patterns, image width must be a factor of two (2, 4, 8, ..., 512).
|
|
3332
3359
|
*/
|
|
3333
|
-
fillPattern?: string |
|
|
3360
|
+
fillPattern?: string | DataDrivenPropertyValueSpecification<string>;
|
|
3334
3361
|
}
|
|
3335
3362
|
|
|
3336
3363
|
/**
|
|
@@ -3374,7 +3401,7 @@ declare namespace atlas {
|
|
|
3374
3401
|
* Default `undefined`.
|
|
3375
3402
|
* @default undefined
|
|
3376
3403
|
*/
|
|
3377
|
-
sortKey?: number |
|
|
3404
|
+
sortKey?: number | DataDrivenPropertyValueSpecification<number>;
|
|
3378
3405
|
/**
|
|
3379
3406
|
* Determines whether overlapping symbols in the same layer are rendered in the order
|
|
3380
3407
|
* that they appear in the data source, or by their y position relative to the viewport.
|
|
@@ -3393,7 +3420,7 @@ declare namespace atlas {
|
|
|
3393
3420
|
* Default `250`.
|
|
3394
3421
|
* @default 250
|
|
3395
3422
|
*/
|
|
3396
|
-
lineSpacing?: number |
|
|
3423
|
+
lineSpacing?: number | PropertyValueSpecification<number>;
|
|
3397
3424
|
}
|
|
3398
3425
|
|
|
3399
3426
|
/**
|
|
@@ -3421,11 +3448,11 @@ declare namespace atlas {
|
|
|
3421
3448
|
* Default `"center"`.
|
|
3422
3449
|
* @default "center"
|
|
3423
3450
|
*/
|
|
3424
|
-
anchor?:
|
|
3451
|
+
anchor?: PositionAnchor | DataDrivenPropertyValueSpecification<PositionAnchor>;
|
|
3425
3452
|
/**
|
|
3426
3453
|
* Specifies the name of a property on the features to use for a text label.
|
|
3427
3454
|
*/
|
|
3428
|
-
textField?: string |
|
|
3455
|
+
textField?: string | DataDrivenPropertyValueSpecification<string>;
|
|
3429
3456
|
/**
|
|
3430
3457
|
* The font stack to use for displaying text.
|
|
3431
3458
|
* Possible values: `"SegoeFrutigerHelveticaMYingHei-Bold"`, `"SegoeFrutigerHelveticaMYingHei-Medium"`,
|
|
@@ -3438,7 +3465,7 @@ declare namespace atlas {
|
|
|
3438
3465
|
* Default `["StandardFont-Regular"]`.
|
|
3439
3466
|
* @default ["StandardFont-Regular"]
|
|
3440
3467
|
*/
|
|
3441
|
-
font?: string[] |
|
|
3468
|
+
font?: string[] | DataDrivenPropertyValueSpecification<string[]>;
|
|
3442
3469
|
/**
|
|
3443
3470
|
* Specifies if the other symbols are allowed to collide with the text.
|
|
3444
3471
|
* If true, other symbols can be visible even if they collide with the text.
|
|
@@ -3462,7 +3489,7 @@ declare namespace atlas {
|
|
|
3462
3489
|
* Default `[0, 0]`.
|
|
3463
3490
|
* @default [0, 0]
|
|
3464
3491
|
*/
|
|
3465
|
-
offset?:
|
|
3492
|
+
offset?: Pixel | DataDrivenPropertyValueSpecification<Pixel>;
|
|
3466
3493
|
/**
|
|
3467
3494
|
* Specifies if the text can be hidden if it is overlapped by another symbol.
|
|
3468
3495
|
* If true, icons will display without their corresponding text
|
|
@@ -3477,7 +3504,7 @@ declare namespace atlas {
|
|
|
3477
3504
|
* Default `2`.
|
|
3478
3505
|
* @default 2
|
|
3479
3506
|
*/
|
|
3480
|
-
padding?: number |
|
|
3507
|
+
padding?: number | PropertyValueSpecification<number>;
|
|
3481
3508
|
/**
|
|
3482
3509
|
* Specifies the orientation of the text when the map is pitched.
|
|
3483
3510
|
* <p>`"auto"`: Automatically matches the value of `rotationAlignment`.</p>
|
|
@@ -3493,13 +3520,13 @@ declare namespace atlas {
|
|
|
3493
3520
|
* Default: `0`
|
|
3494
3521
|
* @default 0
|
|
3495
3522
|
*/
|
|
3496
|
-
radialOffset?: number |
|
|
3523
|
+
radialOffset?: number | DataDrivenPropertyValueSpecification<number>;
|
|
3497
3524
|
/**
|
|
3498
3525
|
* The amount to rotate the text clockwise in degrees.
|
|
3499
3526
|
* Default `0`
|
|
3500
3527
|
* @default 0
|
|
3501
3528
|
*/
|
|
3502
|
-
rotation?: number |
|
|
3529
|
+
rotation?: number | DataDrivenPropertyValueSpecification<number>;
|
|
3503
3530
|
/**
|
|
3504
3531
|
* In combination with the `placement` property of the `SymbolLayerOptions`,
|
|
3505
3532
|
* specifies the rotation behavior of the individual glyphs forming the text.
|
|
@@ -3531,33 +3558,33 @@ declare namespace atlas {
|
|
|
3531
3558
|
* Default: `undefined`
|
|
3532
3559
|
* @default undefined
|
|
3533
3560
|
*/
|
|
3534
|
-
variableAnchor?:
|
|
3561
|
+
variableAnchor?: PositionAnchor[];
|
|
3535
3562
|
/**
|
|
3536
3563
|
* The size of the font in pixels.
|
|
3537
3564
|
* Must be a number greater or equal to 0.
|
|
3538
3565
|
* Default `16`.
|
|
3539
3566
|
* @default 16
|
|
3540
3567
|
*/
|
|
3541
|
-
size?: number |
|
|
3568
|
+
size?: number | DataDrivenPropertyValueSpecification<number>;
|
|
3542
3569
|
/**
|
|
3543
3570
|
* The color of the text.
|
|
3544
3571
|
* Default `"#000000"`.
|
|
3545
3572
|
* @default "#000000"
|
|
3546
3573
|
*/
|
|
3547
|
-
color?: string |
|
|
3574
|
+
color?: string | DataDrivenPropertyValueSpecification<string>;
|
|
3548
3575
|
/**
|
|
3549
3576
|
* The halo's fadeout distance towards the outside in pixels.
|
|
3550
3577
|
* Must be a number greater or equal to 0.
|
|
3551
3578
|
* Default `0`.
|
|
3552
3579
|
* @default 0
|
|
3553
3580
|
*/
|
|
3554
|
-
haloBlur?: number |
|
|
3581
|
+
haloBlur?: number | DataDrivenPropertyValueSpecification<number>;
|
|
3555
3582
|
/**
|
|
3556
3583
|
* The color of the text's halo, which helps it stand out from backgrounds.
|
|
3557
3584
|
* Default `"rgba(0,0,0,0)"`.
|
|
3558
3585
|
* @default "rgba(0,0,0,0)"
|
|
3559
3586
|
*/
|
|
3560
|
-
haloColor?: string |
|
|
3587
|
+
haloColor?: string | DataDrivenPropertyValueSpecification<string>;
|
|
3561
3588
|
/**
|
|
3562
3589
|
* The distance of the halo to the font outline in pixels.
|
|
3563
3590
|
* Must be a number greater or equal to 0.
|
|
@@ -3565,13 +3592,13 @@ declare namespace atlas {
|
|
|
3565
3592
|
* Default `0`.
|
|
3566
3593
|
* @default 0
|
|
3567
3594
|
*/
|
|
3568
|
-
haloWidth?: number |
|
|
3595
|
+
haloWidth?: number | DataDrivenPropertyValueSpecification<number>;
|
|
3569
3596
|
/**
|
|
3570
3597
|
* A number between 0 and 1 that indicates the opacity at which the text will be drawn.
|
|
3571
3598
|
* Default `1`.
|
|
3572
3599
|
* @default 1
|
|
3573
3600
|
*/
|
|
3574
|
-
opacity?: number |
|
|
3601
|
+
opacity?: number | DataDrivenPropertyValueSpecification<number>;
|
|
3575
3602
|
}
|
|
3576
3603
|
|
|
3577
3604
|
/**
|
|
@@ -3903,6 +3930,18 @@ declare namespace atlas {
|
|
|
3903
3930
|
* @default 20
|
|
3904
3931
|
*/
|
|
3905
3932
|
maxZoom?: number;
|
|
3933
|
+
/**
|
|
3934
|
+
* The minimum pitch that the map can be pitched to during the animation. Must be between 0 and 85, and less than or equal to `maxPitch`.
|
|
3935
|
+
* Default `0`.
|
|
3936
|
+
* @default 0
|
|
3937
|
+
*/
|
|
3938
|
+
minPitch?: number;
|
|
3939
|
+
/**
|
|
3940
|
+
* The maximum pitch that the map can be pitched to during the animation. Must be between 0 and 85, and greater than or equal to `minPitch`
|
|
3941
|
+
* Default `60`.
|
|
3942
|
+
* @default 60
|
|
3943
|
+
*/
|
|
3944
|
+
maxPitch?: number;
|
|
3906
3945
|
/**
|
|
3907
3946
|
* A bounding box in which to constrain the viewable map area to.
|
|
3908
3947
|
* Users won't be able to pan the center of the map outside of this bounding box.
|
|
@@ -4073,6 +4112,15 @@ declare namespace atlas {
|
|
|
4073
4112
|
* <ul>
|
|
4074
4113
|
*/
|
|
4075
4114
|
tiles?: string[];
|
|
4115
|
+
|
|
4116
|
+
/**
|
|
4117
|
+
* A URL to a TileJSON resource.
|
|
4118
|
+
* Supported protocols are `http:` and `https:`.
|
|
4119
|
+
*/
|
|
4120
|
+
url?: string;
|
|
4121
|
+
}
|
|
4122
|
+
|
|
4123
|
+
export interface RasterTileSourceOptions extends VectorTileSourceOptions {
|
|
4076
4124
|
/**
|
|
4077
4125
|
* An integer value that specifies the width and height dimensions of the map tiles.
|
|
4078
4126
|
* For a seamless experience, the tile size must by a multiplier of 2. (i.e. 256, 512, 1024…).
|
|
@@ -4080,11 +4128,17 @@ declare namespace atlas {
|
|
|
4080
4128
|
* @default 512
|
|
4081
4129
|
*/
|
|
4082
4130
|
tileSize?: number;
|
|
4131
|
+
}
|
|
4132
|
+
|
|
4133
|
+
export interface ElevationTileSourceOptions extends RasterTileSourceOptions {
|
|
4083
4134
|
/**
|
|
4084
|
-
*
|
|
4085
|
-
*
|
|
4135
|
+
* DEM tiles encoding format. Supported: `mapbox` or `terrarium`.
|
|
4136
|
+
* <p>`"terrarium": Terrarium format PNG tiles. See https://aws.amazon.com/es/public-datasets/terrain/ for more info.</p>
|
|
4137
|
+
* <p>`"mapbox": Mapbox Terrain RGB tiles. See https://www.mapbox.com/help/access-elevation-data/#mapbox-terrain-rgb for more info.</p>
|
|
4138
|
+
* default `mapbox`
|
|
4139
|
+
* @default mapbox
|
|
4086
4140
|
*/
|
|
4087
|
-
|
|
4141
|
+
encoding?: 'terrarium' | 'mapbox';
|
|
4088
4142
|
}
|
|
4089
4143
|
|
|
4090
4144
|
/**
|
|
@@ -4165,7 +4219,7 @@ declare namespace atlas {
|
|
|
4165
4219
|
* Default `"bottom"`
|
|
4166
4220
|
* @default "bottom"
|
|
4167
4221
|
*/
|
|
4168
|
-
anchor?:
|
|
4222
|
+
anchor?: PositionAnchor;
|
|
4169
4223
|
/**
|
|
4170
4224
|
* A color value that replaces any {color} placeholder property that has been included in a string htmlContent.
|
|
4171
4225
|
* default `"#1A73AA"`
|
|
@@ -4238,14 +4292,14 @@ declare namespace atlas {
|
|
|
4238
4292
|
* Default: `"#FFFFFF"`
|
|
4239
4293
|
* @default "#FFFFFF"
|
|
4240
4294
|
*/
|
|
4241
|
-
color?: string |
|
|
4295
|
+
color?: string | DataDrivenPropertyValueSpecification<string>;
|
|
4242
4296
|
/**
|
|
4243
4297
|
* Intensity of lighting (on a scale from 0 to 1).
|
|
4244
4298
|
* Higher numbers will present as more extreme contrast.
|
|
4245
4299
|
* Default `0.5`
|
|
4246
4300
|
* @default 0.5
|
|
4247
4301
|
*/
|
|
4248
|
-
intensity?: number |
|
|
4302
|
+
intensity?: number | DataDrivenPropertyValueSpecification<number>;
|
|
4249
4303
|
/**
|
|
4250
4304
|
* Position of the light source relative to lit (extruded) geometries,
|
|
4251
4305
|
* in [r radial coordinate, a azimuthal angle, p polar angle]
|
|
@@ -4743,16 +4797,21 @@ declare namespace atlas {
|
|
|
4743
4797
|
* By default, it is set to half the number of CPU cores (capped at 6).
|
|
4744
4798
|
*/
|
|
4745
4799
|
workerCount?: number;
|
|
4800
|
+
/**
|
|
4801
|
+
* True to validate styles before it's getting applied.
|
|
4802
|
+
* Validation takes significant(few hundred ms) time to process styles during initial load.
|
|
4803
|
+
* @default 'false'
|
|
4804
|
+
*/
|
|
4805
|
+
validateStyle?: boolean;
|
|
4746
4806
|
}
|
|
4747
4807
|
|
|
4748
|
-
type ExpressionName = "array" | "boolean" | "collator" | "format" | "literal" | "number" | "object" | "string" | "to-boolean" | "to-color" | "to-number" | "to-string" | "typeof" | "feature-state" | "geometry-type" | "id" | "line-progress" | "properties" | "at" | "get" | "has" | "length" | "!" | "!=" | "<" | "<=" | "==" | ">" | ">=" | "all" | "any" | "case" | "match" | "interpolate" | "interpolate-hcl" | "interpolate-lab" | "step" | "let" | "var" | "concat" | "downcase" | "is-supported-script" | "resolved-locale" | "upcase" | "rgb" | "rgba" | "-" | "*" | "/" | "%" | "^" | "+" | "abs" | "acos" | "asin" | "atan" | "ceil" | "cos" | "e" | "floor" | "ln" | "ln2" | "log10" | "log2" | "max" | "min" | "pi" | "round" | "sin" | "sqrt" | "tan" | "zoom" | "heatmap-density";
|
|
4749
4808
|
/**
|
|
4750
4809
|
* Can be specified as the value of filter or certain layer options.
|
|
4751
4810
|
* An expression defines a formula for computing the value of the property.
|
|
4752
4811
|
* Expressions are represented as JSON arrays.
|
|
4753
4812
|
* The first element of an expression is a string naming the expression operator.
|
|
4754
4813
|
*/
|
|
4755
|
-
export type Expression =
|
|
4814
|
+
export type Expression = ExpressionFilterSpecification;
|
|
4756
4815
|
|
|
4757
4816
|
/**
|
|
4758
4817
|
* An aggregate expression defines a calculation that is processed over a set of data.
|