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-core-bare-snr-min.js +1 -1
- package/dist/atlas-core-bare-snr.js +27 -6
- package/dist/atlas-core-bare.js +27 -6
- package/dist/atlas-core-bare.min.js +1 -1
- package/dist/atlas-core-snr.js +27 -6
- package/dist/atlas-core.js +27 -6
- package/dist/atlas-core.min.js +1 -1
- package/dist/atlas-esm.js +27 -6
- package/dist/atlas-esm.min.js +1 -1
- package/dist/atlas.css +3 -2
- package/dist/atlas.js +27 -6
- package/dist/atlas.min.css +1 -1
- package/dist/atlas.min.js +1 -1
- package/package.json +3 -3
- package/typings/index.d.ts +6 -1
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='
|
|
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='
|
|
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.
|
|
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", "
|
|
87763
|
-
link.setAttribute("aria-label", "
|
|
87764
|
-
link.href =
|
|
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("
|
|
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
|
|