azure-maps-control 3.3.0 → 3.4.0
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 +32 -8
- package/dist/atlas-core-bare.js +33 -9
- package/dist/atlas-core-bare.min.js +1 -1
- package/dist/atlas-core-snr.js +32 -8
- package/dist/atlas-core.js +33 -9
- package/dist/atlas-core.min.js +3 -3
- package/dist/atlas-esm.js +3335 -5975
- package/dist/atlas-esm.min.js +3 -3
- package/dist/atlas.css +5 -1
- package/dist/atlas.js +3334 -5974
- package/dist/atlas.min.css +1 -1
- package/dist/atlas.min.js +2 -2
- package/package.json +4 -3
- package/thirdpartynotices.txt +0 -0
- package/typings/index.d.ts +12 -0
|
@@ -886,7 +886,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
886
886
|
return UserAgent;
|
|
887
887
|
}());
|
|
888
888
|
|
|
889
|
-
var version = "3.
|
|
889
|
+
var version = "3.4.0";
|
|
890
890
|
|
|
891
891
|
/**
|
|
892
892
|
* A helper class that provides methods for getting various forms of the map controls current version.
|
|
@@ -1608,6 +1608,21 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
1608
1608
|
function clearPrewarmedResources() {
|
|
1609
1609
|
maplibregl.clearPrewarmedResources();
|
|
1610
1610
|
}
|
|
1611
|
+
/**
|
|
1612
|
+
* Adds a custom load resource function that will be called when using a URL that starts with a custom url schema.
|
|
1613
|
+
* @param customProtocol - the protocol to hook, for example 'custom'
|
|
1614
|
+
* @param loadFn - the function to use when trying to fetch a tile specified by the customProtocol
|
|
1615
|
+
*/
|
|
1616
|
+
function addProtocol(customProtocol, loadFn) {
|
|
1617
|
+
maplibregl.addProtocol(customProtocol, loadFn);
|
|
1618
|
+
}
|
|
1619
|
+
/**
|
|
1620
|
+
* Removes a previously added protocol in the main thread.
|
|
1621
|
+
* @param customProtocol - the custom protocol to remove registration for
|
|
1622
|
+
*/
|
|
1623
|
+
function removeProtocol(customProtocol) {
|
|
1624
|
+
maplibregl.removeProtocol(customProtocol);
|
|
1625
|
+
}
|
|
1611
1626
|
/**
|
|
1612
1627
|
* Returns if authentication options are set.
|
|
1613
1628
|
* @internal
|
|
@@ -22863,7 +22878,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
22863
22878
|
/**
|
|
22864
22879
|
* The callback used when styleOptions.autoResize is true.
|
|
22865
22880
|
*/
|
|
22866
|
-
_this.
|
|
22881
|
+
_this._resizeCallback = function () { return _this.resize(); };
|
|
22867
22882
|
// Update global defaults based on which options were specified to this constructor.
|
|
22868
22883
|
_this._updateGlobalDefaults(options);
|
|
22869
22884
|
_this.serviceOptions = new ServiceOptions().merge(options);
|
|
@@ -23146,8 +23161,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23146
23161
|
if ('maxPitch' in options) {
|
|
23147
23162
|
this.map.setMaxPitch(options.maxPitch);
|
|
23148
23163
|
}
|
|
23149
|
-
|
|
23150
|
-
|
|
23164
|
+
if ('minZoom' in options) {
|
|
23165
|
+
this.map.setMinZoom(options.minZoom);
|
|
23166
|
+
}
|
|
23151
23167
|
maxBounds = this._generateSafeBounds(cameraBoundsOptions.maxBounds);
|
|
23152
23168
|
}
|
|
23153
23169
|
else {
|
|
@@ -23847,13 +23863,14 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23847
23863
|
* Clean up the map's resources. Map will not function correctly after calling this method.
|
|
23848
23864
|
*/
|
|
23849
23865
|
Map.prototype.dispose = function () {
|
|
23850
|
-
var _a;
|
|
23866
|
+
var _a, _b;
|
|
23851
23867
|
this.clear();
|
|
23852
23868
|
this.map.remove();
|
|
23853
23869
|
(_a = this.authentication) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
23854
23870
|
this.removed = true;
|
|
23855
23871
|
// Remove event listeners
|
|
23856
|
-
|
|
23872
|
+
(_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
|
|
23873
|
+
this.resizeObserver = null;
|
|
23857
23874
|
while (this.getMapContainer().firstChild) {
|
|
23858
23875
|
var currChild = this.getMapContainer().firstChild;
|
|
23859
23876
|
this.getMapContainer().removeChild(currChild);
|
|
@@ -24082,10 +24099,15 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24082
24099
|
*/
|
|
24083
24100
|
Map.prototype._setAutoResize = function (autoResize) {
|
|
24084
24101
|
if (autoResize) {
|
|
24085
|
-
|
|
24102
|
+
if (!this.resizeObserver) {
|
|
24103
|
+
this.resizeObserver = new ResizeObserver(this._resizeCallback);
|
|
24104
|
+
}
|
|
24105
|
+
this.resizeObserver.observe(this.map.getContainer());
|
|
24086
24106
|
}
|
|
24087
24107
|
else {
|
|
24088
|
-
|
|
24108
|
+
if (this.resizeObserver) {
|
|
24109
|
+
this.resizeObserver.unobserve(this.map.getContainer());
|
|
24110
|
+
}
|
|
24089
24111
|
}
|
|
24090
24112
|
};
|
|
24091
24113
|
/**
|
|
@@ -24810,6 +24832,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24810
24832
|
exports._hasSetView = _hasSetView;
|
|
24811
24833
|
exports._hasWorkerCount = _hasWorkerCount;
|
|
24812
24834
|
exports.addImageTemplate = addImageTemplate;
|
|
24835
|
+
exports.addProtocol = addProtocol;
|
|
24813
24836
|
exports.clearPrewarmedResources = clearPrewarmedResources;
|
|
24814
24837
|
exports.control = index$2;
|
|
24815
24838
|
exports.data = index$4;
|
|
@@ -24834,6 +24857,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24834
24857
|
exports.layer = index;
|
|
24835
24858
|
exports.math = index$3;
|
|
24836
24859
|
exports.prewarm = prewarm;
|
|
24860
|
+
exports.removeProtocol = removeProtocol;
|
|
24837
24861
|
exports.setAuthenticationOptions = setAuthenticationOptions;
|
|
24838
24862
|
exports.setDomain = setDomain;
|
|
24839
24863
|
exports.setLanguage = setLanguage;
|
package/dist/atlas-core-bare.js
CHANGED
|
@@ -886,7 +886,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
886
886
|
return UserAgent;
|
|
887
887
|
}());
|
|
888
888
|
|
|
889
|
-
var version$2 = "3.
|
|
889
|
+
var version$2 = "3.4.0";
|
|
890
890
|
|
|
891
891
|
/**
|
|
892
892
|
* A helper class that provides methods for getting various forms of the map controls current version.
|
|
@@ -1608,6 +1608,21 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
1608
1608
|
function clearPrewarmedResources() {
|
|
1609
1609
|
maplibregl.clearPrewarmedResources();
|
|
1610
1610
|
}
|
|
1611
|
+
/**
|
|
1612
|
+
* Adds a custom load resource function that will be called when using a URL that starts with a custom url schema.
|
|
1613
|
+
* @param customProtocol - the protocol to hook, for example 'custom'
|
|
1614
|
+
* @param loadFn - the function to use when trying to fetch a tile specified by the customProtocol
|
|
1615
|
+
*/
|
|
1616
|
+
function addProtocol(customProtocol, loadFn) {
|
|
1617
|
+
maplibregl.addProtocol(customProtocol, loadFn);
|
|
1618
|
+
}
|
|
1619
|
+
/**
|
|
1620
|
+
* Removes a previously added protocol in the main thread.
|
|
1621
|
+
* @param customProtocol - the custom protocol to remove registration for
|
|
1622
|
+
*/
|
|
1623
|
+
function removeProtocol(customProtocol) {
|
|
1624
|
+
maplibregl.removeProtocol(customProtocol);
|
|
1625
|
+
}
|
|
1611
1626
|
/**
|
|
1612
1627
|
* Returns if authentication options are set.
|
|
1613
1628
|
* @internal
|
|
@@ -23307,7 +23322,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23307
23322
|
this.loadAttributionOnceSourcesLoaded = function () {
|
|
23308
23323
|
var sources = _this.getMapStyleVisibleSources();
|
|
23309
23324
|
Promise.all(sources.map(function (source) { return new Promise(function (resolve, reject) {
|
|
23310
|
-
if ('tiles' in source) {
|
|
23325
|
+
if ('tiles' in source || (source === null || source === void 0 ? void 0 : source.type) === 'geojson') {
|
|
23311
23326
|
resolve(source);
|
|
23312
23327
|
// TileJSON source may yet be unresolved
|
|
23313
23328
|
}
|
|
@@ -46524,7 +46539,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
46524
46539
|
/**
|
|
46525
46540
|
* The callback used when styleOptions.autoResize is true.
|
|
46526
46541
|
*/
|
|
46527
|
-
_this.
|
|
46542
|
+
_this._resizeCallback = function () { return _this.resize(); };
|
|
46528
46543
|
// Update global defaults based on which options were specified to this constructor.
|
|
46529
46544
|
_this._updateGlobalDefaults(options);
|
|
46530
46545
|
_this.serviceOptions = new ServiceOptions().merge(options);
|
|
@@ -46813,8 +46828,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
46813
46828
|
if ('maxPitch' in options) {
|
|
46814
46829
|
this.map.setMaxPitch(options.maxPitch);
|
|
46815
46830
|
}
|
|
46816
|
-
|
|
46817
|
-
|
|
46831
|
+
if ('minZoom' in options) {
|
|
46832
|
+
this.map.setMinZoom(options.minZoom);
|
|
46833
|
+
}
|
|
46818
46834
|
maxBounds = this._generateSafeBounds(cameraBoundsOptions.maxBounds);
|
|
46819
46835
|
}
|
|
46820
46836
|
else {
|
|
@@ -47514,13 +47530,14 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
47514
47530
|
* Clean up the map's resources. Map will not function correctly after calling this method.
|
|
47515
47531
|
*/
|
|
47516
47532
|
Map.prototype.dispose = function () {
|
|
47517
|
-
var _a;
|
|
47533
|
+
var _a, _b;
|
|
47518
47534
|
this.clear();
|
|
47519
47535
|
this.map.remove();
|
|
47520
47536
|
(_a = this.authentication) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
47521
47537
|
this.removed = true;
|
|
47522
47538
|
// Remove event listeners
|
|
47523
|
-
|
|
47539
|
+
(_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
|
|
47540
|
+
this.resizeObserver = null;
|
|
47524
47541
|
while (this.getMapContainer().firstChild) {
|
|
47525
47542
|
var currChild = this.getMapContainer().firstChild;
|
|
47526
47543
|
this.getMapContainer().removeChild(currChild);
|
|
@@ -47749,10 +47766,15 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
47749
47766
|
*/
|
|
47750
47767
|
Map.prototype._setAutoResize = function (autoResize) {
|
|
47751
47768
|
if (autoResize) {
|
|
47752
|
-
|
|
47769
|
+
if (!this.resizeObserver) {
|
|
47770
|
+
this.resizeObserver = new ResizeObserver(this._resizeCallback);
|
|
47771
|
+
}
|
|
47772
|
+
this.resizeObserver.observe(this.map.getContainer());
|
|
47753
47773
|
}
|
|
47754
47774
|
else {
|
|
47755
|
-
|
|
47775
|
+
if (this.resizeObserver) {
|
|
47776
|
+
this.resizeObserver.unobserve(this.map.getContainer());
|
|
47777
|
+
}
|
|
47756
47778
|
}
|
|
47757
47779
|
};
|
|
47758
47780
|
/**
|
|
@@ -48482,6 +48504,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
48482
48504
|
exports._hasSetView = _hasSetView;
|
|
48483
48505
|
exports._hasWorkerCount = _hasWorkerCount;
|
|
48484
48506
|
exports.addImageTemplate = addImageTemplate;
|
|
48507
|
+
exports.addProtocol = addProtocol;
|
|
48485
48508
|
exports.clearPrewarmedResources = clearPrewarmedResources;
|
|
48486
48509
|
exports.control = index$2;
|
|
48487
48510
|
exports.data = index$4;
|
|
@@ -48506,6 +48529,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
48506
48529
|
exports.layer = index;
|
|
48507
48530
|
exports.math = index$3;
|
|
48508
48531
|
exports.prewarm = prewarm;
|
|
48532
|
+
exports.removeProtocol = removeProtocol;
|
|
48509
48533
|
exports.setAuthenticationOptions = setAuthenticationOptions;
|
|
48510
48534
|
exports.setDomain = setDomain;
|
|
48511
48535
|
exports.setLanguage = setLanguage;
|