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
|
@@ -265,7 +265,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
265
265
|
return Url;
|
|
266
266
|
}());
|
|
267
267
|
|
|
268
|
-
var version = "2.3.
|
|
268
|
+
var version = "2.3.7";
|
|
269
269
|
|
|
270
270
|
/**
|
|
271
271
|
* A helper class that provides methods for getting various forms of the map controls current version.
|
|
@@ -12845,6 +12845,12 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
12845
12845
|
* 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).
|
|
12846
12846
|
*/
|
|
12847
12847
|
_this.fillPattern = undefined;
|
|
12848
|
+
/**
|
|
12849
|
+
* Whether or not the fill should be antialiased.
|
|
12850
|
+
* Default `true`.
|
|
12851
|
+
* @default true
|
|
12852
|
+
*/
|
|
12853
|
+
_this.fillAntialias = true;
|
|
12848
12854
|
return _this;
|
|
12849
12855
|
}
|
|
12850
12856
|
/**
|
|
@@ -12961,6 +12967,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
12961
12967
|
this._updatePaintProperty("fill-color", newOptions.fillColor, this.options.fillColor);
|
|
12962
12968
|
this._updatePaintProperty("fill-opacity", newOptions.fillOpacity, this.options.fillOpacity);
|
|
12963
12969
|
this._updatePaintProperty("fill-pattern", newOptions.fillPattern, this.options.fillPattern);
|
|
12970
|
+
this._updatePaintProperty("fill-antialias", newOptions.fillAntialias, this.options.fillAntialias);
|
|
12964
12971
|
}
|
|
12965
12972
|
this.options = newOptions;
|
|
12966
12973
|
};
|
|
@@ -12978,7 +12985,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
12978
12985
|
visibility: this.options.visible ? "visible" : "none"
|
|
12979
12986
|
},
|
|
12980
12987
|
paint: {
|
|
12981
|
-
"fill-opacity": this.options.fillOpacity
|
|
12988
|
+
"fill-opacity": this.options.fillOpacity,
|
|
12989
|
+
"fill-antialias": this.options.fillAntialias,
|
|
12982
12990
|
},
|
|
12983
12991
|
minzoom: this.options.minZoom,
|
|
12984
12992
|
maxzoom: this.options.maxZoom
|
|
@@ -16320,10 +16328,18 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
16320
16328
|
.filter(function (message) { return message; })
|
|
16321
16329
|
.join("");
|
|
16322
16330
|
};
|
|
16331
|
+
// Append latitude, longitude and zoom level to feedback link.
|
|
16332
|
+
_this.updateFeedbackLink = function () {
|
|
16333
|
+
if (_this.feedbackAnchor && _this.map) {
|
|
16334
|
+
var _a = _this.map.getCamera(), center = _a.center, zoom = _a.zoom;
|
|
16335
|
+
_this.feedbackAnchor.href = CopyrightControl.feedbackLink + "&cp=" + center[1] + "~" + center[0] + "&lvl=" + (zoom + 1);
|
|
16336
|
+
}
|
|
16337
|
+
};
|
|
16323
16338
|
_this.options = new CopyrightControlOptions().merge(options);
|
|
16324
16339
|
return _this;
|
|
16325
16340
|
}
|
|
16326
16341
|
CopyrightControl.prototype.onAdd = function (map) {
|
|
16342
|
+
this.map = map;
|
|
16327
16343
|
this.container = this.buildContainer(map, exports.ControlStyle.auto);
|
|
16328
16344
|
this.container.className = "map-copyright";
|
|
16329
16345
|
this.copyrightDiv = this.buildCopyrightDiv();
|
|
@@ -16390,27 +16406,30 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
16390
16406
|
};
|
|
16391
16407
|
CopyrightControl.prototype.buildFeedbackLink = function () {
|
|
16392
16408
|
var link = document.createElement("a");
|
|
16393
|
-
link.setAttribute("alt", "
|
|
16394
|
-
link.setAttribute("aria-label", "
|
|
16395
|
-
link.href =
|
|
16409
|
+
link.setAttribute("alt", "Provide Map Data Feedback");
|
|
16410
|
+
link.setAttribute("aria-label", "Provide Map Data Feedback");
|
|
16411
|
+
link.href = CopyrightControl.feedbackLink;
|
|
16396
16412
|
link.target = "_blank";
|
|
16397
16413
|
link.rel = "noopener";
|
|
16398
16414
|
link.className = "azure-map-feedback";
|
|
16399
16415
|
return link;
|
|
16400
16416
|
};
|
|
16401
16417
|
CopyrightControl.prototype.addRemoveFeedbackDiv = function (add) {
|
|
16418
|
+
var _a, _b, _c, _d;
|
|
16402
16419
|
if (add) {
|
|
16403
16420
|
this.feedbackAnchor = this.buildFeedbackLink();
|
|
16404
|
-
this.tooltip = buildAccessibleTooltip("
|
|
16421
|
+
this.tooltip = buildAccessibleTooltip("Provide Map Data Feedback");
|
|
16405
16422
|
this.container.appendChild(this.feedbackAnchor);
|
|
16406
16423
|
this.container.appendChild(this.tooltip);
|
|
16407
16424
|
positionTooltip(this.tooltip, this.feedbackAnchor);
|
|
16425
|
+
(_b = (_a = this.map) === null || _a === void 0 ? void 0 : _a.events) === null || _b === void 0 ? void 0 : _b.add("moveend", this.updateFeedbackLink);
|
|
16408
16426
|
}
|
|
16409
16427
|
else {
|
|
16410
16428
|
this.feedbackAnchor.remove();
|
|
16411
16429
|
this.tooltip.remove();
|
|
16412
16430
|
delete this.tooltip;
|
|
16413
16431
|
delete this.feedbackAnchor;
|
|
16432
|
+
(_d = (_c = this.map) === null || _c === void 0 ? void 0 : _c.events) === null || _d === void 0 ? void 0 : _d.remove("moveend", this.updateFeedbackLink);
|
|
16414
16433
|
}
|
|
16415
16434
|
};
|
|
16416
16435
|
CopyrightControl.prototype.addRemoveLogo = function (add) {
|
|
@@ -16431,6 +16450,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
16431
16450
|
delete this.logoAnchor;
|
|
16432
16451
|
}
|
|
16433
16452
|
};
|
|
16453
|
+
CopyrightControl.feedbackLink = "https://aka.ms/azuremapsdatafeedback?feedbackep=UrlAzureMapsWebSdk";
|
|
16434
16454
|
return CopyrightControl;
|
|
16435
16455
|
}(ControlBase));
|
|
16436
16456
|
|
|
@@ -20265,10 +20285,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
20265
20285
|
*/
|
|
20266
20286
|
_this["enable-accessibility"] = _this.enableAccessibility;
|
|
20267
20287
|
/**
|
|
20268
|
-
* Enable fallback to geocoder for
|
|
20288
|
+
* Enable the fallback to the REST API geocoder for detecting location accessibility if extracting location from vector data fails.
|
|
20289
|
+
* Disabling this option will prevent the generation of geocode API requests but may lead to a lack of location information for screen readers.
|
|
20269
20290
|
* default: true
|
|
20270
20291
|
* @default true
|
|
20271
|
-
* @internal
|
|
20272
20292
|
*/
|
|
20273
20293
|
_this.enableAccessibilityLocationFallback = true;
|
|
20274
20294
|
/**
|
package/dist/atlas-core-bare.js
CHANGED
|
@@ -265,7 +265,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
265
265
|
return Url;
|
|
266
266
|
}());
|
|
267
267
|
|
|
268
|
-
var version = "2.3.
|
|
268
|
+
var version = "2.3.7";
|
|
269
269
|
|
|
270
270
|
/**
|
|
271
271
|
* A helper class that provides methods for getting various forms of the map controls current version.
|
|
@@ -12845,6 +12845,12 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
12845
12845
|
* 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).
|
|
12846
12846
|
*/
|
|
12847
12847
|
_this.fillPattern = undefined;
|
|
12848
|
+
/**
|
|
12849
|
+
* Whether or not the fill should be antialiased.
|
|
12850
|
+
* Default `true`.
|
|
12851
|
+
* @default true
|
|
12852
|
+
*/
|
|
12853
|
+
_this.fillAntialias = true;
|
|
12848
12854
|
return _this;
|
|
12849
12855
|
}
|
|
12850
12856
|
/**
|
|
@@ -12961,6 +12967,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
12961
12967
|
this._updatePaintProperty("fill-color", newOptions.fillColor, this.options.fillColor);
|
|
12962
12968
|
this._updatePaintProperty("fill-opacity", newOptions.fillOpacity, this.options.fillOpacity);
|
|
12963
12969
|
this._updatePaintProperty("fill-pattern", newOptions.fillPattern, this.options.fillPattern);
|
|
12970
|
+
this._updatePaintProperty("fill-antialias", newOptions.fillAntialias, this.options.fillAntialias);
|
|
12964
12971
|
}
|
|
12965
12972
|
this.options = newOptions;
|
|
12966
12973
|
};
|
|
@@ -12978,7 +12985,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
12978
12985
|
visibility: this.options.visible ? "visible" : "none"
|
|
12979
12986
|
},
|
|
12980
12987
|
paint: {
|
|
12981
|
-
"fill-opacity": this.options.fillOpacity
|
|
12988
|
+
"fill-opacity": this.options.fillOpacity,
|
|
12989
|
+
"fill-antialias": this.options.fillAntialias,
|
|
12982
12990
|
},
|
|
12983
12991
|
minzoom: this.options.minZoom,
|
|
12984
12992
|
maxzoom: this.options.maxZoom
|
|
@@ -16320,10 +16328,18 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
16320
16328
|
.filter(function (message) { return message; })
|
|
16321
16329
|
.join("");
|
|
16322
16330
|
};
|
|
16331
|
+
// Append latitude, longitude and zoom level to feedback link.
|
|
16332
|
+
_this.updateFeedbackLink = function () {
|
|
16333
|
+
if (_this.feedbackAnchor && _this.map) {
|
|
16334
|
+
var _a = _this.map.getCamera(), center = _a.center, zoom = _a.zoom;
|
|
16335
|
+
_this.feedbackAnchor.href = CopyrightControl.feedbackLink + "&cp=" + center[1] + "~" + center[0] + "&lvl=" + (zoom + 1);
|
|
16336
|
+
}
|
|
16337
|
+
};
|
|
16323
16338
|
_this.options = new CopyrightControlOptions().merge(options);
|
|
16324
16339
|
return _this;
|
|
16325
16340
|
}
|
|
16326
16341
|
CopyrightControl.prototype.onAdd = function (map) {
|
|
16342
|
+
this.map = map;
|
|
16327
16343
|
this.container = this.buildContainer(map, exports.ControlStyle.auto);
|
|
16328
16344
|
this.container.className = "map-copyright";
|
|
16329
16345
|
this.copyrightDiv = this.buildCopyrightDiv();
|
|
@@ -16390,27 +16406,30 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
16390
16406
|
};
|
|
16391
16407
|
CopyrightControl.prototype.buildFeedbackLink = function () {
|
|
16392
16408
|
var link = document.createElement("a");
|
|
16393
|
-
link.setAttribute("alt", "
|
|
16394
|
-
link.setAttribute("aria-label", "
|
|
16395
|
-
link.href =
|
|
16409
|
+
link.setAttribute("alt", "Provide Map Data Feedback");
|
|
16410
|
+
link.setAttribute("aria-label", "Provide Map Data Feedback");
|
|
16411
|
+
link.href = CopyrightControl.feedbackLink;
|
|
16396
16412
|
link.target = "_blank";
|
|
16397
16413
|
link.rel = "noopener";
|
|
16398
16414
|
link.className = "azure-map-feedback";
|
|
16399
16415
|
return link;
|
|
16400
16416
|
};
|
|
16401
16417
|
CopyrightControl.prototype.addRemoveFeedbackDiv = function (add) {
|
|
16418
|
+
var _a, _b, _c, _d;
|
|
16402
16419
|
if (add) {
|
|
16403
16420
|
this.feedbackAnchor = this.buildFeedbackLink();
|
|
16404
|
-
this.tooltip = buildAccessibleTooltip("
|
|
16421
|
+
this.tooltip = buildAccessibleTooltip("Provide Map Data Feedback");
|
|
16405
16422
|
this.container.appendChild(this.feedbackAnchor);
|
|
16406
16423
|
this.container.appendChild(this.tooltip);
|
|
16407
16424
|
positionTooltip(this.tooltip, this.feedbackAnchor);
|
|
16425
|
+
(_b = (_a = this.map) === null || _a === void 0 ? void 0 : _a.events) === null || _b === void 0 ? void 0 : _b.add("moveend", this.updateFeedbackLink);
|
|
16408
16426
|
}
|
|
16409
16427
|
else {
|
|
16410
16428
|
this.feedbackAnchor.remove();
|
|
16411
16429
|
this.tooltip.remove();
|
|
16412
16430
|
delete this.tooltip;
|
|
16413
16431
|
delete this.feedbackAnchor;
|
|
16432
|
+
(_d = (_c = this.map) === null || _c === void 0 ? void 0 : _c.events) === null || _d === void 0 ? void 0 : _d.remove("moveend", this.updateFeedbackLink);
|
|
16414
16433
|
}
|
|
16415
16434
|
};
|
|
16416
16435
|
CopyrightControl.prototype.addRemoveLogo = function (add) {
|
|
@@ -16431,6 +16450,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
16431
16450
|
delete this.logoAnchor;
|
|
16432
16451
|
}
|
|
16433
16452
|
};
|
|
16453
|
+
CopyrightControl.feedbackLink = "https://aka.ms/azuremapsdatafeedback?feedbackep=UrlAzureMapsWebSdk";
|
|
16434
16454
|
return CopyrightControl;
|
|
16435
16455
|
}(ControlBase));
|
|
16436
16456
|
|
|
@@ -27988,10 +28008,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
27988
28008
|
*/
|
|
27989
28009
|
_this["enable-accessibility"] = _this.enableAccessibility;
|
|
27990
28010
|
/**
|
|
27991
|
-
* Enable fallback to geocoder for
|
|
28011
|
+
* Enable the fallback to the REST API geocoder for detecting location accessibility if extracting location from vector data fails.
|
|
28012
|
+
* Disabling this option will prevent the generation of geocode API requests but may lead to a lack of location information for screen readers.
|
|
27992
28013
|
* default: true
|
|
27993
28014
|
* @default true
|
|
27994
|
-
* @internal
|
|
27995
28015
|
*/
|
|
27996
28016
|
_this.enableAccessibilityLocationFallback = true;
|
|
27997
28017
|
/**
|