azure-maps-control 2.3.1 → 3.0.0-preview.10

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.
@@ -1,4 +1,5 @@
1
- import * as AuthenticationContext from "adal-angular";
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 | Expression;
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 | Expression;
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 | Expression;
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 | Expression;
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 | Expression;
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 | Expression;
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 | Expression;
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?: "center" | "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | Expression;
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 | Expression;
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?: atlas.Pixel | Expression;
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 | Expression;
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 | Expression;
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 | Expression;
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 | Expression;
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 | Expression;
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 | Expression;
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 | Expression;
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 | Expression;
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 | Expression;
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 | Expression;
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 | Expression;
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 | Expression;
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 | Expression;
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 | Expression;
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 | Expression;
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 | Expression;
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 | Expression;
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 | Expression;
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 | Expression;
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 | Expression;
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 | Expression;
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?: "center" | "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | Expression;
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 | Expression;
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[] | Expression;
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?: atlas.Pixel | Expression;
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 | Expression;
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 | Expression;
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 | Expression;
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?: ("center" | "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right")[];
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 | Expression;
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 | Expression;
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 | Expression;
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 | Expression;
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 | Expression;
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 | Expression;
3601
+ opacity?: number | DataDrivenPropertyValueSpecification<number>;
3575
3602
  }
3576
3603
 
3577
3604
  /**
@@ -3766,8 +3793,8 @@ declare namespace atlas {
3766
3793
  * The type of traffic flow to display:
3767
3794
  * <p>"none" is to display no traffic flow data</p>
3768
3795
  * <p>"relative" is the speed of the road relative to free-flow</p>
3769
- * <p>"absolute" is the absolute speed of the road</p>
3770
- * <p>"relative-delay" displays relative speed only where they differ from free-flow;
3796
+ * <p>@deprecated "absolute" is the absolute speed of the road</p>
3797
+ * <p>@deprecated "relative-delay" displays relative speed only where they differ from free-flow;
3771
3798
  * false to stop displaying the traffic flow.</p>
3772
3799
  * default `"relative"``
3773
3800
  * @default "relative"
@@ -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.
@@ -4013,6 +4052,23 @@ declare namespace atlas {
4013
4052
  * Defines custom properties that are calculated using expressions against all the points within each cluster and added to the properties of each cluster point.
4014
4053
  */
4015
4054
  clusterProperties?: Record<string, AggregateExpression>;
4055
+ /**
4056
+ * Minimum number of points necessary to form a cluster if clustering is enabled.
4057
+ * @default 2
4058
+ */
4059
+ clusterMinPoints?: number | undefined = 2;
4060
+ /**
4061
+ * 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.
4062
+ */
4063
+ generateId?: boolean | undefined = false;
4064
+ /**
4065
+ * A property to use as a feature id (for feature state). Either a property name, or an object of the form {<sourceLayer>: <propertyName>}.
4066
+ */
4067
+ promoteId?: { [key: string]: string } | string | undefined = undefined;
4068
+ /**
4069
+ * An expression for filtering features prior to processing them for rendering.
4070
+ */
4071
+ filter?: any = undefined
4016
4072
  }
4017
4073
 
4018
4074
  /**
@@ -4056,6 +4112,15 @@ declare namespace atlas {
4056
4112
  * <ul>
4057
4113
  */
4058
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 {
4059
4124
  /**
4060
4125
  * An integer value that specifies the width and height dimensions of the map tiles.
4061
4126
  * For a seamless experience, the tile size must by a multiplier of 2. (i.e. 256, 512, 1024…).
@@ -4063,11 +4128,17 @@ declare namespace atlas {
4063
4128
  * @default 512
4064
4129
  */
4065
4130
  tileSize?: number;
4131
+ }
4132
+
4133
+ export interface ElevationTileSourceOptions extends RasterTileSourceOptions {
4066
4134
  /**
4067
- * A URL to a TileJSON resource.
4068
- * Supported protocols are `http:` and `https:`.
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
4069
4140
  */
4070
- url?: string;
4141
+ encoding?: 'terrarium' | 'mapbox';
4071
4142
  }
4072
4143
 
4073
4144
  /**
@@ -4148,7 +4219,7 @@ declare namespace atlas {
4148
4219
  * Default `"bottom"`
4149
4220
  * @default "bottom"
4150
4221
  */
4151
- anchor?: string;
4222
+ anchor?: PositionAnchor;
4152
4223
  /**
4153
4224
  * A color value that replaces any {color} placeholder property that has been included in a string htmlContent.
4154
4225
  * default `"#1A73AA"`
@@ -4221,14 +4292,14 @@ declare namespace atlas {
4221
4292
  * Default: `"#FFFFFF"`
4222
4293
  * @default "#FFFFFF"
4223
4294
  */
4224
- color?: string | Expression;
4295
+ color?: string | DataDrivenPropertyValueSpecification<string>;
4225
4296
  /**
4226
4297
  * Intensity of lighting (on a scale from 0 to 1).
4227
4298
  * Higher numbers will present as more extreme contrast.
4228
4299
  * Default `0.5`
4229
4300
  * @default 0.5
4230
4301
  */
4231
- intensity?: number | Expression;
4302
+ intensity?: number | DataDrivenPropertyValueSpecification<number>;
4232
4303
  /**
4233
4304
  * Position of the light source relative to lit (extruded) geometries,
4234
4305
  * in [r radial coordinate, a azimuthal angle, p polar angle]
@@ -4299,6 +4370,7 @@ declare namespace atlas {
4299
4370
  * If false all buildings will be rendered as just their footprints.
4300
4371
  * Default `false`
4301
4372
  * @default false
4373
+ * @deprecated
4302
4374
  */
4303
4375
  showBuildingModels?: boolean;
4304
4376
  /**
@@ -4337,7 +4409,7 @@ declare namespace atlas {
4337
4409
  /**
4338
4410
  * 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.
4339
4411
  * Please see the supported [Views]{@link https://aka.ms/AzureMapsLocalizationViews}
4340
- * 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.
4412
+ * 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.
4341
4413
  * default: `undefined`
4342
4414
  * @default undefined
4343
4415
  */
@@ -4356,8 +4428,8 @@ declare namespace atlas {
4356
4428
  * The type of traffic flow to display:
4357
4429
  * <p>"none" is to display no traffic flow data</p>
4358
4430
  * <p>"relative" is the speed of the road relative to free-flow</p>
4359
- * <p>"absolute" is the absolute speed of the road</p>
4360
- * <p>"relative-delay" displays relative speed only where they differ from free-flow;
4431
+ * <p>@deprecated "absolute" is the absolute speed of the road</p>
4432
+ * <p>@deprecated "relative-delay" displays relative speed only where they differ from free-flow;
4361
4433
  * false to stop displaying the traffic flow.</p>
4362
4434
  * default `"none"``
4363
4435
  * @default "none"
@@ -4489,7 +4561,7 @@ declare namespace atlas {
4489
4561
  /**
4490
4562
  * The AAD implicit grant mechanism. Recommended for pages protected by a sign-in.
4491
4563
  * By default the page will be redirected to the AAD login when the map control initializes.
4492
- * Specify a logged-in `AuthenticationContext` in the `AuthenticationOptions`
4564
+ * Specify a logged-in `PublicClientApplication` in the `AuthenticationOptions`
4493
4565
  * for greater control over when/how the users signs in.
4494
4566
  * Literal value `"aad"`
4495
4567
  */
@@ -4552,13 +4624,13 @@ declare namespace atlas {
4552
4624
  */
4553
4625
  sasToken?: string;
4554
4626
  /**
4555
- * Optionally provide an existing `AuthenticationContext` from the ADAL.js library.
4627
+ * Optionally provide an existing `PublicClientApplication` from the MSAL.js library.
4556
4628
  * This authentication context will be used to acquire the AAD token.
4557
4629
  * Only used with the AAD authentication type.
4558
4630
  * This auth context must be configured to use the same AAD app ID as `this.aadAppId`.
4559
4631
  * If this is not provided all map instances will share their own private auth context.
4560
4632
  */
4561
- authContext?: AuthenticationContext;
4633
+ authContext?: PublicClientApplication;
4562
4634
  /**
4563
4635
  * Sets the required options to configure the subscription key authentication mechanism.
4564
4636
  * @param subscriptionKey Subscription Key from your azure maps account
@@ -4570,9 +4642,9 @@ declare namespace atlas {
4570
4642
  * @param aadAppId Azure AD App ID
4571
4643
  * @param aadTenant Azure AD Tenant Name
4572
4644
  * @param aadInstance An optional Azure AD Instance
4573
- * @param authContext An optional `AuthenticationContext` from the ADAL.js library
4645
+ * @param authContext An optional `PublicClientApplication` from the MSAL.js library
4574
4646
  */
4575
- setAadProperties?(clientId: string, aadAppId: string, aadTenant: string, aadInstance?: string, authContext?: AuthenticationContext): void;
4647
+ setAadProperties?(clientId: string, aadAppId: string, aadTenant: string, aadInstance?: string, authContext?: PublicClientApplication): void;
4576
4648
  /**
4577
4649
  * Sets the required options to configure the anonymous authentication method.
4578
4650
  * @param getTokenCallback Callback function responsible for resolving to an authentication token.
@@ -4725,16 +4797,21 @@ declare namespace atlas {
4725
4797
  * By default, it is set to half the number of CPU cores (capped at 6).
4726
4798
  */
4727
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;
4728
4806
  }
4729
4807
 
4730
- 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";
4731
4808
  /**
4732
4809
  * Can be specified as the value of filter or certain layer options.
4733
4810
  * An expression defines a formula for computing the value of the property.
4734
4811
  * Expressions are represented as JSON arrays.
4735
4812
  * The first element of an expression is a string naming the expression operator.
4736
4813
  */
4737
- export type Expression = [ExpressionName, ...any[]];
4814
+ export type Expression = ExpressionFilterSpecification;
4738
4815
 
4739
4816
  /**
4740
4817
  * An aggregate expression defines a calculation that is processed over a set of data.