azure-maps-control 3.4.0 → 3.6.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/dist/atlas-core-bare-snr-min.js +1 -1
- package/dist/atlas-core-bare-snr.js +260 -65
- package/dist/atlas-core-bare.js +260 -65
- package/dist/atlas-core-bare.min.js +1 -1
- package/dist/atlas-core-snr.js +260 -65
- package/dist/atlas-core.js +260 -65
- package/dist/atlas-core.min.js +1 -1
- package/dist/atlas-esm.js +260 -65
- package/dist/atlas-esm.min.js +1 -1
- package/dist/atlas.css +23 -3
- package/dist/atlas.js +260 -65
- package/dist/atlas.min.css +1 -1
- package/dist/atlas.min.js +1 -1
- package/package.json +8 -8
- package/thirdpartynotices.txt +0 -0
- package/typings/index.d.ts +123 -4
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "azure-maps-control",
|
|
3
3
|
"author": "Microsoft Corporation",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.6.0",
|
|
5
5
|
"description": "Map SDK for Azure Maps",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"azure",
|
|
@@ -42,15 +42,15 @@
|
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@mapbox/mapbox-gl-rtl-text": "^0.2.3",
|
|
44
44
|
"@microsoft/applicationinsights-web": "^3.3.0",
|
|
45
|
-
"@playwright/test": "^1.
|
|
46
|
-
"@rollup/plugin-commonjs": "^25.0.
|
|
45
|
+
"@playwright/test": "^1.49.1",
|
|
46
|
+
"@rollup/plugin-commonjs": "^25.0.7",
|
|
47
47
|
"@rollup/plugin-json": "^6.0.0",
|
|
48
48
|
"@rollup/plugin-node-resolve": "^15.1.0",
|
|
49
49
|
"@testing-library/dom": "^9.3.3",
|
|
50
50
|
"@turf/intersect": "^6.3.0",
|
|
51
51
|
"@types/jest": "^29.5.3",
|
|
52
52
|
"@types/jwt-decode": "^3.0.0",
|
|
53
|
-
"@types/lodash": "4.17.
|
|
53
|
+
"@types/lodash": "4.17.15",
|
|
54
54
|
"@typescript-eslint/eslint-plugin": "^6.4.0",
|
|
55
55
|
"@typescript-eslint/parser": "^6.4.0",
|
|
56
56
|
"atob": "^2.1.2",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"jest-trx-results-processor": "^3.0.1",
|
|
70
70
|
"jwt-decode": "^3.0.0",
|
|
71
71
|
"less": "^4.2.0",
|
|
72
|
-
"less-plugin-clean-css": "^1.
|
|
72
|
+
"less-plugin-clean-css": "^1.6.0",
|
|
73
73
|
"lodash": "4.17.21",
|
|
74
74
|
"node-fetch": "^2.6.8",
|
|
75
75
|
"playwright-trx-reporter": "^1.0.6",
|
|
@@ -78,15 +78,15 @@
|
|
|
78
78
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
79
79
|
"rollup-plugin-uglify": "^6.0.4",
|
|
80
80
|
"simplify-ts": "^1.0.2",
|
|
81
|
-
"ts-jest": "^29.
|
|
81
|
+
"ts-jest": "^29.2.2",
|
|
82
82
|
"ts-node": "^10.0.0",
|
|
83
83
|
"typescript": "^5.0.0",
|
|
84
|
-
"utf-8-validate": "^6.0.
|
|
84
|
+
"utf-8-validate": "^6.0.4",
|
|
85
85
|
"uuid-random": "^1.3.2",
|
|
86
86
|
"yargs": "^17.7.2"
|
|
87
87
|
},
|
|
88
88
|
"overrides": {
|
|
89
|
-
"@babel/core": "7.
|
|
89
|
+
"@babel/core": "7.26.7",
|
|
90
90
|
"rollup": "^3.28.0"
|
|
91
91
|
},
|
|
92
92
|
"license": "SEE LICENSE.TXT",
|
package/thirdpartynotices.txt
CHANGED
|
Binary file
|
package/typings/index.d.ts
CHANGED
|
@@ -889,6 +889,47 @@ declare namespace atlas {
|
|
|
889
889
|
onAdd (map: Map): HTMLElement;
|
|
890
890
|
private buildTrafficLegendDiv;
|
|
891
891
|
}
|
|
892
|
+
|
|
893
|
+
/**
|
|
894
|
+
* A control to make the map or a specified element fullscreen.
|
|
895
|
+
*/
|
|
896
|
+
export class FullscreenControl extends ControlBase {
|
|
897
|
+
private map: Map | null;
|
|
898
|
+
private options: FullscreenControlOptions;
|
|
899
|
+
private control;
|
|
900
|
+
private isFullscreenState: boolean;
|
|
901
|
+
|
|
902
|
+
/**
|
|
903
|
+
* A control to make the map or a specified element fullscreen.
|
|
904
|
+
* @param options Options for defining how the control is rendered and the container to be made fullscreen.
|
|
905
|
+
*/
|
|
906
|
+
constructor (options?: FullscreenControlOptions);
|
|
907
|
+
|
|
908
|
+
/**
|
|
909
|
+
* Initialization method for the control which is called when added to the map.
|
|
910
|
+
* @param map The map that the control will be added to.
|
|
911
|
+
* @param options The ControlOptions for this control.
|
|
912
|
+
* @return An HTMLElement to be placed on the map for the control.
|
|
913
|
+
*/
|
|
914
|
+
onAdd (map: Map): HTMLElement;
|
|
915
|
+
|
|
916
|
+
/**
|
|
917
|
+
* Method that is called when the control is removed from the map. Should perform any necessary cleanup for the control.
|
|
918
|
+
*/
|
|
919
|
+
onRemove (): void;
|
|
920
|
+
|
|
921
|
+
/**
|
|
922
|
+
* Gets the current fullscreen state of the map.
|
|
923
|
+
* @returns A boolean indicating if the container is in fullscreen mode.
|
|
924
|
+
*/
|
|
925
|
+
isFullscreen (): boolean;
|
|
926
|
+
|
|
927
|
+
/**
|
|
928
|
+
* Checks to see if the browser supports going into fullscreen mode.
|
|
929
|
+
* @returns A boolean indicating if the browser supports fullscreen mode.
|
|
930
|
+
*/
|
|
931
|
+
static isSupported (): boolean;
|
|
932
|
+
}
|
|
892
933
|
}
|
|
893
934
|
|
|
894
935
|
//internal classes
|
|
@@ -2826,7 +2867,7 @@ declare namespace atlas {
|
|
|
2826
2867
|
* language is explicitly specified when using those parts of the API.
|
|
2827
2868
|
* If a Map is initialized with the language explicitly defined and
|
|
2828
2869
|
* setLanguage hasn't previously been called it will automatically be called by the Map constructor.
|
|
2829
|
-
* @param language The new default language.
|
|
2870
|
+
* @param language The new default language. If set to "auto", the browser's preferred language will be used.
|
|
2830
2871
|
*/
|
|
2831
2872
|
export function setLanguage (language: string): void;
|
|
2832
2873
|
/**
|
|
@@ -3397,7 +3438,7 @@ declare namespace atlas {
|
|
|
3397
3438
|
* Name of image in sprite to use for drawing image fills.
|
|
3398
3439
|
* For seamless patterns, image width must be a factor of two (2, 4, 8, ..., 512).
|
|
3399
3440
|
*/
|
|
3400
|
-
fillPattern?: string
|
|
3441
|
+
fillPattern?: string | DataDrivenPropertyValueSpecification<string>;
|
|
3401
3442
|
/**
|
|
3402
3443
|
* The polygons' pixel offset.
|
|
3403
3444
|
* Values are [x, y] where negatives indicate left and up, respectively.
|
|
@@ -3938,6 +3979,31 @@ declare namespace atlas {
|
|
|
3938
3979
|
style?: ControlStyle;
|
|
3939
3980
|
}
|
|
3940
3981
|
|
|
3982
|
+
/**
|
|
3983
|
+
* The options for a FullscreenControl object.
|
|
3984
|
+
*/
|
|
3985
|
+
export interface FullscreenControlOptions extends Options {
|
|
3986
|
+
/**
|
|
3987
|
+
* The style of the control.
|
|
3988
|
+
* Default `ControlStyle.light`
|
|
3989
|
+
* @default ControlStyle.light
|
|
3990
|
+
*/
|
|
3991
|
+
style?: ControlStyle;
|
|
3992
|
+
|
|
3993
|
+
/**
|
|
3994
|
+
* Indicates if the control should be hidden if the browser does not support fullscreen mode.
|
|
3995
|
+
* Default `false`
|
|
3996
|
+
* @default false
|
|
3997
|
+
*/
|
|
3998
|
+
hideIfUnsupported?: boolean;
|
|
3999
|
+
|
|
4000
|
+
/**
|
|
4001
|
+
* The HTML element which should be made full screen.
|
|
4002
|
+
* If not specified, the map container element will be used.
|
|
4003
|
+
*/
|
|
4004
|
+
container?: HTMLElement;
|
|
4005
|
+
}
|
|
4006
|
+
|
|
3941
4007
|
/**
|
|
3942
4008
|
* The options for animating changes to the map control's camera.
|
|
3943
4009
|
*/
|
|
@@ -4449,6 +4515,7 @@ declare namespace atlas {
|
|
|
4449
4515
|
* The language of the map labels.
|
|
4450
4516
|
* [Supported language]{@link https://docs.microsoft.com/en-us/azure/azure-maps/supported-languages}.
|
|
4451
4517
|
* Default `atlas.getLanguage()`.
|
|
4518
|
+
* If set to "auto", the browser's preferred language will be used.
|
|
4452
4519
|
* @default atlas.getLanguage()
|
|
4453
4520
|
*/
|
|
4454
4521
|
language?: string;
|
|
@@ -4536,6 +4603,12 @@ declare namespace atlas {
|
|
|
4536
4603
|
* @deprecated use `view` instead.
|
|
4537
4604
|
*/
|
|
4538
4605
|
userRegion?: string;
|
|
4606
|
+
/**
|
|
4607
|
+
* Override the default styles for the map elements.
|
|
4608
|
+
* Default `undefined`
|
|
4609
|
+
* @default undefined
|
|
4610
|
+
*/
|
|
4611
|
+
styleOverrides?: StyleOverrides;
|
|
4539
4612
|
}
|
|
4540
4613
|
|
|
4541
4614
|
/**
|
|
@@ -4827,8 +4900,8 @@ declare namespace atlas {
|
|
|
4827
4900
|
/**
|
|
4828
4901
|
* Disable telemetry collection
|
|
4829
4902
|
* This option may only be set when initializing the map.
|
|
4830
|
-
* default:
|
|
4831
|
-
* @default
|
|
4903
|
+
* default: true
|
|
4904
|
+
* @default true
|
|
4832
4905
|
*/
|
|
4833
4906
|
disableTelemetry?: boolean;
|
|
4834
4907
|
/**
|
|
@@ -5945,6 +6018,52 @@ declare namespace atlas {
|
|
|
5945
6018
|
*/
|
|
5946
6019
|
point_count_abbreviated: string;
|
|
5947
6020
|
}
|
|
6021
|
+
|
|
6022
|
+
/**
|
|
6023
|
+
* Override the default styles for the map elements.
|
|
6024
|
+
*/
|
|
6025
|
+
export interface StyleOverrides {
|
|
6026
|
+
/**
|
|
6027
|
+
* Country or regions. Supported by map styles "road", "satellite_road_labels", "grayscale_light", "grayscale_dark", "night", "road_shaded_relief", "high_contrast_dark", "high_contrast_light".
|
|
6028
|
+
*/
|
|
6029
|
+
countryRegion?: BorderedMapElementStyles;
|
|
6030
|
+
/**
|
|
6031
|
+
* First administrative level within the country/region level, such as a state or a province. Supported by map styles "road", "satellite_road_labels", "grayscale_light", "grayscale_dark", "night", "road_shaded_relief", "high_contrast_dark", "high_contrast_light".
|
|
6032
|
+
*/
|
|
6033
|
+
adminDistrict?: BorderedMapElementStyles;
|
|
6034
|
+
/**
|
|
6035
|
+
* Second administrative level within the country/region level, such as a county. Supported by map styles "road", "satellite_road_labels", "night", "road_shaded_relief", "high_contrast_dark", "high_contrast_light".
|
|
6036
|
+
*/
|
|
6037
|
+
adminDistrict2?: BorderedMapElementStyles;
|
|
6038
|
+
/**
|
|
6039
|
+
* Building footprints along with their address numbers. Supported by map styles "road", "grayscale_light", "grayscale_dark", "night", "road_shaded_relief", "high_contrast_dark", "high_contrast_light".
|
|
6040
|
+
*/
|
|
6041
|
+
buildingFootprint?: MapElementStyles;
|
|
6042
|
+
/**
|
|
6043
|
+
* Street blocks in the populated places. Supported by map styles "road", "grayscale_light", "grayscale_dark", "night", "road_shaded_relief", "high_contrast_dark", "high_contrast_light".
|
|
6044
|
+
*/
|
|
6045
|
+
roadDetails?: MapElementStyles;
|
|
6046
|
+
}
|
|
6047
|
+
|
|
6048
|
+
/**
|
|
6049
|
+
* The style of the map element.
|
|
6050
|
+
*/
|
|
6051
|
+
export interface MapElementStyles {
|
|
6052
|
+
/**
|
|
6053
|
+
* Specifies the visibility of the element.
|
|
6054
|
+
*/
|
|
6055
|
+
visible?: boolean;
|
|
6056
|
+
}
|
|
6057
|
+
|
|
6058
|
+
/**
|
|
6059
|
+
* The style of the bordered map element.
|
|
6060
|
+
*/
|
|
6061
|
+
export interface BorderedMapElementStyles {
|
|
6062
|
+
/**
|
|
6063
|
+
* Specifies the visibility of the border.
|
|
6064
|
+
*/
|
|
6065
|
+
borderVisible?: boolean;
|
|
6066
|
+
}
|
|
5948
6067
|
}
|
|
5949
6068
|
|
|
5950
6069
|
export = atlas;
|