azure-maps-control 2.3.6 → 2.3.7

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.css CHANGED
@@ -546,6 +546,7 @@ a.azure-map-copyright[href]:hover {
546
546
  display: none;
547
547
  }
548
548
  .azure-map-feedback {
549
+ background: no-repeat center center;
549
550
  margin-right: 16px;
550
551
  height: 20px;
551
552
  width: 20px;
@@ -554,10 +555,10 @@ a.azure-map-copyright[href]:hover {
554
555
  text-decoration: none;
555
556
  }
556
557
  .map-copyright.light .azure-map-feedback {
557
- background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0.5' y='0.5' width='19' height='19' rx='1.5' fill='%23F3F2F1'/%3E%3Cpath d='M10 3.6001C13.5346 3.6001 16.4 6.46547 16.4 10.0001C16.4 13.5347 13.5346 16.4001 10 16.4001C6.46538 16.4001 3.60001 13.5347 3.60001 10.0001C3.60001 6.46547 6.46538 3.6001 10 3.6001ZM10 4.4001C6.90721 4.4001 4.40001 6.9073 4.40001 10.0001C4.40001 13.0929 6.90721 15.6001 10 15.6001C13.0928 15.6001 15.6 13.0929 15.6 10.0001C15.6 6.9073 13.0928 4.4001 10 4.4001ZM7.72374 11.9419C8.93133 13.1572 10.8702 13.2037 12.1337 12.077L12.2763 11.9419C12.432 11.7852 12.6853 11.7844 12.842 11.9401C12.9812 12.0786 12.9974 12.294 12.8898 12.4503L12.8437 12.5058L12.8258 12.5237C11.2553 14.0844 8.71693 14.0764 7.15627 12.5058C7.00056 12.3491 7.00136 12.0959 7.15806 11.9401C7.31476 11.7844 7.56802 11.7852 7.72374 11.9419ZM12 8.0001C12.4418 8.0001 12.8 8.35827 12.8 8.8001C12.8 9.24192 12.4418 9.6001 12 9.6001C11.5582 9.6001 11.2 9.24192 11.2 8.8001C11.2 8.35827 11.5582 8.0001 12 8.0001ZM8.00001 8.0001C8.44183 8.0001 8.80001 8.35827 8.80001 8.8001C8.80001 9.24192 8.44183 9.6001 8.00001 9.6001C7.55818 9.6001 7.20001 9.24192 7.20001 8.8001C7.20001 8.35827 7.55818 8.0001 8.00001 8.0001Z' fill='%23323130'/%3E%3Crect x='0.5' y='0.5' width='19' height='19' rx='1.5' stroke='%238A8886'/%3E%3C/svg%3E%0A");
558
+ background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Ctitle%3EFeedback%3C/title%3E%3Cpath d='M0 0v11h2v3.71L5.71 11H16V0H0zm1 1h14v9H5.29L3 12.29V10H1V1z' fill='%23666' fill-rule='evenodd'/%3E%3C/svg%3E");
558
559
  }
559
560
  .map-copyright.dark .azure-map-feedback {
560
- background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0.5' y='0.5' width='19' height='19' rx='1.5' fill='%232C2C2C'/%3E%3Cpath d='M10 3.6001C13.5346 3.6001 16.4 6.46547 16.4 10.0001C16.4 13.5347 13.5346 16.4001 10 16.4001C6.46538 16.4001 3.60001 13.5347 3.60001 10.0001C3.60001 6.46547 6.46538 3.6001 10 3.6001ZM10 4.4001C6.90721 4.4001 4.40001 6.9073 4.40001 10.0001C4.40001 13.0929 6.90721 15.6001 10 15.6001C13.0928 15.6001 15.6 13.0929 15.6 10.0001C15.6 6.9073 13.0928 4.4001 10 4.4001ZM7.72374 11.9419C8.93133 13.1572 10.8702 13.2037 12.1337 12.077L12.2763 11.9419C12.432 11.7852 12.6853 11.7844 12.842 11.9401C12.9812 12.0786 12.9974 12.294 12.8898 12.4503L12.8437 12.5058L12.8258 12.5237C11.2553 14.0844 8.71693 14.0764 7.15627 12.5058C7.00056 12.3491 7.00136 12.0959 7.15806 11.9401C7.31476 11.7844 7.56802 11.7852 7.72374 11.9419ZM12 8.0001C12.4418 8.0001 12.8 8.35827 12.8 8.8001C12.8 9.24192 12.4418 9.6001 12 9.6001C11.5582 9.6001 11.2 9.24192 11.2 8.8001C11.2 8.35827 11.5582 8.0001 12 8.0001ZM8.00001 8.0001C8.44183 8.0001 8.80001 8.35827 8.80001 8.8001C8.80001 9.24192 8.44183 9.6001 8.00001 9.6001C7.55818 9.6001 7.20001 9.24192 7.20001 8.8001C7.20001 8.35827 7.55818 8.0001 8.00001 8.0001Z' fill='%23FFFFFF'/%3E%3Crect x='0.5' y='0.5' width='19' height='19' rx='1.5' stroke='%238A8886'/%3E%3C/svg%3E%0A");
561
+ background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Ctitle%3EFeedback%3C/title%3E%3Cpath d='M0 0v11h2v3.71L5.71 11H16V0H0zm1 1h14v9H5.29L3 12.29V10H1V1z' fill='%23fff' fill-rule='evenodd'/%3E%3C/svg%3E");
561
562
  }
562
563
  .map-copyright {
563
564
  display: flex;
package/dist/atlas.js CHANGED
@@ -43477,7 +43477,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
43477
43477
  return Url;
43478
43478
  }());
43479
43479
 
43480
- var version = "2.3.6";
43480
+ var version = "2.3.7";
43481
43481
 
43482
43482
  /**
43483
43483
  * A helper class that provides methods for getting various forms of the map controls current version.
@@ -56039,6 +56039,12 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
56039
56039
  * Name of image in sprite to use for drawing image fills. For seamless patterns, image width must be a factor of two (2, 4, 8, ..., 512).
56040
56040
  */
56041
56041
  _this.fillPattern = undefined;
56042
+ /**
56043
+ * Whether or not the fill should be antialiased.
56044
+ * Default `true`.
56045
+ * @default true
56046
+ */
56047
+ _this.fillAntialias = true;
56042
56048
  return _this;
56043
56049
  }
56044
56050
  /**
@@ -56155,6 +56161,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
56155
56161
  this._updatePaintProperty("fill-color", newOptions.fillColor, this.options.fillColor);
56156
56162
  this._updatePaintProperty("fill-opacity", newOptions.fillOpacity, this.options.fillOpacity);
56157
56163
  this._updatePaintProperty("fill-pattern", newOptions.fillPattern, this.options.fillPattern);
56164
+ this._updatePaintProperty("fill-antialias", newOptions.fillAntialias, this.options.fillAntialias);
56158
56165
  }
56159
56166
  this.options = newOptions;
56160
56167
  };
@@ -56172,7 +56179,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
56172
56179
  visibility: this.options.visible ? "visible" : "none"
56173
56180
  },
56174
56181
  paint: {
56175
- "fill-opacity": this.options.fillOpacity
56182
+ "fill-opacity": this.options.fillOpacity,
56183
+ "fill-antialias": this.options.fillAntialias,
56176
56184
  },
56177
56185
  minzoom: this.options.minZoom,
56178
56186
  maxzoom: this.options.maxZoom
@@ -69695,10 +69703,18 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
69695
69703
  .filter(function (message) { return message; })
69696
69704
  .join("");
69697
69705
  };
69706
+ // Append latitude, longitude and zoom level to feedback link.
69707
+ _this.updateFeedbackLink = function () {
69708
+ if (_this.feedbackAnchor && _this.map) {
69709
+ var _a = _this.map.getCamera(), center = _a.center, zoom = _a.zoom;
69710
+ _this.feedbackAnchor.href = CopyrightControl.feedbackLink + "&cp=" + center[1] + "~" + center[0] + "&lvl=" + (zoom + 1);
69711
+ }
69712
+ };
69698
69713
  _this.options = new CopyrightControlOptions().merge(options);
69699
69714
  return _this;
69700
69715
  }
69701
69716
  CopyrightControl.prototype.onAdd = function (map) {
69717
+ this.map = map;
69702
69718
  this.container = this.buildContainer(map, exports.ControlStyle.auto);
69703
69719
  this.container.className = "map-copyright";
69704
69720
  this.copyrightDiv = this.buildCopyrightDiv();
@@ -69765,27 +69781,30 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
69765
69781
  };
69766
69782
  CopyrightControl.prototype.buildFeedbackLink = function () {
69767
69783
  var link = document.createElement("a");
69768
- link.setAttribute("alt", "Give Feedback");
69769
- link.setAttribute("aria-label", "Give Feedback");
69770
- link.href = "https://feedback.azuremaps.com";
69784
+ link.setAttribute("alt", "Provide Map Data Feedback");
69785
+ link.setAttribute("aria-label", "Provide Map Data Feedback");
69786
+ link.href = CopyrightControl.feedbackLink;
69771
69787
  link.target = "_blank";
69772
69788
  link.rel = "noopener";
69773
69789
  link.className = "azure-map-feedback";
69774
69790
  return link;
69775
69791
  };
69776
69792
  CopyrightControl.prototype.addRemoveFeedbackDiv = function (add) {
69793
+ var _a, _b, _c, _d;
69777
69794
  if (add) {
69778
69795
  this.feedbackAnchor = this.buildFeedbackLink();
69779
- this.tooltip = buildAccessibleTooltip("Give Feedback");
69796
+ this.tooltip = buildAccessibleTooltip("Provide Map Data Feedback");
69780
69797
  this.container.appendChild(this.feedbackAnchor);
69781
69798
  this.container.appendChild(this.tooltip);
69782
69799
  positionTooltip(this.tooltip, this.feedbackAnchor);
69800
+ (_b = (_a = this.map) === null || _a === void 0 ? void 0 : _a.events) === null || _b === void 0 ? void 0 : _b.add("moveend", this.updateFeedbackLink);
69783
69801
  }
69784
69802
  else {
69785
69803
  this.feedbackAnchor.remove();
69786
69804
  this.tooltip.remove();
69787
69805
  delete this.tooltip;
69788
69806
  delete this.feedbackAnchor;
69807
+ (_d = (_c = this.map) === null || _c === void 0 ? void 0 : _c.events) === null || _d === void 0 ? void 0 : _d.remove("moveend", this.updateFeedbackLink);
69789
69808
  }
69790
69809
  };
69791
69810
  CopyrightControl.prototype.addRemoveLogo = function (add) {
@@ -69806,6 +69825,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
69806
69825
  delete this.logoAnchor;
69807
69826
  }
69808
69827
  };
69828
+ CopyrightControl.feedbackLink = "https://aka.ms/azuremapsdatafeedback?feedbackep=UrlAzureMapsWebSdk";
69809
69829
  return CopyrightControl;
69810
69830
  }(ControlBase));
69811
69831
 
@@ -81363,10 +81383,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
81363
81383
  */
81364
81384
  _this["enable-accessibility"] = _this.enableAccessibility;
81365
81385
  /**
81366
- * Enable fallback to geocoder for accessibility location, if failed to extract location from vector data.
81386
+ * Enable the fallback to the REST API geocoder for detecting location accessibility if extracting location from vector data fails.
81387
+ * Disabling this option will prevent the generation of geocode API requests but may lead to a lack of location information for screen readers.
81367
81388
  * default: true
81368
81389
  * @default true
81369
- * @internal
81370
81390
  */
81371
81391
  _this.enableAccessibilityLocationFallback = true;
81372
81392
  /**