azure-maps-control 3.1.1 → 3.1.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.
package/dist/atlas.css CHANGED
@@ -550,6 +550,7 @@
550
550
  display: none;
551
551
  }
552
552
  .atlas-map .azure-map-feedback {
553
+ background: no-repeat center center;
553
554
  margin-right: 16px;
554
555
  height: 20px;
555
556
  width: 20px;
@@ -558,10 +559,10 @@
558
559
  text-decoration: none;
559
560
  }
560
561
  .atlas-map .map-copyright.light .azure-map-feedback {
561
- 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");
562
+ 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");
562
563
  }
563
564
  .atlas-map .map-copyright.dark .azure-map-feedback {
564
- 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");
565
+ 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");
565
566
  }
566
567
  .atlas-map .map-copyright {
567
568
  display: flex;
package/dist/atlas.js CHANGED
@@ -51096,7 +51096,7 @@ uniform ${precision} ${type} u_${name};
51096
51096
  return Url;
51097
51097
  }());
51098
51098
 
51099
- var version$3 = "3.1.1";
51099
+ var version$3 = "3.1.2";
51100
51100
 
51101
51101
  /**
51102
51102
  * A helper class that provides methods for getting various forms of the map controls current version.
@@ -64467,6 +64467,12 @@ uniform ${precision} ${type} u_${name};
64467
64467
  * 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).
64468
64468
  */
64469
64469
  _this.fillPattern = undefined;
64470
+ /**
64471
+ * Whether or not the fill should be antialiased.
64472
+ * Default `true`.
64473
+ * @default true
64474
+ */
64475
+ _this.fillAntialias = true;
64470
64476
  return _this;
64471
64477
  }
64472
64478
  return PolygonLayerOptions;
@@ -64541,6 +64547,7 @@ uniform ${precision} ${type} u_${name};
64541
64547
  this._updatePaintProperty("fill-color", newOptions.fillColor, this.options.fillColor);
64542
64548
  this._updatePaintProperty("fill-opacity", newOptions.fillOpacity, this.options.fillOpacity);
64543
64549
  this._updatePaintProperty("fill-pattern", newOptions.fillPattern, this.options.fillPattern);
64550
+ this._updatePaintProperty("fill-antialias", newOptions.fillAntialias, this.options.fillAntialias);
64544
64551
  }
64545
64552
  this.options = newOptions;
64546
64553
  };
@@ -64558,7 +64565,8 @@ uniform ${precision} ${type} u_${name};
64558
64565
  visibility: this.options.visible ? "visible" : "none"
64559
64566
  },
64560
64567
  paint: {
64561
- "fill-opacity": this.options.fillOpacity
64568
+ "fill-opacity": this.options.fillOpacity,
64569
+ "fill-antialias": this.options.fillAntialias,
64562
64570
  },
64563
64571
  minzoom: this.options.minZoom,
64564
64572
  maxzoom: this.options.maxZoom
@@ -87689,10 +87697,19 @@ uniform ${precision} ${type} u_${name};
87689
87697
  .filter(function (message) { return message; })
87690
87698
  .join("");
87691
87699
  };
87700
+ // Append latitude, longitude and zoom level to feedback link.
87701
+ _this.updateFeedbackLink = function () {
87702
+ var _a;
87703
+ if (_this.feedbackAnchor && _this.map) {
87704
+ var center = (_a = _this.map.getCamera(), _a.center), zoom = _a.zoom;
87705
+ _this.feedbackAnchor.href = "".concat(CopyrightControl.feedbackLink, "&cp=").concat(center[1], "~").concat(center[0], "&lvl=").concat(zoom + 1);
87706
+ }
87707
+ };
87692
87708
  _this.options = new CopyrightControlOptions().merge(options);
87693
87709
  return _this;
87694
87710
  }
87695
87711
  CopyrightControl.prototype.onAdd = function (map) {
87712
+ this.map = map;
87696
87713
  this.container = this.buildContainer(map, exports.ControlStyle.auto);
87697
87714
  this.container.className = "map-copyright";
87698
87715
  this.copyrightDiv = this.buildCopyrightDiv();
@@ -87759,27 +87776,30 @@ uniform ${precision} ${type} u_${name};
87759
87776
  };
87760
87777
  CopyrightControl.prototype.buildFeedbackLink = function () {
87761
87778
  var link = document.createElement("a");
87762
- link.setAttribute("alt", "Give Feedback");
87763
- link.setAttribute("aria-label", "Give Feedback");
87764
- link.href = "https://feedback.azuremaps.com";
87779
+ link.setAttribute("alt", "Provide Map Data Feedback");
87780
+ link.setAttribute("aria-label", "Provide Map Data Feedback");
87781
+ link.href = CopyrightControl.feedbackLink;
87765
87782
  link.target = "_blank";
87766
87783
  link.rel = "noopener";
87767
87784
  link.className = "azure-map-feedback";
87768
87785
  return link;
87769
87786
  };
87770
87787
  CopyrightControl.prototype.addRemoveFeedbackDiv = function (add) {
87788
+ var _a, _b, _c, _d;
87771
87789
  if (add) {
87772
87790
  this.feedbackAnchor = this.buildFeedbackLink();
87773
- this.tooltip = buildAccessibleTooltip("Give Feedback");
87791
+ this.tooltip = buildAccessibleTooltip("Provide Map Data Feedback");
87774
87792
  this.container.appendChild(this.feedbackAnchor);
87775
87793
  this.container.appendChild(this.tooltip);
87776
87794
  positionTooltip(this.tooltip, this.feedbackAnchor);
87795
+ (_b = (_a = this.map) === null || _a === void 0 ? void 0 : _a.events) === null || _b === void 0 ? void 0 : _b.add("moveend", this.updateFeedbackLink);
87777
87796
  }
87778
87797
  else {
87779
87798
  this.feedbackAnchor.remove();
87780
87799
  this.tooltip.remove();
87781
87800
  delete this.tooltip;
87782
87801
  delete this.feedbackAnchor;
87802
+ (_d = (_c = this.map) === null || _c === void 0 ? void 0 : _c.events) === null || _d === void 0 ? void 0 : _d.remove("moveend", this.updateFeedbackLink);
87783
87803
  }
87784
87804
  };
87785
87805
  CopyrightControl.prototype.addRemoveLogo = function (add) {
@@ -87800,6 +87820,7 @@ uniform ${precision} ${type} u_${name};
87800
87820
  delete this.logoAnchor;
87801
87821
  }
87802
87822
  };
87823
+ CopyrightControl.feedbackLink = "https://aka.ms/azuremapsdatafeedback?feedbackep=UrlAzureMapsWebSdk";
87803
87824
  return CopyrightControl;
87804
87825
  }(ControlBase));
87805
87826