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-core-snr.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
|
|
@@ -59514,10 +59522,18 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
59514
59522
|
.filter(function (message) { return message; })
|
|
59515
59523
|
.join("");
|
|
59516
59524
|
};
|
|
59525
|
+
// Append latitude, longitude and zoom level to feedback link.
|
|
59526
|
+
_this.updateFeedbackLink = function () {
|
|
59527
|
+
if (_this.feedbackAnchor && _this.map) {
|
|
59528
|
+
var _a = _this.map.getCamera(), center = _a.center, zoom = _a.zoom;
|
|
59529
|
+
_this.feedbackAnchor.href = CopyrightControl.feedbackLink + "&cp=" + center[1] + "~" + center[0] + "&lvl=" + (zoom + 1);
|
|
59530
|
+
}
|
|
59531
|
+
};
|
|
59517
59532
|
_this.options = new CopyrightControlOptions().merge(options);
|
|
59518
59533
|
return _this;
|
|
59519
59534
|
}
|
|
59520
59535
|
CopyrightControl.prototype.onAdd = function (map) {
|
|
59536
|
+
this.map = map;
|
|
59521
59537
|
this.container = this.buildContainer(map, exports.ControlStyle.auto);
|
|
59522
59538
|
this.container.className = "map-copyright";
|
|
59523
59539
|
this.copyrightDiv = this.buildCopyrightDiv();
|
|
@@ -59584,27 +59600,30 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
59584
59600
|
};
|
|
59585
59601
|
CopyrightControl.prototype.buildFeedbackLink = function () {
|
|
59586
59602
|
var link = document.createElement("a");
|
|
59587
|
-
link.setAttribute("alt", "
|
|
59588
|
-
link.setAttribute("aria-label", "
|
|
59589
|
-
link.href =
|
|
59603
|
+
link.setAttribute("alt", "Provide Map Data Feedback");
|
|
59604
|
+
link.setAttribute("aria-label", "Provide Map Data Feedback");
|
|
59605
|
+
link.href = CopyrightControl.feedbackLink;
|
|
59590
59606
|
link.target = "_blank";
|
|
59591
59607
|
link.rel = "noopener";
|
|
59592
59608
|
link.className = "azure-map-feedback";
|
|
59593
59609
|
return link;
|
|
59594
59610
|
};
|
|
59595
59611
|
CopyrightControl.prototype.addRemoveFeedbackDiv = function (add) {
|
|
59612
|
+
var _a, _b, _c, _d;
|
|
59596
59613
|
if (add) {
|
|
59597
59614
|
this.feedbackAnchor = this.buildFeedbackLink();
|
|
59598
|
-
this.tooltip = buildAccessibleTooltip("
|
|
59615
|
+
this.tooltip = buildAccessibleTooltip("Provide Map Data Feedback");
|
|
59599
59616
|
this.container.appendChild(this.feedbackAnchor);
|
|
59600
59617
|
this.container.appendChild(this.tooltip);
|
|
59601
59618
|
positionTooltip(this.tooltip, this.feedbackAnchor);
|
|
59619
|
+
(_b = (_a = this.map) === null || _a === void 0 ? void 0 : _a.events) === null || _b === void 0 ? void 0 : _b.add("moveend", this.updateFeedbackLink);
|
|
59602
59620
|
}
|
|
59603
59621
|
else {
|
|
59604
59622
|
this.feedbackAnchor.remove();
|
|
59605
59623
|
this.tooltip.remove();
|
|
59606
59624
|
delete this.tooltip;
|
|
59607
59625
|
delete this.feedbackAnchor;
|
|
59626
|
+
(_d = (_c = this.map) === null || _c === void 0 ? void 0 : _c.events) === null || _d === void 0 ? void 0 : _d.remove("moveend", this.updateFeedbackLink);
|
|
59608
59627
|
}
|
|
59609
59628
|
};
|
|
59610
59629
|
CopyrightControl.prototype.addRemoveLogo = function (add) {
|
|
@@ -59625,6 +59644,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
59625
59644
|
delete this.logoAnchor;
|
|
59626
59645
|
}
|
|
59627
59646
|
};
|
|
59647
|
+
CopyrightControl.feedbackLink = "https://aka.ms/azuremapsdatafeedback?feedbackep=UrlAzureMapsWebSdk";
|
|
59628
59648
|
return CopyrightControl;
|
|
59629
59649
|
}(ControlBase));
|
|
59630
59650
|
|
|
@@ -63459,10 +63479,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
63459
63479
|
*/
|
|
63460
63480
|
_this["enable-accessibility"] = _this.enableAccessibility;
|
|
63461
63481
|
/**
|
|
63462
|
-
* Enable fallback to geocoder for
|
|
63482
|
+
* Enable the fallback to the REST API geocoder for detecting location accessibility if extracting location from vector data fails.
|
|
63483
|
+
* Disabling this option will prevent the generation of geocode API requests but may lead to a lack of location information for screen readers.
|
|
63463
63484
|
* default: true
|
|
63464
63485
|
* @default true
|
|
63465
|
-
* @internal
|
|
63466
63486
|
*/
|
|
63467
63487
|
_this.enableAccessibilityLocationFallback = true;
|
|
63468
63488
|
/**
|
package/dist/atlas-core.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
|
|
@@ -59514,10 +59522,18 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
59514
59522
|
.filter(function (message) { return message; })
|
|
59515
59523
|
.join("");
|
|
59516
59524
|
};
|
|
59525
|
+
// Append latitude, longitude and zoom level to feedback link.
|
|
59526
|
+
_this.updateFeedbackLink = function () {
|
|
59527
|
+
if (_this.feedbackAnchor && _this.map) {
|
|
59528
|
+
var _a = _this.map.getCamera(), center = _a.center, zoom = _a.zoom;
|
|
59529
|
+
_this.feedbackAnchor.href = CopyrightControl.feedbackLink + "&cp=" + center[1] + "~" + center[0] + "&lvl=" + (zoom + 1);
|
|
59530
|
+
}
|
|
59531
|
+
};
|
|
59517
59532
|
_this.options = new CopyrightControlOptions().merge(options);
|
|
59518
59533
|
return _this;
|
|
59519
59534
|
}
|
|
59520
59535
|
CopyrightControl.prototype.onAdd = function (map) {
|
|
59536
|
+
this.map = map;
|
|
59521
59537
|
this.container = this.buildContainer(map, exports.ControlStyle.auto);
|
|
59522
59538
|
this.container.className = "map-copyright";
|
|
59523
59539
|
this.copyrightDiv = this.buildCopyrightDiv();
|
|
@@ -59584,27 +59600,30 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
59584
59600
|
};
|
|
59585
59601
|
CopyrightControl.prototype.buildFeedbackLink = function () {
|
|
59586
59602
|
var link = document.createElement("a");
|
|
59587
|
-
link.setAttribute("alt", "
|
|
59588
|
-
link.setAttribute("aria-label", "
|
|
59589
|
-
link.href =
|
|
59603
|
+
link.setAttribute("alt", "Provide Map Data Feedback");
|
|
59604
|
+
link.setAttribute("aria-label", "Provide Map Data Feedback");
|
|
59605
|
+
link.href = CopyrightControl.feedbackLink;
|
|
59590
59606
|
link.target = "_blank";
|
|
59591
59607
|
link.rel = "noopener";
|
|
59592
59608
|
link.className = "azure-map-feedback";
|
|
59593
59609
|
return link;
|
|
59594
59610
|
};
|
|
59595
59611
|
CopyrightControl.prototype.addRemoveFeedbackDiv = function (add) {
|
|
59612
|
+
var _a, _b, _c, _d;
|
|
59596
59613
|
if (add) {
|
|
59597
59614
|
this.feedbackAnchor = this.buildFeedbackLink();
|
|
59598
|
-
this.tooltip = buildAccessibleTooltip("
|
|
59615
|
+
this.tooltip = buildAccessibleTooltip("Provide Map Data Feedback");
|
|
59599
59616
|
this.container.appendChild(this.feedbackAnchor);
|
|
59600
59617
|
this.container.appendChild(this.tooltip);
|
|
59601
59618
|
positionTooltip(this.tooltip, this.feedbackAnchor);
|
|
59619
|
+
(_b = (_a = this.map) === null || _a === void 0 ? void 0 : _a.events) === null || _b === void 0 ? void 0 : _b.add("moveend", this.updateFeedbackLink);
|
|
59602
59620
|
}
|
|
59603
59621
|
else {
|
|
59604
59622
|
this.feedbackAnchor.remove();
|
|
59605
59623
|
this.tooltip.remove();
|
|
59606
59624
|
delete this.tooltip;
|
|
59607
59625
|
delete this.feedbackAnchor;
|
|
59626
|
+
(_d = (_c = this.map) === null || _c === void 0 ? void 0 : _c.events) === null || _d === void 0 ? void 0 : _d.remove("moveend", this.updateFeedbackLink);
|
|
59608
59627
|
}
|
|
59609
59628
|
};
|
|
59610
59629
|
CopyrightControl.prototype.addRemoveLogo = function (add) {
|
|
@@ -59625,6 +59644,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
59625
59644
|
delete this.logoAnchor;
|
|
59626
59645
|
}
|
|
59627
59646
|
};
|
|
59647
|
+
CopyrightControl.feedbackLink = "https://aka.ms/azuremapsdatafeedback?feedbackep=UrlAzureMapsWebSdk";
|
|
59628
59648
|
return CopyrightControl;
|
|
59629
59649
|
}(ControlBase));
|
|
59630
59650
|
|
|
@@ -71182,10 +71202,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
71182
71202
|
*/
|
|
71183
71203
|
_this["enable-accessibility"] = _this.enableAccessibility;
|
|
71184
71204
|
/**
|
|
71185
|
-
* Enable fallback to geocoder for
|
|
71205
|
+
* Enable the fallback to the REST API geocoder for detecting location accessibility if extracting location from vector data fails.
|
|
71206
|
+
* Disabling this option will prevent the generation of geocode API requests but may lead to a lack of location information for screen readers.
|
|
71186
71207
|
* default: true
|
|
71187
71208
|
* @default true
|
|
71188
|
-
* @internal
|
|
71189
71209
|
*/
|
|
71190
71210
|
_this.enableAccessibilityLocationFallback = true;
|
|
71191
71211
|
/**
|