azure-maps-control 3.0.0 → 3.0.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/ReadMe.md +2 -2
- package/dist/atlas-core-bare-snr-min.js +1 -1
- package/dist/atlas-core-bare-snr.js +24 -13
- package/dist/atlas-core-bare.js +2818 -1471
- package/dist/atlas-core-bare.min.js +1 -1
- package/dist/atlas-core-snr.js +453 -193
- package/dist/atlas-core.js +3247 -1651
- package/dist/atlas-core.min.js +4 -3
- package/dist/atlas-internal.min.js +1 -1
- package/dist/atlas.css +2 -2
- package/dist/atlas.js +3247 -1651
- package/dist/atlas.min.css +1 -1
- package/dist/atlas.min.js +4 -3
- package/package.json +10 -15
- package/thirdpartynotices.txt +0 -0
- package/typings/index.d.ts +60 -22
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.
|
|
4
|
+
"version": "3.0.1",
|
|
5
5
|
"description": "Map SDK for Azure Maps",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"azure",
|
|
@@ -48,13 +48,11 @@
|
|
|
48
48
|
"@turf/intersect": "^6.3.0",
|
|
49
49
|
"@types/jest": "^29.0.0",
|
|
50
50
|
"@types/jwt-decode": "^3.0.0",
|
|
51
|
-
"@types/lodash": "4.14.
|
|
52
|
-
"@
|
|
53
|
-
"@
|
|
54
|
-
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
55
|
-
"@typescript-eslint/parser": "^6.0.0",
|
|
51
|
+
"@types/lodash": "4.14.197",
|
|
52
|
+
"@typescript-eslint/eslint-plugin": "^6.4.0",
|
|
53
|
+
"@typescript-eslint/parser": "^6.4.0",
|
|
56
54
|
"atob": "^2.1.2",
|
|
57
|
-
"azuremaps-maplibre-gl": "^3.
|
|
55
|
+
"azuremaps-maplibre-gl": "^3.3.0",
|
|
58
56
|
"canvas": "^2.10.2",
|
|
59
57
|
"es-abstract": "^1.20.1",
|
|
60
58
|
"eslint": "^8.39.0",
|
|
@@ -68,13 +66,13 @@
|
|
|
68
66
|
"jest-environment-jsdom": "^29.6.1",
|
|
69
67
|
"jest-trx-results-processor": "^3.0.1",
|
|
70
68
|
"jwt-decode": "^3.0.0",
|
|
71
|
-
"less": "^4.
|
|
69
|
+
"less": "^4.2.0",
|
|
72
70
|
"less-plugin-clean-css": "^1.5.1",
|
|
73
71
|
"lodash": "4.17.21",
|
|
74
72
|
"node-fetch": "^2.6.8",
|
|
75
73
|
"playwright-trx-reporter": "^1.0.6",
|
|
76
|
-
"puppeteer": "^
|
|
77
|
-
"rollup": "^3.
|
|
74
|
+
"puppeteer": "^21.0.0",
|
|
75
|
+
"rollup": "^3.28.0",
|
|
78
76
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
79
77
|
"rollup-plugin-uglify": "^6.0.4",
|
|
80
78
|
"simplify-ts": "^1.0.2",
|
|
@@ -83,13 +81,10 @@
|
|
|
83
81
|
"typescript": "^5.0.0",
|
|
84
82
|
"utf-8-validate": "^6.0.0",
|
|
85
83
|
"uuid-random": "^1.3.2",
|
|
86
|
-
"yargs": "^17.
|
|
84
|
+
"yargs": "^17.7.2"
|
|
87
85
|
},
|
|
88
86
|
"overrides": {
|
|
89
|
-
"
|
|
90
|
-
"clean-css": "^5.3.1",
|
|
91
|
-
"rollup": "^3.0.0",
|
|
92
|
-
"serialize-javascript": "^6.0.0"
|
|
87
|
+
"rollup": "^3.28.0"
|
|
93
88
|
},
|
|
94
89
|
"license": "SEE LICENSE IN LICENSE.TXT",
|
|
95
90
|
"files": [
|
package/thirdpartynotices.txt
CHANGED
|
Binary file
|
package/typings/index.d.ts
CHANGED
|
@@ -626,11 +626,14 @@ declare namespace atlas {
|
|
|
626
626
|
* A control for changing the rotation of the map.
|
|
627
627
|
*/
|
|
628
628
|
export class CompassControl extends ControlBase {
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
629
|
+
protected static DefaultRotation: number;
|
|
630
|
+
protected static InvertOrderPositions: ControlPosition[2];
|
|
631
|
+
|
|
632
|
+
protected hasMouse: boolean;
|
|
633
|
+
protected hasFocus: boolean;
|
|
634
|
+
protected lastActiveTime: number;
|
|
635
|
+
protected options: CompassControlOptions;
|
|
636
|
+
|
|
634
637
|
/**
|
|
635
638
|
* Constructs a CompassControl.
|
|
636
639
|
* @param options The options for the control.
|
|
@@ -643,20 +646,33 @@ declare namespace atlas {
|
|
|
643
646
|
* @return An HTMLElement to be placed on the map for the control.
|
|
644
647
|
*/
|
|
645
648
|
onAdd(map: Map, options?: ControlOptions): HTMLElement;
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
+
|
|
650
|
+
protected constructRotationGrid: (map: Map, options?: ControlOptions) => HTMLElement;
|
|
651
|
+
protected constructRotationButton: (map: Map) => HTMLElement;
|
|
652
|
+
protected constructRightRotationButton: (map: Map) => HTMLElement;
|
|
653
|
+
protected constructLeftRotationButton: (map: Map) => HTMLElement;
|
|
649
654
|
}
|
|
650
655
|
|
|
651
656
|
/**
|
|
652
657
|
* A control for changing the pitch of the map.
|
|
653
658
|
*/
|
|
654
659
|
export class PitchControl extends ControlBase {
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
+
protected static PITCH_DURATION_MS;
|
|
661
|
+
protected static DEFAULT_PITCH;
|
|
662
|
+
protected static INVERT_ORDER_POSITIONS;
|
|
663
|
+
|
|
664
|
+
protected container: HTMLDivElement | null;
|
|
665
|
+
protected map: Map | null;
|
|
666
|
+
protected pitchButton: HTMLButtonElement | null;
|
|
667
|
+
protected pitchIncrementButton: HTMLButtonElement | null;
|
|
668
|
+
protected pitchDecrementButton: HTMLButtonElement | null;
|
|
669
|
+
|
|
670
|
+
protected hasMouse: boolean;
|
|
671
|
+
protected options: boolean;
|
|
672
|
+
|
|
673
|
+
protected lastActiveTime: number;
|
|
674
|
+
protected options: PitchControlOptions;
|
|
675
|
+
|
|
660
676
|
/**
|
|
661
677
|
* Constructs a PitchControl.
|
|
662
678
|
* @param options The options for the control.
|
|
@@ -669,9 +685,17 @@ declare namespace atlas {
|
|
|
669
685
|
* @return An HTMLElement to be placed on the map for the control.
|
|
670
686
|
*/
|
|
671
687
|
onAdd(map: Map, options?: ControlOptions): HTMLElement;
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
688
|
+
onRemove(): void;
|
|
689
|
+
|
|
690
|
+
protected pitchChanged: (map: MapEvent) => void;
|
|
691
|
+
|
|
692
|
+
protected updatePitchButtonsState: () => void;
|
|
693
|
+
|
|
694
|
+
protected constructPitchGrid: (map: Map, options?: ControlOptions) => void;
|
|
695
|
+
|
|
696
|
+
protected constructPitchButton: (map: Map) => HTMLElement;
|
|
697
|
+
protected constructPitchDecrementButton: (map: Map) => HTMLElement;
|
|
698
|
+
protected constructPitchIncrementButton: (map: Map) => HTMLElement;
|
|
675
699
|
}
|
|
676
700
|
|
|
677
701
|
/**
|
|
@@ -730,8 +754,12 @@ declare namespace atlas {
|
|
|
730
754
|
* A control for changing the zoom of the map.
|
|
731
755
|
*/
|
|
732
756
|
export class ZoomControl extends ControlBase {
|
|
733
|
-
|
|
734
|
-
|
|
757
|
+
protected static ZOOM_DURATION_MS;
|
|
758
|
+
protected container: HTMLDivElement | null;
|
|
759
|
+
protected zoomInButton: HTMLButtonElement | null;
|
|
760
|
+
protected zoomOutButton: HTMLButtonElement | null;
|
|
761
|
+
protected map: Map | null;
|
|
762
|
+
protected options: ZoomControlOptions;
|
|
735
763
|
/**
|
|
736
764
|
* Constructs a ZoomControl.
|
|
737
765
|
* @param options The options for the control.
|
|
@@ -743,8 +771,15 @@ declare namespace atlas {
|
|
|
743
771
|
* @return An HTMLElement to be placed on the map for the control.
|
|
744
772
|
*/
|
|
745
773
|
onAdd(map: Map): HTMLElement;
|
|
746
|
-
|
|
747
|
-
|
|
774
|
+
onRemove (): void;
|
|
775
|
+
|
|
776
|
+
protected zoomChanged: (event: MapEvent) => void;
|
|
777
|
+
protected minZoomChanged: (zoom: number) => void;
|
|
778
|
+
protected maxZoomChanged: (zoom: number) => void;
|
|
779
|
+
|
|
780
|
+
protected updateZoomButtonsState(): void;
|
|
781
|
+
protected constructZoomInButton: (map: Map) => HTMLElement;
|
|
782
|
+
protected constructZoomOutButton: (map: Map) => HTMLElement;
|
|
748
783
|
}
|
|
749
784
|
|
|
750
785
|
/**
|
|
@@ -2584,9 +2619,12 @@ declare namespace atlas {
|
|
|
2584
2619
|
keypress: TargetedEvent;
|
|
2585
2620
|
keyup: TargetedEvent;
|
|
2586
2621
|
mousedown: TargetedEvent;
|
|
2587
|
-
|
|
2622
|
+
mouseenter: TargetedEvent;
|
|
2623
|
+
mouseleave: TargetedEvent;
|
|
2588
2624
|
mousemove: TargetedEvent;
|
|
2589
2625
|
mouseout: TargetedEvent;
|
|
2626
|
+
mouseover: TargetedEvent;
|
|
2627
|
+
mouseup: TargetedEvent;
|
|
2590
2628
|
}
|
|
2591
2629
|
|
|
2592
2630
|
/**
|
|
@@ -4709,7 +4747,7 @@ declare namespace atlas {
|
|
|
4709
4747
|
/**
|
|
4710
4748
|
* Disable telemetry collection
|
|
4711
4749
|
* This option may only be set when initializing the map.
|
|
4712
|
-
* default: false
|
|
4750
|
+
* default: false (true for the Azure Government cloud)
|
|
4713
4751
|
* @default false
|
|
4714
4752
|
*/
|
|
4715
4753
|
disableTelemetry?: boolean;
|