azure-maps-control 3.6.1 → 3.7.2

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.
@@ -466,7 +466,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
466
466
  * Contains real information about the available/supported locales.
467
467
  */
468
468
  var localeIndex = {
469
- localizationsPath: "locs/mapcontrol/2019-3-12",
469
+ localizationsPath: "locs/mapcontrol/2025-11-05",
470
470
  sensitiveUserRegions: ["il", "kr", "pk", "in", "cn", "ar", "bh", "eg", "jo", "sa", "kw", "om", "qa", "ma", "ae"],
471
471
  locales: {
472
472
  defaultLanguage: {
@@ -482,37 +482,49 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
482
482
  ar: {
483
483
  defaultRegion: {
484
484
  code: "ar",
485
- strings: "ar-sa/resource.json"
485
+ strings: "ar-SA/resource.json"
486
486
  }
487
487
  },
488
488
  bg: {
489
489
  defaultRegion: {
490
490
  code: "bg-BG",
491
- strings: "bg-bg/resource.json"
491
+ strings: "bg-BG/resource.json"
492
+ }
493
+ },
494
+ ca: {
495
+ defaultRegion: {
496
+ code: "ca-ES",
497
+ strings: "ca-ES/resource.json"
492
498
  }
493
499
  },
494
500
  cs: {
495
501
  defaultRegion: {
496
502
  code: "cs-CZ",
497
- strings: "cs-cz/resource.json"
503
+ strings: "cs-CZ/resource.json"
498
504
  }
499
505
  },
500
506
  da: {
501
507
  defaultRegion: {
502
508
  code: "da-DK",
503
- strings: "da-dk/resource.json"
509
+ strings: "da-DK/resource.json"
504
510
  }
505
511
  },
506
512
  de: {
507
513
  defaultRegion: {
508
514
  code: "de-DE",
509
- strings: "de-de/resource.json"
515
+ strings: "de-DE/resource.json"
516
+ }
517
+ },
518
+ et: {
519
+ defaultRegion: {
520
+ code: "et-EE",
521
+ strings: "et-EE/resource.json"
510
522
  }
511
523
  },
512
524
  el: {
513
525
  defaultRegion: {
514
526
  code: "el-GR",
515
- strings: "el-gr/resource.json"
527
+ strings: "el-GR/resource.json"
516
528
  }
517
529
  },
518
530
  en: {
@@ -540,123 +552,199 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
540
552
  es: {
541
553
  defaultRegion: {
542
554
  code: "es-ES",
543
- strings: "es-es/resource.json"
555
+ strings: "es-ES/resource.json"
544
556
  },
545
557
  mx: {
546
558
  code: "es-MX",
547
- strings: "es-mx/resource.json"
559
+ strings: "es-MX/resource.json"
560
+ }
561
+ },
562
+ eu: {
563
+ defaultRegion: {
564
+ code: "eu-ES",
565
+ strings: "eu-ES/resource.json"
548
566
  }
549
567
  },
550
568
  fi: {
551
569
  defaultRegion: {
552
570
  code: "fi-FI",
553
- strings: "fi-fi/resource.json"
571
+ strings: "fi-FI/resource.json"
554
572
  }
555
573
  },
556
574
  fr: {
557
575
  defaultRegion: {
558
576
  code: "fr-FR",
559
- strings: "fr-fr/resource.json"
577
+ strings: "fr-FR/resource.json"
578
+ }
579
+ },
580
+ gl: {
581
+ defaultRegion: {
582
+ code: "gl-ES",
583
+ strings: "gl-ES/resource.json"
584
+ }
585
+ },
586
+ he: {
587
+ defaultRegion: {
588
+ code: "he-IL",
589
+ strings: "he-IL/resource.json"
590
+ }
591
+ },
592
+ hi: {
593
+ defaultRegion: {
594
+ code: "hi-IN",
595
+ strings: "hi-IN/resource.json"
596
+ }
597
+ },
598
+ hr: {
599
+ defaultRegion: {
600
+ code: "hr-HR",
601
+ strings: "hr-HR/resource.json"
560
602
  }
561
603
  },
562
604
  hu: {
563
605
  defaultRegion: {
564
606
  code: "hu-HU",
565
- strings: "hu-hu/resource.json"
607
+ strings: "hu-HU/resource.json"
566
608
  }
567
609
  },
568
610
  id: {
569
611
  defaultRegion: {
570
612
  code: "id-ID",
571
- strings: "id-id/resource.json"
613
+ strings: "id-ID/resource.json"
572
614
  }
573
615
  },
574
616
  it: {
575
617
  defaultRegion: {
576
618
  code: "it-IT",
577
- strings: "it-it/resource.json"
619
+ strings: "it-IT/resource.json"
620
+ }
621
+ },
622
+ ja: {
623
+ defaultRegion: {
624
+ code: "ja-JP",
625
+ strings: "ja-JP/resource.json"
626
+ }
627
+ },
628
+ kk: {
629
+ defaultRegion: {
630
+ code: "kk-KZ",
631
+ strings: "kk-KZ/resource.json"
578
632
  }
579
633
  },
580
634
  ko: {
581
635
  defaultRegion: {
582
636
  code: "ko-KR",
583
- strings: "ko-kr/resource.json"
637
+ strings: "ko-KR/resource.json"
584
638
  }
585
639
  },
586
640
  lt: {
587
641
  defaultRegion: {
588
642
  code: "lt-LT",
589
- strings: "lt-lt/resource.json"
643
+ strings: "lt-LT/resource.json"
644
+ }
645
+ },
646
+ lv: {
647
+ defaultRegion: {
648
+ code: "lv-LV",
649
+ strings: "lv-LV/resource.json"
590
650
  }
591
651
  },
592
652
  ms: {
593
653
  defaultRegion: {
594
654
  code: "ms-MY",
595
- strings: "ms-my/resource.json"
655
+ strings: "ms-MY/resource.json"
596
656
  }
597
657
  },
598
658
  nb: {
599
659
  defaultRegion: {
600
660
  code: "nb-NO",
601
- strings: "nb-no/resource.json"
661
+ strings: "nb-NO/resource.json"
602
662
  }
603
663
  },
604
664
  nl: {
605
665
  defaultRegion: {
606
666
  code: "nl-NL",
607
- strings: "nl-nl/resource.json"
667
+ strings: "nl-NL/resource.json"
608
668
  }
609
669
  },
610
670
  pl: {
611
671
  defaultRegion: {
612
672
  code: "pl-PL",
613
- strings: "pl-pl/resource.json"
673
+ strings: "pl-PL/resource.json"
614
674
  }
615
675
  },
616
676
  pt: {
617
677
  defaultRegion: {
618
678
  code: "pt-PT",
619
- strings: "pt-pt/resource.json"
679
+ strings: "pt-PT/resource.json"
620
680
  },
621
681
  br: {
622
682
  code: "pt-BR",
623
- strings: "pt-br/resource.json"
683
+ strings: "pt-BR/resource.json"
684
+ }
685
+ },
686
+ ro: {
687
+ defaultRegion: {
688
+ code: "ro-RO",
689
+ strings: "ro-RO/resource.json"
624
690
  }
625
691
  },
626
692
  ru: {
627
693
  defaultRegion: {
628
694
  code: "ru-RU",
629
- strings: "ru-ru/resource.json"
695
+ strings: "ru-RU/resource.json"
630
696
  }
631
697
  },
632
698
  sk: {
633
699
  defaultRegion: {
634
700
  code: "sk-SK",
635
- strings: "sk-sk/resource.json"
701
+ strings: "sk-SK/resource.json"
636
702
  }
637
703
  },
638
704
  sl: {
639
705
  defaultRegion: {
640
706
  code: "sl-SL",
641
- strings: "sl-sl/resource.json"
707
+ strings: "sl/resource.json"
708
+ }
709
+ },
710
+ sr: {
711
+ defaultRegion: {
712
+ code: "sr-CYRL-RS",
713
+ strings: "sr-CYRL-RS/resource.json"
714
+ },
715
+ latn: {
716
+ code: "sr-LATN-RS",
717
+ strings: "sr-LATN-RS/resource.json"
642
718
  }
643
719
  },
644
720
  sv: {
645
721
  defaultRegion: {
646
722
  code: "sv-SE",
647
- strings: "sv-se/resource.json"
723
+ strings: "sv-SE/resource.json"
648
724
  }
649
725
  },
650
726
  th: {
651
727
  defaultRegion: {
652
728
  code: "th-TH",
653
- strings: "th-th/resource.json"
729
+ strings: "th-TH/resource.json"
654
730
  }
655
731
  },
656
732
  tr: {
657
733
  defaultRegion: {
658
734
  code: "tr-TR",
659
- strings: "tr-tr/resource.json"
735
+ strings: "tr-TR/resource.json"
736
+ }
737
+ },
738
+ uk: {
739
+ defaultRegion: {
740
+ code: "uk-UA",
741
+ strings: "uk-UA/resource.json"
742
+ }
743
+ },
744
+ vi: {
745
+ defaultRegion: {
746
+ code: "vi-VN",
747
+ strings: "vi-VN/resource.json"
660
748
  }
661
749
  },
662
750
  zh: {
@@ -685,7 +773,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
685
773
  },
686
774
  tw: {
687
775
  code: "zh-Hant-TW",
688
- strings: "zh-tw/resource.json"
776
+ strings: "zh-TW/resource.json"
689
777
  }
690
778
  }
691
779
  }
@@ -890,7 +978,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
890
978
  return UserAgent;
891
979
  }());
892
980
 
893
- var version$2 = "3.6.1";
981
+ var version$2 = "3.7.2";
894
982
 
895
983
  /**
896
984
  * A helper class that provides methods for getting various forms of the map controls current version.
@@ -1847,6 +1935,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
1847
1935
  }
1848
1936
  };
1849
1937
  eventTarget.addEventListener("mouseover", positionTooltip);
1938
+ eventTarget.addEventListener("touchend", positionTooltip);
1850
1939
  eventTarget.addEventListener("focusin", positionTooltip);
1851
1940
  eventTarget.addEventListener("keydown", dismissTooltip);
1852
1941
  };
@@ -6443,6 +6532,18 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
6443
6532
  styleOpsGrid.classList.add("hidden-accessible-element");
6444
6533
  }
6445
6534
  };
6535
+ var onStyleButtonClick = function () {
6536
+ if (container.classList.contains(StyleControl.Css.inUse)) {
6537
+ expandGrid(false);
6538
+ }
6539
+ else {
6540
+ expandGrid(true);
6541
+ // clicking on a reveal button should move the focus to the first styleOpsGrid button
6542
+ if (styleOpsGrid.firstElementChild) {
6543
+ styleOpsGrid.firstElementChild.focus();
6544
+ }
6545
+ }
6546
+ };
6446
6547
  styleOpsGrid.classList.add(options ? options.position || 'top-right' : 'top-right');
6447
6548
  container.addEventListener("mouseover", function () {
6448
6549
  _this.hasMouse = true;
@@ -6482,17 +6583,12 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
6482
6583
  }
6483
6584
  }
6484
6585
  });
6586
+ currStyleButton.addEventListener("touchend", function (event) {
6587
+ event.preventDefault();
6588
+ onStyleButtonClick();
6589
+ });
6485
6590
  currStyleButton.addEventListener("click", function (event) {
6486
- if (container.classList.contains(StyleControl.Css.inUse)) {
6487
- expandGrid(false);
6488
- }
6489
- else {
6490
- expandGrid(true);
6491
- // clicking on a reveal button should move the focus to the first styleOpsGrid button
6492
- if (styleOpsGrid.firstElementChild) {
6493
- styleOpsGrid.firstElementChild.focus();
6494
- }
6495
- }
6591
+ onStyleButtonClick();
6496
6592
  });
6497
6593
  if (options && StyleControl.InvertOrderPositions.includes(options.position)) {
6498
6594
  container.appendChild(styleOpsGrid);
@@ -44567,7 +44663,6 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
44567
44663
  _this.pitch = 0;
44568
44664
  /**
44569
44665
  * The minimum zoom level that the map can be zoomed out to during the animation. Must be between 0 and 24, and less than or equal to `maxZoom`.
44570
- * Setting `minZoom` below 1 may result in an empty map when the zoom level is less than 1.
44571
44666
  * Default `1`.
44572
44667
  * @default 1
44573
44668
  */
@@ -46888,9 +46983,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
46888
46983
  _this.events.invoke("error", errorData);
46889
46984
  });
46890
46985
  // --> Set initial camera state of map
46891
- _this.setCamera(__assign(__assign({
46892
- // Default minZoom to ensure the map doesn't zoom out to unsupported zoom levels.
46893
- minZoom: 1 }, options), { type: "jump", duration: 0 }));
46986
+ _this.setCamera(__assign(__assign({}, options), { type: "jump", duration: 0 }));
46894
46987
  // Add delegates to map
46895
46988
  {
46896
46989
  _this.incidentDelegate = new IncidentServiceDelegate(_this);
@@ -47042,9 +47135,6 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
47042
47135
  pitch: cameraOptions.pitch,
47043
47136
  around: undefined
47044
47137
  };
47045
- if (cameraOptions.minZoom < 1) {
47046
- console.warn("Setting minZoom below 1 may result in an empty map when the zoom level is less than 1.");
47047
- }
47048
47138
  this.map.setMinZoom(cameraOptions.minZoom);
47049
47139
  this.map.setMaxZoom(cameraOptions.maxZoom);
47050
47140
  if (cameraOptions.minPitch) {
@@ -47858,9 +47948,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
47858
47948
  Map.prototype._rebuildStyle = function (diff) {
47859
47949
  if (diff === void 0) { diff = true; }
47860
47950
  return __awaiter(this, void 0, void 0, function () {
47951
+ var _this = this;
47861
47952
  return __generator(this, function (_a) {
47862
47953
  this.styles.setStyle(this.styleOptions, diff);
47863
- this.imageSprite._restoreImages();
47954
+ this.events.addOnce("stylechanged", function () { return _this.imageSprite._restoreImages(); });
47864
47955
  return [2 /*return*/];
47865
47956
  });
47866
47957
  });