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-core-bare-snr.js +28 -8
- package/dist/atlas-core-bare.js +28 -8
- package/dist/atlas-core-bare.min.js +1 -1
- package/dist/atlas-core-snr.js +28 -8
- package/dist/atlas-core.js +28 -8
- package/dist/atlas-core.min.js +1 -1
- package/dist/atlas.css +3 -2
- package/dist/atlas.js +28 -8
- package/dist/atlas.min.css +1 -1
- package/dist/atlas.min.js +1 -1
- package/package.json +1 -1
- package/typings/index.d.ts +8 -3
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='
|
|
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='
|
|
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.
|
|
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", "
|
|
69769
|
-
link.setAttribute("aria-label", "
|
|
69770
|
-
link.href =
|
|
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("
|
|
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
|
|
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
|
/**
|