azure-maps-control 3.5.0 → 3.6.1
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 +60 -26
- package/dist/atlas-core-bare.js +60 -26
- package/dist/atlas-core-bare.min.js +1 -1
- package/dist/atlas-core-snr.js +60 -26
- package/dist/atlas-core.js +60 -26
- package/dist/atlas-core.min.js +1 -1
- package/dist/atlas-esm.js +60 -26
- package/dist/atlas-esm.min.js +1 -1
- package/dist/atlas.css +1 -3
- package/dist/atlas.js +60 -26
- package/dist/atlas.min.css +1 -1
- package/dist/atlas.min.js +1 -1
- package/package.json +5 -5
- package/thirdpartynotices.txt +0 -0
- package/typings/index.d.ts +61 -8
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.1",
|
|
5
5
|
"description": "Map SDK for Azure Maps",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"azure",
|
|
@@ -42,7 +42,7 @@
|
|
|
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.
|
|
45
|
+
"@playwright/test": "^1.49.1",
|
|
46
46
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
47
47
|
"@rollup/plugin-json": "^6.0.0",
|
|
48
48
|
"@rollup/plugin-node-resolve": "^15.1.0",
|
|
@@ -50,7 +50,7 @@
|
|
|
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",
|
|
@@ -81,12 +81,12 @@
|
|
|
81
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
|
@@ -903,7 +903,7 @@ declare namespace atlas {
|
|
|
903
903
|
* A control to make the map or a specified element fullscreen.
|
|
904
904
|
* @param options Options for defining how the control is rendered and the container to be made fullscreen.
|
|
905
905
|
*/
|
|
906
|
-
constructor(options?: FullscreenControlOptions);
|
|
906
|
+
constructor (options?: FullscreenControlOptions);
|
|
907
907
|
|
|
908
908
|
/**
|
|
909
909
|
* Initialization method for the control which is called when added to the map.
|
|
@@ -911,24 +911,24 @@ declare namespace atlas {
|
|
|
911
911
|
* @param options The ControlOptions for this control.
|
|
912
912
|
* @return An HTMLElement to be placed on the map for the control.
|
|
913
913
|
*/
|
|
914
|
-
onAdd(map: Map): HTMLElement;
|
|
914
|
+
onAdd (map: Map): HTMLElement;
|
|
915
915
|
|
|
916
916
|
/**
|
|
917
917
|
* Method that is called when the control is removed from the map. Should perform any necessary cleanup for the control.
|
|
918
918
|
*/
|
|
919
|
-
onRemove(): void;
|
|
919
|
+
onRemove (): void;
|
|
920
920
|
|
|
921
921
|
/**
|
|
922
922
|
* Gets the current fullscreen state of the map.
|
|
923
923
|
* @returns A boolean indicating if the container is in fullscreen mode.
|
|
924
924
|
*/
|
|
925
|
-
isFullscreen(): boolean;
|
|
925
|
+
isFullscreen (): boolean;
|
|
926
926
|
|
|
927
927
|
/**
|
|
928
928
|
* Checks to see if the browser supports going into fullscreen mode.
|
|
929
929
|
* @returns A boolean indicating if the browser supports fullscreen mode.
|
|
930
930
|
*/
|
|
931
|
-
static isSupported(): boolean;
|
|
931
|
+
static isSupported (): boolean;
|
|
932
932
|
}
|
|
933
933
|
}
|
|
934
934
|
|
|
@@ -2867,7 +2867,7 @@ declare namespace atlas {
|
|
|
2867
2867
|
* language is explicitly specified when using those parts of the API.
|
|
2868
2868
|
* If a Map is initialized with the language explicitly defined and
|
|
2869
2869
|
* setLanguage hasn't previously been called it will automatically be called by the Map constructor.
|
|
2870
|
-
* @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.
|
|
2871
2871
|
*/
|
|
2872
2872
|
export function setLanguage (language: string): void;
|
|
2873
2873
|
/**
|
|
@@ -4515,6 +4515,7 @@ declare namespace atlas {
|
|
|
4515
4515
|
* The language of the map labels.
|
|
4516
4516
|
* [Supported language]{@link https://docs.microsoft.com/en-us/azure/azure-maps/supported-languages}.
|
|
4517
4517
|
* Default `atlas.getLanguage()`.
|
|
4518
|
+
* If set to "auto", the browser's preferred language will be used.
|
|
4518
4519
|
* @default atlas.getLanguage()
|
|
4519
4520
|
*/
|
|
4520
4521
|
language?: string;
|
|
@@ -4602,6 +4603,12 @@ declare namespace atlas {
|
|
|
4602
4603
|
* @deprecated use `view` instead.
|
|
4603
4604
|
*/
|
|
4604
4605
|
userRegion?: string;
|
|
4606
|
+
/**
|
|
4607
|
+
* Override the default styles for the map elements.
|
|
4608
|
+
* Default `undefined`
|
|
4609
|
+
* @default undefined
|
|
4610
|
+
*/
|
|
4611
|
+
styleOverrides?: StyleOverrides;
|
|
4605
4612
|
}
|
|
4606
4613
|
|
|
4607
4614
|
/**
|
|
@@ -4893,8 +4900,8 @@ declare namespace atlas {
|
|
|
4893
4900
|
/**
|
|
4894
4901
|
* Disable telemetry collection
|
|
4895
4902
|
* This option may only be set when initializing the map.
|
|
4896
|
-
* default:
|
|
4897
|
-
* @default
|
|
4903
|
+
* default: true
|
|
4904
|
+
* @default true
|
|
4898
4905
|
*/
|
|
4899
4906
|
disableTelemetry?: boolean;
|
|
4900
4907
|
/**
|
|
@@ -6011,6 +6018,52 @@ declare namespace atlas {
|
|
|
6011
6018
|
*/
|
|
6012
6019
|
point_count_abbreviated: string;
|
|
6013
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
|
+
}
|
|
6014
6067
|
}
|
|
6015
6068
|
|
|
6016
6069
|
export = atlas;
|