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/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.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.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
+ "@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.2.2",
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.0.0",
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": "^20.0.0",
77
- "rollup": "^3.0.0",
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.6.2"
84
+ "yargs": "^17.7.2"
87
85
  },
88
86
  "overrides": {
89
- "@rollup/pluginutils": "^5.0.2",
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": [
Binary file
@@ -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
- private static ROTATION_DURATION_MS;
630
- private static DEFAULT_ROTATION;
631
- private static INVERT_ORDER_POSITIONS;
632
- private hasMouse;
633
- private options;
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
- private constructRotationButton;
647
- private constructRightRotationButton;
648
- private constructLeftRotationButton;
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
- private static PITCH_DURATION_MS;
656
- private static DEFAULT_PITCH;
657
- private static INVERT_ORDER_POSITIONS;
658
- private hasMouse;
659
- private options;
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
- private constructPitchButton;
673
- private constructPitchDecrementButton;
674
- private constructPitchIncrementButton;
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
- private static ZOOM_DURATION_MS;
734
- private options;
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
- private constructZoomInButton;
747
- private constructZoomOutButton;
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
- mouseup: TargetedEvent;
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;