azure-maps-control 3.2.0 → 3.3.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 +419 -277
- package/dist/atlas-core-bare.js +419 -277
- package/dist/atlas-core-bare.min.js +1 -1
- package/dist/atlas-core-snr.js +842 -534
- package/dist/atlas-core.js +842 -534
- package/dist/atlas-core.min.js +3 -3
- package/dist/atlas-esm.js +842 -534
- package/dist/atlas-esm.min.js +3 -3
- package/dist/atlas.css +45 -6
- package/dist/atlas.js +842 -534
- package/dist/atlas.min.css +1 -1
- package/dist/atlas.min.js +3 -3
- package/package.json +98 -98
- package/thirdpartynotices.txt +0 -0
- package/typings/index.d.ts +485 -475
package/dist/atlas-core-snr.js
CHANGED
|
@@ -91,12 +91,12 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
91
91
|
|
|
92
92
|
var azuremapsMaplibreGlDev = {exports: {}};
|
|
93
93
|
|
|
94
|
-
/* Build timestamp: Mon,
|
|
94
|
+
/* Build timestamp: Mon, 22 Apr 2024 08:56:33 GMT */
|
|
95
95
|
|
|
96
96
|
(function (module, exports) {
|
|
97
97
|
/**
|
|
98
98
|
* The Azure Maps fork of MapLibre GL JS
|
|
99
|
-
* @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v4.
|
|
99
|
+
* @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v4.1.2/LICENSE.txt
|
|
100
100
|
*/
|
|
101
101
|
(function (global, factory) {
|
|
102
102
|
module.exports = factory() ;
|
|
@@ -1281,9 +1281,16 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
1281
1281
|
const body = yield response.blob();
|
|
1282
1282
|
throw new AJAXError(response.status, response.statusText, requestParameters.url, body);
|
|
1283
1283
|
}
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1284
|
+
let parsePromise;
|
|
1285
|
+
if ((requestParameters.type === 'arrayBuffer' || requestParameters.type === 'image')) {
|
|
1286
|
+
parsePromise = response.arrayBuffer();
|
|
1287
|
+
}
|
|
1288
|
+
else if (requestParameters.type === 'json') {
|
|
1289
|
+
parsePromise = response.json();
|
|
1290
|
+
}
|
|
1291
|
+
else {
|
|
1292
|
+
parsePromise = response.text();
|
|
1293
|
+
}
|
|
1287
1294
|
const result = yield parsePromise;
|
|
1288
1295
|
if (abortController.signal.aborted) {
|
|
1289
1296
|
throw createAbortError();
|
|
@@ -1354,7 +1361,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
1354
1361
|
return protocolLoadFn(requestParameters, abortController);
|
|
1355
1362
|
}
|
|
1356
1363
|
if (isWorker(self) && self.worker && self.worker.actor) {
|
|
1357
|
-
return self.worker.actor.sendAsync({ type:
|
|
1364
|
+
return self.worker.actor.sendAsync({ type: "GR" /* MessageType.getResource */, data: requestParameters, targetMapId: GLOBAL_DISPATCHER_ID }, abortController);
|
|
1358
1365
|
}
|
|
1359
1366
|
}
|
|
1360
1367
|
if (!isFileURL(requestParameters.url)) {
|
|
@@ -1362,7 +1369,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
1362
1369
|
return makeFetchRequest(requestParameters, abortController);
|
|
1363
1370
|
}
|
|
1364
1371
|
if (isWorker(self) && self.worker && self.worker.actor) {
|
|
1365
|
-
return self.worker.actor.sendAsync({ type:
|
|
1372
|
+
return self.worker.actor.sendAsync({ type: "GR" /* MessageType.getResource */, data: requestParameters, mustQueue: true, targetMapId: GLOBAL_DISPATCHER_ID }, abortController);
|
|
1366
1373
|
}
|
|
1367
1374
|
}
|
|
1368
1375
|
return makeXMLHttpRequest(requestParameters, abortController);
|
|
@@ -11879,6 +11886,12 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11879
11886
|
this.pluginStatus = state.pluginStatus;
|
|
11880
11887
|
this.pluginURL = state.pluginURL;
|
|
11881
11888
|
}
|
|
11889
|
+
getState() {
|
|
11890
|
+
return {
|
|
11891
|
+
pluginStatus: this.pluginStatus,
|
|
11892
|
+
pluginURL: this.pluginURL
|
|
11893
|
+
};
|
|
11894
|
+
}
|
|
11882
11895
|
setMethods(rtlTextPlugin) {
|
|
11883
11896
|
this.applyArabicShaping = rtlTextPlugin.applyArabicShaping;
|
|
11884
11897
|
this.processBidirectionalText = rtlTextPlugin.processBidirectionalText;
|
|
@@ -15693,6 +15706,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
15693
15706
|
*/
|
|
15694
15707
|
|
|
15695
15708
|
var ortho = orthoNO;
|
|
15709
|
+
/**
|
|
15710
|
+
* Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===)
|
|
15711
|
+
*
|
|
15712
|
+
* @param {ReadonlyMat4} a The first matrix.
|
|
15713
|
+
* @param {ReadonlyMat4} b The second matrix.
|
|
15714
|
+
* @returns {Boolean} True if the matrices are equal, false otherwise.
|
|
15715
|
+
*/
|
|
15716
|
+
|
|
15717
|
+
function exactEquals$5(a, b) {
|
|
15718
|
+
return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3] && a[4] === b[4] && a[5] === b[5] && a[6] === b[6] && a[7] === b[7] && a[8] === b[8] && a[9] === b[9] && a[10] === b[10] && a[11] === b[11] && a[12] === b[12] && a[13] === b[13] && a[14] === b[14] && a[15] === b[15];
|
|
15719
|
+
}
|
|
15696
15720
|
/**
|
|
15697
15721
|
* Returns whether or not the matrices have approximately the same elements in the same position.
|
|
15698
15722
|
*
|
|
@@ -21223,12 +21247,11 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
21223
21247
|
// conversion here.
|
|
21224
21248
|
const resolvedTokens = layer.getValueAndResolveTokens('text-field', evaluationFeature, canonical, availableImages);
|
|
21225
21249
|
const formattedText = Formatted.factory(resolvedTokens);
|
|
21226
|
-
if
|
|
21227
|
-
|
|
21228
|
-
|
|
21229
|
-
if (!this.hasRTLText || // non-rtl text so can proceed safely
|
|
21250
|
+
// on this instance: if hasRTLText is already true, all future calls to containsRTLText can be skipped.
|
|
21251
|
+
const bucketHasRTLText = this.hasRTLText = (this.hasRTLText || containsRTLText(formattedText));
|
|
21252
|
+
if (!bucketHasRTLText || // non-rtl text so can proceed safely
|
|
21230
21253
|
rtlWorkerPlugin.getRTLTextPluginStatus() === 'unavailable' || // We don't intend to lazy-load the rtl text plugin, so proceed with incorrect shaping
|
|
21231
|
-
|
|
21254
|
+
bucketHasRTLText && rtlWorkerPlugin.isParsed() // Use the rtlText plugin to shape text
|
|
21232
21255
|
) {
|
|
21233
21256
|
text = transformText(formattedText, layer, evaluationFeature);
|
|
21234
21257
|
}
|
|
@@ -24868,6 +24891,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24868
24891
|
exports.equals = equals$6;
|
|
24869
24892
|
exports.evaluateSizeForFeature = evaluateSizeForFeature;
|
|
24870
24893
|
exports.evaluateSizeForZoom = evaluateSizeForZoom;
|
|
24894
|
+
exports.exactEquals = exactEquals$5;
|
|
24871
24895
|
exports.extend = extend;
|
|
24872
24896
|
exports.filterObject = filterObject;
|
|
24873
24897
|
exports.findLineIntersection = findLineIntersection;
|
|
@@ -25109,6 +25133,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25109
25133
|
featureIndex.bucketLayerIDs.push(family.map((l) => l.id));
|
|
25110
25134
|
}
|
|
25111
25135
|
}
|
|
25136
|
+
// options.glyphDependencies looks like: {"SomeFontName":{"10":true,"32":true}}
|
|
25137
|
+
// this line makes an object like: {"SomeFontName":[10,32]}
|
|
25112
25138
|
const stacks = performance.mapObject(options.glyphDependencies, (glyphs) => Object.keys(glyphs).map(Number));
|
|
25113
25139
|
this.inFlightDependencies.forEach((request) => request === null || request === void 0 ? void 0 : request.abort());
|
|
25114
25140
|
this.inFlightDependencies = [];
|
|
@@ -25116,21 +25142,21 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25116
25142
|
if (Object.keys(stacks).length) {
|
|
25117
25143
|
const abortController = new AbortController();
|
|
25118
25144
|
this.inFlightDependencies.push(abortController);
|
|
25119
|
-
getGlyphsPromise = actor.sendAsync({ type:
|
|
25145
|
+
getGlyphsPromise = actor.sendAsync({ type: "GG" /* MessageType.getGlyphs */, data: { stacks, source: this.source, tileID: this.tileID, type: 'glyphs' } }, abortController);
|
|
25120
25146
|
}
|
|
25121
25147
|
const icons = Object.keys(options.iconDependencies);
|
|
25122
25148
|
let getIconsPromise = Promise.resolve({});
|
|
25123
25149
|
if (icons.length) {
|
|
25124
25150
|
const abortController = new AbortController();
|
|
25125
25151
|
this.inFlightDependencies.push(abortController);
|
|
25126
|
-
getIconsPromise = actor.sendAsync({ type:
|
|
25152
|
+
getIconsPromise = actor.sendAsync({ type: "GI" /* MessageType.getImages */, data: { icons, source: this.source, tileID: this.tileID, type: 'icons' } }, abortController);
|
|
25127
25153
|
}
|
|
25128
25154
|
const patterns = Object.keys(options.patternDependencies);
|
|
25129
25155
|
let getPatternsPromise = Promise.resolve({});
|
|
25130
25156
|
if (patterns.length) {
|
|
25131
25157
|
const abortController = new AbortController();
|
|
25132
25158
|
this.inFlightDependencies.push(abortController);
|
|
25133
|
-
getPatternsPromise = actor.sendAsync({ type:
|
|
25159
|
+
getPatternsPromise = actor.sendAsync({ type: "GI" /* MessageType.getImages */, data: { icons: patterns, source: this.source, tileID: this.tileID, type: 'patterns' } }, abortController);
|
|
25134
25160
|
}
|
|
25135
25161
|
const [glyphMap, iconMap, patternMap] = yield Promise.all([getGlyphsPromise, getIconsPromise, getPatternsPromise]);
|
|
25136
25162
|
const glyphAtlas = new GlyphAtlas(glyphMap);
|
|
@@ -27180,8 +27206,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
27180
27206
|
* @returns a promise that resolves when the data is loaded and parsed into a GeoJSON object
|
|
27181
27207
|
*/
|
|
27182
27208
|
loadData(params) {
|
|
27183
|
-
var _a;
|
|
27184
27209
|
return performance.__awaiter(this, void 0, void 0, function* () {
|
|
27210
|
+
var _a;
|
|
27185
27211
|
(_a = this._pendingRequest) === null || _a === void 0 ? void 0 : _a.abort();
|
|
27186
27212
|
const perf = (params && params.request && params.request.collectResourceTiming) ?
|
|
27187
27213
|
new performance.RequestPerformance(params.request) : false;
|
|
@@ -27358,37 +27384,37 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
27358
27384
|
}
|
|
27359
27385
|
performance.rtlWorkerPlugin.setMethods(rtlTextPlugin);
|
|
27360
27386
|
};
|
|
27361
|
-
this.actor.registerMessageHandler(
|
|
27387
|
+
this.actor.registerMessageHandler("LDT" /* MessageType.loadDEMTile */, (mapId, params) => {
|
|
27362
27388
|
return this._getDEMWorkerSource(mapId, params.source).loadTile(params);
|
|
27363
27389
|
});
|
|
27364
|
-
this.actor.registerMessageHandler(
|
|
27390
|
+
this.actor.registerMessageHandler("RDT" /* MessageType.removeDEMTile */, (mapId, params) => performance.__awaiter(this, void 0, void 0, function* () {
|
|
27365
27391
|
this._getDEMWorkerSource(mapId, params.source).removeTile(params);
|
|
27366
27392
|
}));
|
|
27367
|
-
this.actor.registerMessageHandler(
|
|
27393
|
+
this.actor.registerMessageHandler("GCEZ" /* MessageType.getClusterExpansionZoom */, (mapId, params) => performance.__awaiter(this, void 0, void 0, function* () {
|
|
27368
27394
|
return this._getWorkerSource(mapId, params.type, params.source).getClusterExpansionZoom(params);
|
|
27369
27395
|
}));
|
|
27370
|
-
this.actor.registerMessageHandler(
|
|
27396
|
+
this.actor.registerMessageHandler("GCC" /* MessageType.getClusterChildren */, (mapId, params) => performance.__awaiter(this, void 0, void 0, function* () {
|
|
27371
27397
|
return this._getWorkerSource(mapId, params.type, params.source).getClusterChildren(params);
|
|
27372
27398
|
}));
|
|
27373
|
-
this.actor.registerMessageHandler(
|
|
27399
|
+
this.actor.registerMessageHandler("GCL" /* MessageType.getClusterLeaves */, (mapId, params) => performance.__awaiter(this, void 0, void 0, function* () {
|
|
27374
27400
|
return this._getWorkerSource(mapId, params.type, params.source).getClusterLeaves(params);
|
|
27375
27401
|
}));
|
|
27376
|
-
this.actor.registerMessageHandler(
|
|
27402
|
+
this.actor.registerMessageHandler("LD" /* MessageType.loadData */, (mapId, params) => {
|
|
27377
27403
|
return this._getWorkerSource(mapId, params.type, params.source).loadData(params);
|
|
27378
27404
|
});
|
|
27379
|
-
this.actor.registerMessageHandler(
|
|
27405
|
+
this.actor.registerMessageHandler("LT" /* MessageType.loadTile */, (mapId, params) => {
|
|
27380
27406
|
return this._getWorkerSource(mapId, params.type, params.source).loadTile(params);
|
|
27381
27407
|
});
|
|
27382
|
-
this.actor.registerMessageHandler(
|
|
27408
|
+
this.actor.registerMessageHandler("RT" /* MessageType.reloadTile */, (mapId, params) => {
|
|
27383
27409
|
return this._getWorkerSource(mapId, params.type, params.source).reloadTile(params);
|
|
27384
27410
|
});
|
|
27385
|
-
this.actor.registerMessageHandler(
|
|
27411
|
+
this.actor.registerMessageHandler("AT" /* MessageType.abortTile */, (mapId, params) => {
|
|
27386
27412
|
return this._getWorkerSource(mapId, params.type, params.source).abortTile(params);
|
|
27387
27413
|
});
|
|
27388
|
-
this.actor.registerMessageHandler(
|
|
27414
|
+
this.actor.registerMessageHandler("RMT" /* MessageType.removeTile */, (mapId, params) => {
|
|
27389
27415
|
return this._getWorkerSource(mapId, params.type, params.source).removeTile(params);
|
|
27390
27416
|
});
|
|
27391
|
-
this.actor.registerMessageHandler(
|
|
27417
|
+
this.actor.registerMessageHandler("RS" /* MessageType.removeSource */, (mapId, params) => performance.__awaiter(this, void 0, void 0, function* () {
|
|
27392
27418
|
if (!this.workerSources[mapId] ||
|
|
27393
27419
|
!this.workerSources[mapId][params.type] ||
|
|
27394
27420
|
!this.workerSources[mapId][params.type][params.source]) {
|
|
@@ -27400,22 +27426,28 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
27400
27426
|
worker.removeSource(params);
|
|
27401
27427
|
}
|
|
27402
27428
|
}));
|
|
27403
|
-
this.actor.registerMessageHandler(
|
|
27429
|
+
this.actor.registerMessageHandler("RM" /* MessageType.removeMap */, (mapId) => performance.__awaiter(this, void 0, void 0, function* () {
|
|
27430
|
+
delete this.layerIndexes[mapId];
|
|
27431
|
+
delete this.availableImages[mapId];
|
|
27432
|
+
delete this.workerSources[mapId];
|
|
27433
|
+
delete this.demWorkerSources[mapId];
|
|
27434
|
+
}));
|
|
27435
|
+
this.actor.registerMessageHandler("SR" /* MessageType.setReferrer */, (_mapId, params) => performance.__awaiter(this, void 0, void 0, function* () {
|
|
27404
27436
|
this.referrer = params;
|
|
27405
27437
|
}));
|
|
27406
|
-
this.actor.registerMessageHandler(
|
|
27438
|
+
this.actor.registerMessageHandler("SRPS" /* MessageType.syncRTLPluginState */, (mapId, params) => {
|
|
27407
27439
|
return this._syncRTLPluginState(mapId, params);
|
|
27408
27440
|
});
|
|
27409
|
-
this.actor.registerMessageHandler(
|
|
27441
|
+
this.actor.registerMessageHandler("IS" /* MessageType.importScript */, (_mapId, params) => performance.__awaiter(this, void 0, void 0, function* () {
|
|
27410
27442
|
this.self.importScripts(params);
|
|
27411
27443
|
}));
|
|
27412
|
-
this.actor.registerMessageHandler(
|
|
27444
|
+
this.actor.registerMessageHandler("SI" /* MessageType.setImages */, (mapId, params) => {
|
|
27413
27445
|
return this._setImages(mapId, params);
|
|
27414
27446
|
});
|
|
27415
|
-
this.actor.registerMessageHandler(
|
|
27447
|
+
this.actor.registerMessageHandler("UL" /* MessageType.updateLayers */, (mapId, params) => performance.__awaiter(this, void 0, void 0, function* () {
|
|
27416
27448
|
this._getLayerIndex(mapId).update(params.layers, params.removedIds);
|
|
27417
27449
|
}));
|
|
27418
|
-
this.actor.registerMessageHandler(
|
|
27450
|
+
this.actor.registerMessageHandler("SL" /* MessageType.setLayers */, (mapId, params) => performance.__awaiter(this, void 0, void 0, function* () {
|
|
27419
27451
|
this._getLayerIndex(mapId).replace(params);
|
|
27420
27452
|
}));
|
|
27421
27453
|
}
|
|
@@ -27430,19 +27462,34 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
27430
27462
|
}
|
|
27431
27463
|
});
|
|
27432
27464
|
}
|
|
27433
|
-
_syncRTLPluginState(
|
|
27465
|
+
_syncRTLPluginState(mapId, incomingState) {
|
|
27434
27466
|
return performance.__awaiter(this, void 0, void 0, function* () {
|
|
27435
|
-
|
|
27436
|
-
|
|
27437
|
-
|
|
27438
|
-
|
|
27439
|
-
|
|
27440
|
-
|
|
27441
|
-
|
|
27442
|
-
|
|
27443
|
-
|
|
27467
|
+
// Parsed plugin cannot be changed, so just return its current state.
|
|
27468
|
+
if (performance.rtlWorkerPlugin.isParsed()) {
|
|
27469
|
+
return performance.rtlWorkerPlugin.getState();
|
|
27470
|
+
}
|
|
27471
|
+
if (incomingState.pluginStatus !== 'loading') {
|
|
27472
|
+
// simply sync and done
|
|
27473
|
+
performance.rtlWorkerPlugin.setState(incomingState);
|
|
27474
|
+
return incomingState;
|
|
27475
|
+
}
|
|
27476
|
+
const urlToLoad = incomingState.pluginURL;
|
|
27477
|
+
this.self.importScripts(urlToLoad);
|
|
27478
|
+
const complete = performance.rtlWorkerPlugin.isParsed();
|
|
27479
|
+
if (complete) {
|
|
27480
|
+
const loadedState = {
|
|
27481
|
+
pluginStatus: 'loaded',
|
|
27482
|
+
pluginURL: urlToLoad
|
|
27483
|
+
};
|
|
27484
|
+
performance.rtlWorkerPlugin.setState(loadedState);
|
|
27485
|
+
return loadedState;
|
|
27444
27486
|
}
|
|
27445
|
-
|
|
27487
|
+
// error case
|
|
27488
|
+
performance.rtlWorkerPlugin.setState({
|
|
27489
|
+
pluginStatus: 'error',
|
|
27490
|
+
pluginURL: ''
|
|
27491
|
+
});
|
|
27492
|
+
throw new Error(`RTL Text Plugin failed to import scripts from ${urlToLoad}`);
|
|
27446
27493
|
});
|
|
27447
27494
|
}
|
|
27448
27495
|
_getAvailableImages(mapId) {
|
|
@@ -27520,11 +27567,15 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
27520
27567
|
define('index', ['exports', './shared'], (function (exports, performance$1) {
|
|
27521
27568
|
var name = "azuremaps-maplibre-gl";
|
|
27522
27569
|
var description = "BSD licensed community fork of mapbox-gl, a WebGL interactive maps library";
|
|
27523
|
-
var version$2 = "4.
|
|
27570
|
+
var version$2 = "4.1.2";
|
|
27524
27571
|
var main = "dist/azuremaps-maplibre-gl.js";
|
|
27525
27572
|
var style = "dist/azuremaps-maplibre-gl.css";
|
|
27526
27573
|
var license = "BSD-3-Clause";
|
|
27574
|
+
var homepage = "https://maplibre.org/";
|
|
27527
27575
|
var funding = "https://github.com/maplibre/maplibre-gl-js?sponsor=1";
|
|
27576
|
+
var bugs = {
|
|
27577
|
+
url: "https://github.com/maplibre/maplibre-gl-js/issues/"
|
|
27578
|
+
};
|
|
27528
27579
|
var repository = {
|
|
27529
27580
|
type: "git",
|
|
27530
27581
|
url: "https://dev.azure.com/msazure/One/_git/Azure-IoT-Maps-maplibre-gl-js"
|
|
@@ -27574,7 +27625,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
27574
27625
|
"@types/d3": "^7.4.3",
|
|
27575
27626
|
"@types/diff": "^5.0.9",
|
|
27576
27627
|
"@types/earcut": "^2.1.4",
|
|
27577
|
-
"@types/eslint": "^8.56.
|
|
27628
|
+
"@types/eslint": "^8.56.7",
|
|
27578
27629
|
"@types/gl": "^6.0.5",
|
|
27579
27630
|
"@types/glob": "^8.1.0",
|
|
27580
27631
|
"@types/jest": "^29.5.12",
|
|
@@ -27582,74 +27633,74 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
27582
27633
|
"@types/minimist": "^1.2.5",
|
|
27583
27634
|
"@types/murmurhash-js": "^1.0.6",
|
|
27584
27635
|
"@types/nise": "^1.4.4",
|
|
27585
|
-
"@types/node": "^20.
|
|
27636
|
+
"@types/node": "^20.12.6",
|
|
27586
27637
|
"@types/offscreencanvas": "^2019.7.3",
|
|
27587
27638
|
"@types/pixelmatch": "^5.2.6",
|
|
27588
27639
|
"@types/pngjs": "^6.0.4",
|
|
27589
|
-
"@types/react": "^18.2.
|
|
27590
|
-
"@types/react-dom": "^18.2.
|
|
27640
|
+
"@types/react": "^18.2.75",
|
|
27641
|
+
"@types/react-dom": "^18.2.24",
|
|
27591
27642
|
"@types/request": "^2.48.12",
|
|
27592
27643
|
"@types/shuffle-seed": "^1.1.3",
|
|
27593
27644
|
"@types/window-or-global": "^1.0.6",
|
|
27594
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
27595
|
-
"@typescript-eslint/parser": "^6.
|
|
27596
|
-
address: "^2.0.
|
|
27645
|
+
"@typescript-eslint/eslint-plugin": "^7.6.0",
|
|
27646
|
+
"@typescript-eslint/parser": "^7.6.0",
|
|
27647
|
+
address: "^2.0.2",
|
|
27597
27648
|
benchmark: "^2.1.4",
|
|
27598
27649
|
canvas: "^2.11.2",
|
|
27599
|
-
cssnano: "^6.
|
|
27600
|
-
d3: "^7.
|
|
27650
|
+
cssnano: "^6.1.2",
|
|
27651
|
+
d3: "^7.9.0",
|
|
27601
27652
|
"d3-queue": "^3.0.7",
|
|
27602
|
-
"devtools-protocol": "^0.0.
|
|
27653
|
+
"devtools-protocol": "^0.0.1284279",
|
|
27603
27654
|
diff: "^5.2.0",
|
|
27604
27655
|
"dts-bundle-generator": "^9.3.1",
|
|
27605
|
-
eslint: "^8.
|
|
27656
|
+
eslint: "^8.57.0",
|
|
27606
27657
|
"eslint-config-mourner": "^3.0.0",
|
|
27607
27658
|
"eslint-plugin-html": "^8.0.0",
|
|
27608
27659
|
"eslint-plugin-import": "^2.29.1",
|
|
27609
|
-
"eslint-plugin-jest": "^
|
|
27610
|
-
"eslint-plugin-react": "^7.
|
|
27660
|
+
"eslint-plugin-jest": "^28.2.0",
|
|
27661
|
+
"eslint-plugin-react": "^7.34.1",
|
|
27611
27662
|
"eslint-plugin-tsdoc": "0.2.17",
|
|
27612
27663
|
expect: "^29.7.0",
|
|
27613
|
-
glob: "^10.3.
|
|
27664
|
+
glob: "^10.3.12",
|
|
27614
27665
|
"is-builtin-module": "^3.2.1",
|
|
27615
27666
|
jest: "^29.7.0",
|
|
27616
27667
|
"jest-environment-jsdom": "^29.7.0",
|
|
27617
|
-
"jest-monocart-coverage": "^1.0
|
|
27668
|
+
"jest-monocart-coverage": "^1.1.0",
|
|
27618
27669
|
"jest-webgl-canvas-mock": "^2.5.3",
|
|
27619
27670
|
jsdom: "^24.0.0",
|
|
27620
27671
|
"json-stringify-pretty-compact": "^4.0.0",
|
|
27621
27672
|
minimist: "^1.2.8",
|
|
27622
27673
|
"mock-geolocation": "^1.0.11",
|
|
27623
|
-
"monocart-coverage-reports": "^2.
|
|
27674
|
+
"monocart-coverage-reports": "^2.7.8",
|
|
27624
27675
|
nise: "^5.1.9",
|
|
27625
27676
|
"npm-font-open-sans": "^1.1.0",
|
|
27626
27677
|
"npm-run-all": "^4.1.5",
|
|
27627
27678
|
"pdf-merger-js": "^5.1.1",
|
|
27628
27679
|
pixelmatch: "^5.3.0",
|
|
27629
27680
|
pngjs: "^7.0.0",
|
|
27630
|
-
postcss: "^8.4.
|
|
27681
|
+
postcss: "^8.4.38",
|
|
27631
27682
|
"postcss-cli": "^11.0.0",
|
|
27632
27683
|
"postcss-inline-svg": "^6.0.0",
|
|
27633
27684
|
"pretty-bytes": "^6.1.1",
|
|
27634
|
-
puppeteer: "^22.
|
|
27685
|
+
puppeteer: "^22.6.3",
|
|
27635
27686
|
react: "^18.2.0",
|
|
27636
27687
|
"react-dom": "^18.2.0",
|
|
27637
|
-
rollup: "^4.
|
|
27688
|
+
rollup: "^4.14.1",
|
|
27638
27689
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
27639
27690
|
rw: "^1.3.3",
|
|
27640
27691
|
semver: "^7.6.0",
|
|
27641
27692
|
"shuffle-seed": "^1.1.6",
|
|
27642
27693
|
"source-map-explorer": "^2.5.3",
|
|
27643
27694
|
st: "^3.0.0",
|
|
27644
|
-
stylelint: "^16.
|
|
27695
|
+
stylelint: "^16.3.1",
|
|
27645
27696
|
"stylelint-config-standard": "^36.0.0",
|
|
27646
27697
|
"ts-jest": "^29.1.2",
|
|
27647
27698
|
"ts-node": "^10.9.2",
|
|
27648
27699
|
tslib: "^2.6.2",
|
|
27649
|
-
typedoc: "^0.25.
|
|
27700
|
+
typedoc: "^0.25.13",
|
|
27650
27701
|
"typedoc-plugin-markdown": "^3.17.1",
|
|
27651
27702
|
"typedoc-plugin-missing-exports": "^2.2.0",
|
|
27652
|
-
typescript: "^5.
|
|
27703
|
+
typescript: "^5.4.4"
|
|
27653
27704
|
};
|
|
27654
27705
|
var overrides = {
|
|
27655
27706
|
"postcss-inline-svg": {
|
|
@@ -27664,18 +27715,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
27664
27715
|
"generate-shaders": "node --no-warnings --loader ts-node/esm build/generate-shaders.ts",
|
|
27665
27716
|
"generate-struct-arrays": "node --no-warnings --loader ts-node/esm build/generate-struct-arrays.ts",
|
|
27666
27717
|
"generate-style-code": "node --no-warnings --loader ts-node/esm build/generate-style-code.ts",
|
|
27667
|
-
"generate-typings": "dts-bundle-generator --export-referenced-types --umd-module-name=maplibregl -o ./dist/
|
|
27718
|
+
"generate-typings": "dts-bundle-generator --export-referenced-types --umd-module-name=maplibregl -o ./dist/maplibre-gl.d.ts ./src/index.ts",
|
|
27668
27719
|
"generate-docs": "typedoc && node --no-warnings --loader ts-node/esm build/generate-docs.ts",
|
|
27669
27720
|
"generate-images": "node --no-warnings --loader ts-node/esm build/generate-doc-images.ts",
|
|
27670
27721
|
"build-dist": "npm run build-css && npm run generate-typings && npm run build-dev && npm run build-csp-dev && npm run build-prod && npm run build-csp",
|
|
27671
|
-
"build-aml-package": "npm run build-dist && node ./build/build-aml-package.js",
|
|
27672
27722
|
"build-dev": "rollup --configPlugin @rollup/plugin-typescript -c --environment BUILD:dev",
|
|
27673
27723
|
"watch-dev": "rollup --configPlugin @rollup/plugin-typescript -c --environment BUILD:dev --watch",
|
|
27674
27724
|
"build-prod": "rollup --configPlugin @rollup/plugin-typescript -c --environment BUILD:production",
|
|
27675
27725
|
"build-csp": "rollup --configPlugin @rollup/plugin-typescript -c rollup.config.csp.ts",
|
|
27676
27726
|
"build-csp-dev": "rollup --configPlugin @rollup/plugin-typescript -c rollup.config.csp.ts --environment BUILD:dev",
|
|
27677
|
-
"build-css": "postcss -o dist/
|
|
27678
|
-
"watch-css": "postcss --watch -o dist/
|
|
27727
|
+
"build-css": "postcss -o dist/maplibre-gl.css src/css/maplibre-gl.css",
|
|
27728
|
+
"watch-css": "postcss --watch -o dist/maplibre-gl.css src/css/maplibre-gl.css",
|
|
27679
27729
|
"build-benchmarks": "npm run build-dev && rollup --configPlugin @rollup/plugin-typescript -c test/bench/rollup_config_benchmarks.ts",
|
|
27680
27730
|
"watch-benchmarks": "rollup --configPlugin @rollup/plugin-typescript -c test/bench/rollup_config_benchmarks.ts --watch",
|
|
27681
27731
|
"start-server": "st --no-cache -H 0.0.0.0 --port 9966 .",
|
|
@@ -27699,7 +27749,14 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
27699
27749
|
"gl-stats": "node --no-warnings --loader ts-node/esm test/bench/gl-stats.ts",
|
|
27700
27750
|
prepare: "npm run codegen",
|
|
27701
27751
|
typecheck: "tsc --noEmit && tsc --project tsconfig.dist.json",
|
|
27702
|
-
tsnode: "node --experimental-loader=ts-node/esm --no-warnings"
|
|
27752
|
+
tsnode: "node --experimental-loader=ts-node/esm --no-warnings",
|
|
27753
|
+
"build-aml-css": "postcss -o dist/azuremaps-maplibre-gl.css src/css/azuremaps-maplibre-gl.css",
|
|
27754
|
+
"watch-aml-css": "postcss --watch -o dist/azuremaps-maplibre-gl.css src/css/azuremaps-maplibre-gl.css",
|
|
27755
|
+
"build-es2017-dev": "rollup --configPlugin @rollup/plugin-typescript -c rollup.config.es2017.ts --environment BUILD:dev",
|
|
27756
|
+
"build-es2017": "rollup --configPlugin @rollup/plugin-typescript -c rollup.config.es2017.ts --environment BUILD:production",
|
|
27757
|
+
"generate-aml-typings": "dts-bundle-generator --export-referenced-types --umd-module-name=maplibregl -o ./dist/azuremaps-maplibre-gl.d.ts ./src/index.ts",
|
|
27758
|
+
"build-aml-dist": "npm run generate-aml-typings && run-p --print-label build-aml-css build-dev build-prod build-es2017-dev build-es2017",
|
|
27759
|
+
"build-aml-package": "npm run build-aml-dist && node ./build/build-aml-package.js"
|
|
27703
27760
|
};
|
|
27704
27761
|
var files = [
|
|
27705
27762
|
"build/",
|
|
@@ -27718,7 +27775,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
27718
27775
|
main: main,
|
|
27719
27776
|
style: style,
|
|
27720
27777
|
license: license,
|
|
27778
|
+
homepage: homepage,
|
|
27721
27779
|
funding: funding,
|
|
27780
|
+
bugs: bugs,
|
|
27722
27781
|
repository: repository,
|
|
27723
27782
|
types: types,
|
|
27724
27783
|
type: type,
|
|
@@ -28148,20 +28207,6 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
28148
28207
|
})(ImageRequest || (ImageRequest = {}));
|
|
28149
28208
|
ImageRequest.resetRequestQueue();
|
|
28150
28209
|
|
|
28151
|
-
/**
|
|
28152
|
-
* A type of MapLibre resource.
|
|
28153
|
-
*/
|
|
28154
|
-
var ResourceType;
|
|
28155
|
-
(function (ResourceType) {
|
|
28156
|
-
ResourceType["Glyphs"] = "Glyphs";
|
|
28157
|
-
ResourceType["Image"] = "Image";
|
|
28158
|
-
ResourceType["Source"] = "Source";
|
|
28159
|
-
ResourceType["SpriteImage"] = "SpriteImage";
|
|
28160
|
-
ResourceType["SpriteJSON"] = "SpriteJSON";
|
|
28161
|
-
ResourceType["Style"] = "Style";
|
|
28162
|
-
ResourceType["Tile"] = "Tile";
|
|
28163
|
-
ResourceType["Unknown"] = "Unknown";
|
|
28164
|
-
})(ResourceType || (ResourceType = {}));
|
|
28165
28210
|
class RequestManager {
|
|
28166
28211
|
constructor(transformRequestFn) {
|
|
28167
28212
|
this._transformRequestFn = transformRequestFn;
|
|
@@ -28231,9 +28276,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
28231
28276
|
const jsonsMap = {};
|
|
28232
28277
|
const imagesMap = {};
|
|
28233
28278
|
for (const { id, url } of spriteArray) {
|
|
28234
|
-
const jsonRequestParameters = requestManager.transformRequest(requestManager.normalizeSpriteURL(url, format, '.json'), ResourceType.SpriteJSON);
|
|
28279
|
+
const jsonRequestParameters = requestManager.transformRequest(requestManager.normalizeSpriteURL(url, format, '.json'), "SpriteJSON" /* ResourceType.SpriteJSON */);
|
|
28235
28280
|
jsonsMap[id] = performance$1.getJSON(jsonRequestParameters, abortController);
|
|
28236
|
-
const imageRequestParameters = requestManager.transformRequest(requestManager.normalizeSpriteURL(url, format, '.png'), ResourceType.SpriteImage);
|
|
28281
|
+
const imageRequestParameters = requestManager.transformRequest(requestManager.normalizeSpriteURL(url, format, '.png'), "SpriteImage" /* ResourceType.SpriteImage */);
|
|
28237
28282
|
imagesMap[id] = ImageRequest.getImage(imageRequestParameters, abortController);
|
|
28238
28283
|
}
|
|
28239
28284
|
yield Promise.all([...Object.values(jsonsMap), ...Object.values(imagesMap)]);
|
|
@@ -28605,7 +28650,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
28605
28650
|
return performance$1.__awaiter(this, void 0, void 0, function* () {
|
|
28606
28651
|
const begin = range * 256;
|
|
28607
28652
|
const end = begin + 255;
|
|
28608
|
-
const request = requestManager.transformRequest(urlTemplate.replace('{fontstack}', fontstack).replace('{range}', `${begin}-${end}`), ResourceType.Glyphs);
|
|
28653
|
+
const request = requestManager.transformRequest(urlTemplate.replace('{fontstack}', fontstack).replace('{range}', `${begin}-${end}`), "Glyphs" /* ResourceType.Glyphs */);
|
|
28609
28654
|
const response = yield performance$1.getArrayBuffer(request, new AbortController());
|
|
28610
28655
|
if (!response || !response.data) {
|
|
28611
28656
|
throw new Error(`Could not load glyph range. range: ${range}, ${begin}-${end}`);
|
|
@@ -29308,7 +29353,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
29308
29353
|
function getGlobalDispatcher() {
|
|
29309
29354
|
if (!globalDispatcher) {
|
|
29310
29355
|
globalDispatcher = new Dispatcher(getGlobalWorkerPool(), performance$1.GLOBAL_DISPATCHER_ID);
|
|
29311
|
-
globalDispatcher.registerMessageHandler(
|
|
29356
|
+
globalDispatcher.registerMessageHandler("GR" /* MessageType.getResource */, (_mapId, params, abortController) => {
|
|
29312
29357
|
return performance$1.makeRequest(params, abortController);
|
|
29313
29358
|
});
|
|
29314
29359
|
}
|
|
@@ -29472,7 +29517,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
29472
29517
|
return performance$1.__awaiter(this, void 0, void 0, function* () {
|
|
29473
29518
|
let tileJSON = options;
|
|
29474
29519
|
if (options.url) {
|
|
29475
|
-
const response = yield performance$1.getJSON(requestManager.transformRequest(options.url, ResourceType.Source), abortController);
|
|
29520
|
+
const response = yield performance$1.getJSON(requestManager.transformRequest(options.url, "Source" /* ResourceType.Source */), abortController);
|
|
29476
29521
|
tileJSON = response.data;
|
|
29477
29522
|
}
|
|
29478
29523
|
else {
|
|
@@ -29940,7 +29985,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
29940
29985
|
return performance$1.__awaiter(this, void 0, void 0, function* () {
|
|
29941
29986
|
const url = tile.tileID.canonical.url(this.tiles, this.map.getPixelRatio(), this.scheme);
|
|
29942
29987
|
const params = {
|
|
29943
|
-
request: this.map._requestManager.transformRequest(url, ResourceType.Tile),
|
|
29988
|
+
request: this.map._requestManager.transformRequest(url, "Tile" /* ResourceType.Tile */),
|
|
29944
29989
|
uid: tile.uid,
|
|
29945
29990
|
tileID: tile.tileID,
|
|
29946
29991
|
zoom: tile.tileID.overscaledZ,
|
|
@@ -29952,10 +29997,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
29952
29997
|
promoteId: this.promoteId
|
|
29953
29998
|
};
|
|
29954
29999
|
params.request.collectResourceTiming = this._collectResourceTiming;
|
|
29955
|
-
let messageType =
|
|
30000
|
+
let messageType = "RT" /* MessageType.reloadTile */;
|
|
29956
30001
|
if (!tile.actor || tile.state === 'expired') {
|
|
29957
30002
|
tile.actor = this.dispatcher.getActor();
|
|
29958
|
-
messageType =
|
|
30003
|
+
messageType = "LT" /* MessageType.loadTile */;
|
|
29959
30004
|
}
|
|
29960
30005
|
else if (tile.state === 'loading') {
|
|
29961
30006
|
return new Promise((resolve, reject) => {
|
|
@@ -30004,7 +30049,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
30004
30049
|
delete tile.abortController;
|
|
30005
30050
|
}
|
|
30006
30051
|
if (tile.actor) {
|
|
30007
|
-
yield tile.actor.sendAsync({
|
|
30052
|
+
yield tile.actor.sendAsync({
|
|
30053
|
+
type: "AT" /* MessageType.abortTile */,
|
|
30054
|
+
data: { uid: tile.uid, type: this.type, source: this.id }
|
|
30055
|
+
});
|
|
30008
30056
|
}
|
|
30009
30057
|
});
|
|
30010
30058
|
}
|
|
@@ -30012,7 +30060,14 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
30012
30060
|
return performance$1.__awaiter(this, void 0, void 0, function* () {
|
|
30013
30061
|
tile.unloadVectorData();
|
|
30014
30062
|
if (tile.actor) {
|
|
30015
|
-
yield tile.actor.sendAsync({
|
|
30063
|
+
yield tile.actor.sendAsync({
|
|
30064
|
+
type: "RMT" /* MessageType.removeTile */,
|
|
30065
|
+
data: {
|
|
30066
|
+
uid: tile.uid,
|
|
30067
|
+
type: this.type,
|
|
30068
|
+
source: this.id
|
|
30069
|
+
}
|
|
30070
|
+
});
|
|
30016
30071
|
}
|
|
30017
30072
|
});
|
|
30018
30073
|
}
|
|
@@ -30149,7 +30204,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
30149
30204
|
const url = tile.tileID.canonical.url(this.tiles, this.map.getPixelRatio(), this.scheme);
|
|
30150
30205
|
tile.abortController = new AbortController();
|
|
30151
30206
|
try {
|
|
30152
|
-
const response = yield ImageRequest.getImage(this.map._requestManager.transformRequest(url, ResourceType.Tile), tile.abortController, this.map._refreshExpiredTiles);
|
|
30207
|
+
const response = yield ImageRequest.getImage(this.map._requestManager.transformRequest(url, "Tile" /* ResourceType.Tile */), tile.abortController, this.map._refreshExpiredTiles);
|
|
30153
30208
|
delete tile.abortController;
|
|
30154
30209
|
if (tile.aborted) {
|
|
30155
30210
|
tile.state = 'unloaded';
|
|
@@ -30239,7 +30294,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
30239
30294
|
loadTile(tile) {
|
|
30240
30295
|
return performance$1.__awaiter(this, void 0, void 0, function* () {
|
|
30241
30296
|
const url = tile.tileID.canonical.url(this.tiles, this.map.getPixelRatio(), this.scheme);
|
|
30242
|
-
const request = this.map._requestManager.transformRequest(url, ResourceType.Tile);
|
|
30297
|
+
const request = this.map._requestManager.transformRequest(url, "Tile" /* ResourceType.Tile */);
|
|
30243
30298
|
tile.neighboringTiles = this._getNeighboringTiles(tile.tileID);
|
|
30244
30299
|
tile.abortController = new AbortController();
|
|
30245
30300
|
try {
|
|
@@ -30270,7 +30325,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
30270
30325
|
if (!tile.actor || tile.state === 'expired') {
|
|
30271
30326
|
tile.actor = this.dispatcher.getActor();
|
|
30272
30327
|
/* eslint-disable require-atomic-updates */
|
|
30273
|
-
const data = yield tile.actor.sendAsync({ type:
|
|
30328
|
+
const data = yield tile.actor.sendAsync({ type: "LDT" /* MessageType.loadDEMTile */, data: params });
|
|
30274
30329
|
tile.dem = data;
|
|
30275
30330
|
tile.needsHillshadePrepare = true;
|
|
30276
30331
|
tile.needsTerrainPrepare = true;
|
|
@@ -30344,7 +30399,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
30344
30399
|
delete tile.neighboringTiles;
|
|
30345
30400
|
tile.state = 'unloaded';
|
|
30346
30401
|
if (tile.actor) {
|
|
30347
|
-
yield tile.actor.sendAsync({ type:
|
|
30402
|
+
yield tile.actor.sendAsync({ type: "RDT" /* MessageType.removeDEMTile */, data: { type: this.type, uid: tile.uid, source: this.id } });
|
|
30348
30403
|
}
|
|
30349
30404
|
});
|
|
30350
30405
|
}
|
|
@@ -30530,7 +30585,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
30530
30585
|
* @returns a promise that is resolved with the zoom number
|
|
30531
30586
|
*/
|
|
30532
30587
|
getClusterExpansionZoom(clusterId) {
|
|
30533
|
-
return this.actor.sendAsync({ type:
|
|
30588
|
+
return this.actor.sendAsync({ type: "GCEZ" /* MessageType.getClusterExpansionZoom */, data: { type: this.type, clusterId, source: this.id } });
|
|
30534
30589
|
}
|
|
30535
30590
|
/**
|
|
30536
30591
|
* For clustered sources, fetches the children of the given cluster on the next zoom level (as an array of GeoJSON features).
|
|
@@ -30539,7 +30594,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
30539
30594
|
* @returns a promise that is resolved when the features are retrieved
|
|
30540
30595
|
*/
|
|
30541
30596
|
getClusterChildren(clusterId) {
|
|
30542
|
-
return this.actor.sendAsync({ type:
|
|
30597
|
+
return this.actor.sendAsync({ type: "GCC" /* MessageType.getClusterChildren */, data: { type: this.type, clusterId, source: this.id } });
|
|
30543
30598
|
}
|
|
30544
30599
|
/**
|
|
30545
30600
|
* For clustered sources, fetches the original points that belong to the cluster (as an array of GeoJSON features).
|
|
@@ -30567,7 +30622,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
30567
30622
|
* ```
|
|
30568
30623
|
*/
|
|
30569
30624
|
getClusterLeaves(clusterId, limit, offset) {
|
|
30570
|
-
return this.actor.sendAsync({ type:
|
|
30625
|
+
return this.actor.sendAsync({ type: "GCL" /* MessageType.getClusterLeaves */, data: {
|
|
30571
30626
|
type: this.type,
|
|
30572
30627
|
source: this.id,
|
|
30573
30628
|
clusterId,
|
|
@@ -30588,7 +30643,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
30588
30643
|
options.dataDiff = diff;
|
|
30589
30644
|
}
|
|
30590
30645
|
else if (typeof this._data === 'string') {
|
|
30591
|
-
options.request = this.map._requestManager.transformRequest(browser.resolveURL(this._data), ResourceType.Source);
|
|
30646
|
+
options.request = this.map._requestManager.transformRequest(browser.resolveURL(this._data), "Source" /* ResourceType.Source */);
|
|
30592
30647
|
options.request.collectResourceTiming = this._collectResourceTiming;
|
|
30593
30648
|
}
|
|
30594
30649
|
else {
|
|
@@ -30597,7 +30652,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
30597
30652
|
this._pendingLoads++;
|
|
30598
30653
|
this.fire(new performance$1.Event('dataloading', { dataType: 'source' }));
|
|
30599
30654
|
try {
|
|
30600
|
-
const result = yield this.actor.sendAsync({ type:
|
|
30655
|
+
const result = yield this.actor.sendAsync({ type: "LD" /* MessageType.loadData */, data: options });
|
|
30601
30656
|
this._pendingLoads--;
|
|
30602
30657
|
if (this._removed || result.abandoned) {
|
|
30603
30658
|
this.fire(new performance$1.Event('dataabort', { dataType: 'source' }));
|
|
@@ -30631,7 +30686,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
30631
30686
|
}
|
|
30632
30687
|
loadTile(tile) {
|
|
30633
30688
|
return performance$1.__awaiter(this, void 0, void 0, function* () {
|
|
30634
|
-
const message = !tile.actor ?
|
|
30689
|
+
const message = !tile.actor ? "LT" /* MessageType.loadTile */ : "RT" /* MessageType.reloadTile */;
|
|
30635
30690
|
tile.actor = this.actor;
|
|
30636
30691
|
const params = {
|
|
30637
30692
|
type: this.type,
|
|
@@ -30650,7 +30705,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
30650
30705
|
delete tile.abortController;
|
|
30651
30706
|
tile.unloadVectorData();
|
|
30652
30707
|
if (!tile.aborted) {
|
|
30653
|
-
tile.loadVectorData(data, this.map.painter, message ===
|
|
30708
|
+
tile.loadVectorData(data, this.map.painter, message === "RT" /* MessageType.reloadTile */);
|
|
30654
30709
|
}
|
|
30655
30710
|
});
|
|
30656
30711
|
}
|
|
@@ -30666,12 +30721,12 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
30666
30721
|
unloadTile(tile) {
|
|
30667
30722
|
return performance$1.__awaiter(this, void 0, void 0, function* () {
|
|
30668
30723
|
tile.unloadVectorData();
|
|
30669
|
-
yield this.actor.sendAsync({ type:
|
|
30724
|
+
yield this.actor.sendAsync({ type: "RMT" /* MessageType.removeTile */, data: { uid: tile.uid, type: this.type, source: this.id } });
|
|
30670
30725
|
});
|
|
30671
30726
|
}
|
|
30672
30727
|
onRemove() {
|
|
30673
30728
|
this._removed = true;
|
|
30674
|
-
this.actor.sendAsync({ type:
|
|
30729
|
+
this.actor.sendAsync({ type: "RS" /* MessageType.removeSource */, data: { type: this.type, source: this.id } });
|
|
30675
30730
|
}
|
|
30676
30731
|
serialize() {
|
|
30677
30732
|
return performance$1.extend({}, this._options, {
|
|
@@ -30755,7 +30810,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
30755
30810
|
this.url = this.options.url;
|
|
30756
30811
|
this._request = new AbortController();
|
|
30757
30812
|
try {
|
|
30758
|
-
const image = yield ImageRequest.getImage(this.map._requestManager.transformRequest(this.url, ResourceType.Image), this._request);
|
|
30813
|
+
const image = yield ImageRequest.getImage(this.map._requestManager.transformRequest(this.url, "Image" /* ResourceType.Image */), this._request);
|
|
30759
30814
|
this._request = null;
|
|
30760
30815
|
this._loaded = true;
|
|
30761
30816
|
if (image && image.data) {
|
|
@@ -30983,7 +31038,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
30983
31038
|
const options = this.options;
|
|
30984
31039
|
this.urls = [];
|
|
30985
31040
|
for (const url of options.urls) {
|
|
30986
|
-
this.urls.push(this.map._requestManager.transformRequest(url, ResourceType.Source).url);
|
|
31041
|
+
this.urls.push(this.map._requestManager.transformRequest(url, "Source" /* ResourceType.Source */).url);
|
|
30987
31042
|
}
|
|
30988
31043
|
try {
|
|
30989
31044
|
const video = yield performance$1.getVideo(this.urls);
|
|
@@ -31350,65 +31405,78 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
31350
31405
|
return output;
|
|
31351
31406
|
}
|
|
31352
31407
|
|
|
31408
|
+
const RTLPluginLoadedEventName = 'RTLPluginLoaded';
|
|
31409
|
+
|
|
31353
31410
|
class RTLMainThreadPlugin extends performance$1.Evented {
|
|
31354
31411
|
constructor() {
|
|
31355
31412
|
super(...arguments);
|
|
31356
|
-
this.
|
|
31357
|
-
this.
|
|
31413
|
+
this.status = 'unavailable';
|
|
31414
|
+
this.url = null;
|
|
31358
31415
|
this.dispatcher = getGlobalDispatcher();
|
|
31359
|
-
this.queue = [];
|
|
31360
31416
|
}
|
|
31361
|
-
|
|
31362
|
-
|
|
31363
|
-
|
|
31364
|
-
|
|
31417
|
+
/** Sync RTL plugin state by broadcasting a message to the worker */
|
|
31418
|
+
_syncState(statusToSend) {
|
|
31419
|
+
this.status = statusToSend;
|
|
31420
|
+
return this.dispatcher.broadcast("SRPS" /* MessageType.syncRTLPluginState */, { pluginStatus: statusToSend, pluginURL: this.url })
|
|
31421
|
+
.catch((e) => {
|
|
31422
|
+
this.status = 'error';
|
|
31423
|
+
throw e;
|
|
31365
31424
|
});
|
|
31366
31425
|
}
|
|
31426
|
+
/** This one is exposed to outside */
|
|
31367
31427
|
getRTLTextPluginStatus() {
|
|
31368
|
-
return this.
|
|
31428
|
+
return this.status;
|
|
31369
31429
|
}
|
|
31370
31430
|
clearRTLTextPlugin() {
|
|
31371
|
-
this.
|
|
31372
|
-
this.
|
|
31431
|
+
this.status = 'unavailable';
|
|
31432
|
+
this.url = null;
|
|
31373
31433
|
}
|
|
31374
|
-
setRTLTextPlugin(
|
|
31375
|
-
return performance$1.__awaiter(this,
|
|
31376
|
-
if (this.
|
|
31434
|
+
setRTLTextPlugin(url_1) {
|
|
31435
|
+
return performance$1.__awaiter(this, arguments, void 0, function* (url, deferred = false) {
|
|
31436
|
+
if (this.url) {
|
|
31437
|
+
// error
|
|
31377
31438
|
throw new Error('setRTLTextPlugin cannot be called multiple times.');
|
|
31378
31439
|
}
|
|
31379
|
-
this.
|
|
31380
|
-
this.
|
|
31381
|
-
|
|
31382
|
-
|
|
31383
|
-
|
|
31384
|
-
|
|
31385
|
-
|
|
31386
|
-
|
|
31387
|
-
|
|
31388
|
-
|
|
31389
|
-
|
|
31390
|
-
|
|
31391
|
-
|
|
31392
|
-
|
|
31393
|
-
|
|
31394
|
-
|
|
31395
|
-
yield this._sendPluginStateToWorker();
|
|
31396
|
-
yield performance$1.getArrayBuffer({ url: this.pluginURL }, new AbortController());
|
|
31397
|
-
this.pluginStatus = 'loaded';
|
|
31440
|
+
this.url = browser.resolveURL(url);
|
|
31441
|
+
if (!this.url) {
|
|
31442
|
+
throw new Error(`requested url ${url} is invalid`);
|
|
31443
|
+
}
|
|
31444
|
+
if (this.status === 'unavailable') {
|
|
31445
|
+
// from initial state:
|
|
31446
|
+
if (deferred) {
|
|
31447
|
+
this.status = 'deferred';
|
|
31448
|
+
// fire and forget: in this case it does not need wait for the broadcasting result
|
|
31449
|
+
// it is important to sync the deferred status once because
|
|
31450
|
+
// symbol_bucket will be checking it in worker
|
|
31451
|
+
this._syncState(this.status);
|
|
31452
|
+
}
|
|
31453
|
+
else {
|
|
31454
|
+
return this._requestImport();
|
|
31455
|
+
}
|
|
31398
31456
|
}
|
|
31399
|
-
|
|
31400
|
-
this.
|
|
31457
|
+
else if (this.status === 'requested') {
|
|
31458
|
+
return this._requestImport();
|
|
31401
31459
|
}
|
|
31402
|
-
yield this._sendPluginStateToWorker();
|
|
31403
31460
|
});
|
|
31404
31461
|
}
|
|
31405
|
-
|
|
31462
|
+
/** Send a message to worker which will import the RTL plugin script */
|
|
31463
|
+
_requestImport() {
|
|
31406
31464
|
return performance$1.__awaiter(this, void 0, void 0, function* () {
|
|
31407
|
-
|
|
31408
|
-
|
|
31409
|
-
|
|
31465
|
+
// all errors/exceptions will be handled by _syncState
|
|
31466
|
+
yield this._syncState('loading');
|
|
31467
|
+
this.status = 'loaded';
|
|
31468
|
+
this.fire(new performance$1.Event(RTLPluginLoadedEventName));
|
|
31410
31469
|
});
|
|
31411
31470
|
}
|
|
31471
|
+
/** Start a lazy loading process of RTL plugin */
|
|
31472
|
+
lazyLoad() {
|
|
31473
|
+
if (this.status === 'unavailable') {
|
|
31474
|
+
this.status = 'requested';
|
|
31475
|
+
}
|
|
31476
|
+
else if (this.status === 'deferred') {
|
|
31477
|
+
this._requestImport();
|
|
31478
|
+
}
|
|
31479
|
+
}
|
|
31412
31480
|
}
|
|
31413
31481
|
let rtlMainThreadPlugin = null;
|
|
31414
31482
|
function rtlMainThreadPluginFactory() {
|
|
@@ -31520,7 +31588,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
31520
31588
|
if (bucket instanceof performance$1.SymbolBucket) {
|
|
31521
31589
|
if (bucket.hasRTLText) {
|
|
31522
31590
|
this.hasRTLText = true;
|
|
31523
|
-
rtlMainThreadPluginFactory().
|
|
31591
|
+
rtlMainThreadPluginFactory().lazyLoad();
|
|
31524
31592
|
break;
|
|
31525
31593
|
}
|
|
31526
31594
|
}
|
|
@@ -35278,7 +35346,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
35278
35346
|
class Style extends performance$1.Evented {
|
|
35279
35347
|
constructor(map, options = {}) {
|
|
35280
35348
|
super();
|
|
35281
|
-
this.
|
|
35349
|
+
this._rtlPluginLoaded = () => {
|
|
35282
35350
|
for (const id in this.sourceCaches) {
|
|
35283
35351
|
const sourceType = this.sourceCaches[id].getSource().type;
|
|
35284
35352
|
if (sourceType === 'vector' || sourceType === 'geojson') {
|
|
@@ -35291,10 +35359,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
35291
35359
|
};
|
|
35292
35360
|
this.map = map;
|
|
35293
35361
|
this.dispatcher = new Dispatcher(getGlobalWorkerPool(), map._getMapId());
|
|
35294
|
-
this.dispatcher.registerMessageHandler(
|
|
35362
|
+
this.dispatcher.registerMessageHandler("GG" /* MessageType.getGlyphs */, (mapId, params) => {
|
|
35295
35363
|
return this.getGlyphs(mapId, params);
|
|
35296
35364
|
});
|
|
35297
|
-
this.dispatcher.registerMessageHandler(
|
|
35365
|
+
this.dispatcher.registerMessageHandler("GI" /* MessageType.getImages */, (mapId, params) => {
|
|
35298
35366
|
return this.getImages(mapId, params);
|
|
35299
35367
|
});
|
|
35300
35368
|
this.imageManager = new ImageManager();
|
|
@@ -35310,8 +35378,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
35310
35378
|
this._loaded = false;
|
|
35311
35379
|
this._availableImages = [];
|
|
35312
35380
|
this._resetUpdates();
|
|
35313
|
-
this.dispatcher.broadcast(
|
|
35314
|
-
rtlMainThreadPluginFactory().on(
|
|
35381
|
+
this.dispatcher.broadcast("SR" /* MessageType.setReferrer */, performance$1.getReferrer());
|
|
35382
|
+
rtlMainThreadPluginFactory().on(RTLPluginLoadedEventName, this._rtlPluginLoaded);
|
|
35315
35383
|
this.on('data', (event) => {
|
|
35316
35384
|
if (event.dataType !== 'source' || event.sourceDataType !== 'metadata') {
|
|
35317
35385
|
return;
|
|
@@ -35336,7 +35404,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
35336
35404
|
this.fire(new performance$1.Event('dataloading', { dataType: 'style' }));
|
|
35337
35405
|
options.validate = typeof options.validate === 'boolean' ?
|
|
35338
35406
|
options.validate : true;
|
|
35339
|
-
const request = this.map._requestManager.transformRequest(url, ResourceType.Style);
|
|
35407
|
+
const request = this.map._requestManager.transformRequest(url, "Style" /* ResourceType.Style */);
|
|
35340
35408
|
this._loadStyleRequest = new AbortController();
|
|
35341
35409
|
performance$1.getJSON(request, this._loadStyleRequest).then((response) => {
|
|
35342
35410
|
this._loadStyleRequest = null;
|
|
@@ -35389,7 +35457,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
35389
35457
|
const dereferencedLayers = performance$1.derefLayers(this.stylesheet.layers);
|
|
35390
35458
|
// Broadcast layers to workers first, so that expensive style processing (createStyleLayer)
|
|
35391
35459
|
// can happen in parallel on both main and worker threads.
|
|
35392
|
-
this.dispatcher.broadcast(
|
|
35460
|
+
this.dispatcher.broadcast("SL" /* MessageType.setLayers */, dereferencedLayers);
|
|
35393
35461
|
this._order = dereferencedLayers.map((layer) => layer.id);
|
|
35394
35462
|
this._layers = {};
|
|
35395
35463
|
// reset serialization field, to be populated only when needed
|
|
@@ -35442,7 +35510,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
35442
35510
|
if (isUpdate) {
|
|
35443
35511
|
this._changed = true;
|
|
35444
35512
|
}
|
|
35445
|
-
this.dispatcher.broadcast(
|
|
35513
|
+
this.dispatcher.broadcast("SI" /* MessageType.setImages */, this._availableImages);
|
|
35446
35514
|
this.fire(new performance$1.Event('data', { dataType: 'style' }));
|
|
35447
35515
|
if (completion) {
|
|
35448
35516
|
completion(err);
|
|
@@ -35457,7 +35525,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
35457
35525
|
this._spritesImagesIds = {};
|
|
35458
35526
|
this._availableImages = this.imageManager.listImages();
|
|
35459
35527
|
this._changed = true;
|
|
35460
|
-
this.dispatcher.broadcast(
|
|
35528
|
+
this.dispatcher.broadcast("SI" /* MessageType.setImages */, this._availableImages);
|
|
35461
35529
|
this.fire(new performance$1.Event('data', { dataType: 'style' }));
|
|
35462
35530
|
}
|
|
35463
35531
|
_validateLayer(layer) {
|
|
@@ -35628,7 +35696,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
35628
35696
|
}
|
|
35629
35697
|
}
|
|
35630
35698
|
_updateWorkerLayers(updatedIds, removedIds) {
|
|
35631
|
-
this.dispatcher.broadcast(
|
|
35699
|
+
this.dispatcher.broadcast("UL" /* MessageType.updateLayers */, {
|
|
35632
35700
|
layers: this._serializeByIds(updatedIds),
|
|
35633
35701
|
removedIds
|
|
35634
35702
|
});
|
|
@@ -35763,7 +35831,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
35763
35831
|
this._availableImages = this.imageManager.listImages();
|
|
35764
35832
|
this._changedImages[id] = true;
|
|
35765
35833
|
this._changed = true;
|
|
35766
|
-
this.dispatcher.broadcast(
|
|
35834
|
+
this.dispatcher.broadcast("SI" /* MessageType.setImages */, this._availableImages);
|
|
35767
35835
|
this.fire(new performance$1.Event('data', { dataType: 'style' }));
|
|
35768
35836
|
}
|
|
35769
35837
|
listImages() {
|
|
@@ -36342,7 +36410,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
36342
36410
|
this._spriteRequest.abort();
|
|
36343
36411
|
this._spriteRequest = null;
|
|
36344
36412
|
}
|
|
36345
|
-
rtlMainThreadPluginFactory().off(
|
|
36413
|
+
rtlMainThreadPluginFactory().off(RTLPluginLoadedEventName, this._rtlPluginLoaded);
|
|
36346
36414
|
for (const layerId in this._layers) {
|
|
36347
36415
|
const layer = this._layers[layerId];
|
|
36348
36416
|
layer.setEventedParent(null);
|
|
@@ -36354,6 +36422,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
36354
36422
|
}
|
|
36355
36423
|
this.imageManager.setEventedParent(null);
|
|
36356
36424
|
this.setEventedParent(null);
|
|
36425
|
+
if (mapRemoved) {
|
|
36426
|
+
this.dispatcher.broadcast("RM" /* MessageType.removeMap */, undefined);
|
|
36427
|
+
}
|
|
36357
36428
|
this.dispatcher.remove(mapRemoved);
|
|
36358
36429
|
}
|
|
36359
36430
|
_clearSource(id) {
|
|
@@ -36528,7 +36599,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
36528
36599
|
delete this._spritesImagesIds[id];
|
|
36529
36600
|
this._availableImages = this.imageManager.listImages();
|
|
36530
36601
|
this._changed = true;
|
|
36531
|
-
this.dispatcher.broadcast(
|
|
36602
|
+
this.dispatcher.broadcast("SI" /* MessageType.setImages */, this._availableImages);
|
|
36532
36603
|
this.fire(new performance$1.Event('data', { dataType: 'style' }));
|
|
36533
36604
|
}
|
|
36534
36605
|
/**
|
|
@@ -39071,12 +39142,10 @@ uniform ${precision} ${type} u_${name};
|
|
|
39071
39142
|
for (const segmentState of tileRenderState) {
|
|
39072
39143
|
const state = segmentState.state;
|
|
39073
39144
|
context.activeTexture.set(gl.TEXTURE0);
|
|
39074
|
-
// @ts-ignore
|
|
39075
39145
|
state.atlasTexture.bind(state.atlasInterpolation, gl.CLAMP_TO_EDGE);
|
|
39076
39146
|
if (state.atlasTextureIcon) {
|
|
39077
39147
|
context.activeTexture.set(gl.TEXTURE1);
|
|
39078
39148
|
if (state.atlasTextureIcon) {
|
|
39079
|
-
// @ts-ignore
|
|
39080
39149
|
state.atlasTextureIcon.bind(state.atlasInterpolationIcon, gl.CLAMP_TO_EDGE);
|
|
39081
39150
|
}
|
|
39082
39151
|
}
|
|
@@ -39944,7 +40013,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
39944
40013
|
this.context = new Context(gl);
|
|
39945
40014
|
this.transform = transform;
|
|
39946
40015
|
this._tileTextures = {};
|
|
39947
|
-
this.terrainFacilitator = { dirty: true, matrix: performance$1.
|
|
40016
|
+
this.terrainFacilitator = { dirty: true, matrix: performance$1.identity(new Float64Array(16)), renderTime: 0 };
|
|
39948
40017
|
this.setup();
|
|
39949
40018
|
// Within each layer there are multiple distinct z-planes that can be drawn to.
|
|
39950
40019
|
// This is implemented using the WebGL depth buffer.
|
|
@@ -40153,19 +40222,11 @@ uniform ${precision} ${type} u_${name};
|
|
|
40153
40222
|
break;
|
|
40154
40223
|
}
|
|
40155
40224
|
}
|
|
40225
|
+
this.maybeDrawDepthAndCoords(false);
|
|
40156
40226
|
if (this.renderToTexture) {
|
|
40157
40227
|
this.renderToTexture.prepareForRender(this.style, this.transform.zoom);
|
|
40158
40228
|
// this is disabled, because render-to-texture is rendering all layers from bottom to top.
|
|
40159
40229
|
this.opaquePassCutoff = 0;
|
|
40160
|
-
// update coords/depth-framebuffer on camera movement, or tile reloading
|
|
40161
|
-
const newTiles = this.style.map.terrain.sourceCache.tilesAfterTime(this.terrainFacilitator.renderTime);
|
|
40162
|
-
if (this.terrainFacilitator.dirty || !performance$1.equals(this.terrainFacilitator.matrix, this.transform.projMatrix) || newTiles.length) {
|
|
40163
|
-
performance$1.copy(this.terrainFacilitator.matrix, this.transform.projMatrix);
|
|
40164
|
-
this.terrainFacilitator.renderTime = Date.now();
|
|
40165
|
-
this.terrainFacilitator.dirty = false;
|
|
40166
|
-
drawDepth(this, this.style.map.terrain);
|
|
40167
|
-
drawCoords(this, this.style.map.terrain);
|
|
40168
|
-
}
|
|
40169
40230
|
}
|
|
40170
40231
|
// Offscreen pass ===============================================
|
|
40171
40232
|
// We first do all rendering that requires rendering to a separate
|
|
@@ -40228,6 +40289,30 @@ uniform ${precision} ${type} u_${name};
|
|
|
40228
40289
|
// encounters more expected values.
|
|
40229
40290
|
this.context.setDefault();
|
|
40230
40291
|
}
|
|
40292
|
+
/**
|
|
40293
|
+
* Update the depth and coords framebuffers, if the contents of those frame buffers is out of date.
|
|
40294
|
+
* If requireExact is false, then the contents of those frame buffers is not updated if it is close
|
|
40295
|
+
* to accurate (that is, the camera has not moved much since it was updated last).
|
|
40296
|
+
*/
|
|
40297
|
+
maybeDrawDepthAndCoords(requireExact) {
|
|
40298
|
+
if (!this.style || !this.style.map || !this.style.map.terrain) {
|
|
40299
|
+
return;
|
|
40300
|
+
}
|
|
40301
|
+
const prevMatrix = this.terrainFacilitator.matrix;
|
|
40302
|
+
const currMatrix = this.transform.projMatrix;
|
|
40303
|
+
// Update coords/depth-framebuffer on camera movement, or tile reloading
|
|
40304
|
+
let doUpdate = this.terrainFacilitator.dirty;
|
|
40305
|
+
doUpdate || (doUpdate = requireExact ? !performance$1.exactEquals(prevMatrix, currMatrix) : !performance$1.equals(prevMatrix, currMatrix));
|
|
40306
|
+
doUpdate || (doUpdate = this.style.map.terrain.sourceCache.tilesAfterTime(this.terrainFacilitator.renderTime).length > 0);
|
|
40307
|
+
if (!doUpdate) {
|
|
40308
|
+
return;
|
|
40309
|
+
}
|
|
40310
|
+
performance$1.copy(prevMatrix, currMatrix);
|
|
40311
|
+
this.terrainFacilitator.renderTime = Date.now();
|
|
40312
|
+
this.terrainFacilitator.dirty = false;
|
|
40313
|
+
drawDepth(this, this.style.map.terrain);
|
|
40314
|
+
drawCoords(this, this.style.map.terrain);
|
|
40315
|
+
}
|
|
40231
40316
|
renderLayer(painter, sourceCache, layer, coords) {
|
|
40232
40317
|
if (layer.isHidden(this.transform.zoom))
|
|
40233
40318
|
return;
|
|
@@ -40575,6 +40660,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
40575
40660
|
}
|
|
40576
40661
|
}
|
|
40577
40662
|
|
|
40663
|
+
const MAX_VALID_LATITUDE = 85.051129;
|
|
40578
40664
|
/**
|
|
40579
40665
|
* @internal
|
|
40580
40666
|
* A single transform, generally used for a single tile to be
|
|
@@ -40583,7 +40669,6 @@ uniform ${precision} ${type} u_${name};
|
|
|
40583
40669
|
class Transform {
|
|
40584
40670
|
constructor(minZoom, maxZoom, minPitch, maxPitch, renderWorldCopies) {
|
|
40585
40671
|
this.tileSize = 512; // constant
|
|
40586
|
-
this.maxValidLatitude = 85.051129; // constant
|
|
40587
40672
|
this._renderWorldCopies = renderWorldCopies === undefined ? true : !!renderWorldCopies;
|
|
40588
40673
|
this._minZoom = minZoom || 0;
|
|
40589
40674
|
this._maxZoom = maxZoom || 22;
|
|
@@ -40729,6 +40814,9 @@ uniform ${precision} ${type} u_${name};
|
|
|
40729
40814
|
this._constrain();
|
|
40730
40815
|
this._calcMatrices();
|
|
40731
40816
|
}
|
|
40817
|
+
/**
|
|
40818
|
+
* Elevation at current center point, meters above sea level
|
|
40819
|
+
*/
|
|
40732
40820
|
get elevation() { return this._elevation; }
|
|
40733
40821
|
set elevation(elevation) {
|
|
40734
40822
|
if (elevation === this._elevation)
|
|
@@ -40926,7 +41014,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
40926
41014
|
* @returns Point
|
|
40927
41015
|
*/
|
|
40928
41016
|
project(lnglat) {
|
|
40929
|
-
const lat = performance$1.clamp(lnglat.lat, -
|
|
41017
|
+
const lat = performance$1.clamp(lnglat.lat, -MAX_VALID_LATITUDE, MAX_VALID_LATITUDE);
|
|
40930
41018
|
return new performance$1.Point(performance$1.mercatorXfromLng(lnglat.lng) * this.worldSize, performance$1.mercatorYfromLat(lat) * this.worldSize);
|
|
40931
41019
|
}
|
|
40932
41020
|
/**
|
|
@@ -40954,20 +41042,24 @@ uniform ${precision} ${type} u_${name};
|
|
|
40954
41042
|
* @param terrain - the terrain
|
|
40955
41043
|
*/
|
|
40956
41044
|
recalculateZoom(terrain) {
|
|
41045
|
+
const origElevation = this.elevation;
|
|
41046
|
+
const origAltitude = Math.cos(this._pitch) * this.cameraToCenterDistance / this._pixelPerMeter;
|
|
40957
41047
|
// find position the camera is looking on
|
|
40958
41048
|
const center = this.pointLocation(this.centerPoint, terrain);
|
|
40959
41049
|
const elevation = terrain.getElevationForLngLatZoom(center, this.tileZoom);
|
|
40960
41050
|
const deltaElevation = this.elevation - elevation;
|
|
40961
41051
|
if (!deltaElevation)
|
|
40962
41052
|
return;
|
|
40963
|
-
//
|
|
40964
|
-
|
|
40965
|
-
const
|
|
40966
|
-
|
|
40967
|
-
const
|
|
40968
|
-
|
|
40969
|
-
|
|
40970
|
-
|
|
41053
|
+
// The camera's altitude off the ground + the ground's elevation = a constant:
|
|
41054
|
+
// this means the camera stays at the same total height.
|
|
41055
|
+
const requiredAltitude = origAltitude + origElevation - elevation;
|
|
41056
|
+
// Since altitude = Math.cos(this._pitch) * this.cameraToCenterDistance / pixelPerMeter:
|
|
41057
|
+
const requiredPixelPerMeter = Math.cos(this._pitch) * this.cameraToCenterDistance / requiredAltitude;
|
|
41058
|
+
// Since pixelPerMeter = mercatorZfromAltitude(1, center.lat) * worldSize:
|
|
41059
|
+
const requiredWorldSize = requiredPixelPerMeter / performance$1.mercatorZfromAltitude(1, center.lat);
|
|
41060
|
+
// Since worldSize = this.tileSize * scale:
|
|
41061
|
+
const requiredScale = requiredWorldSize / this.tileSize;
|
|
41062
|
+
const zoom = this.scaleZoom(requiredScale);
|
|
40971
41063
|
// update matrices
|
|
40972
41064
|
this._elevation = elevation;
|
|
40973
41065
|
this._center = center;
|
|
@@ -41110,7 +41202,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
41110
41202
|
}
|
|
41111
41203
|
else {
|
|
41112
41204
|
this.lngRange = null;
|
|
41113
|
-
this.latRange = [-
|
|
41205
|
+
this.latRange = [-MAX_VALID_LATITUDE, MAX_VALID_LATITUDE];
|
|
41114
41206
|
}
|
|
41115
41207
|
}
|
|
41116
41208
|
/**
|
|
@@ -41136,60 +41228,92 @@ uniform ${precision} ${type} u_${name};
|
|
|
41136
41228
|
customLayerMatrix() {
|
|
41137
41229
|
return this.mercatorMatrix.slice();
|
|
41138
41230
|
}
|
|
41139
|
-
|
|
41140
|
-
|
|
41141
|
-
|
|
41142
|
-
|
|
41143
|
-
|
|
41144
|
-
|
|
41145
|
-
|
|
41146
|
-
|
|
41147
|
-
|
|
41148
|
-
|
|
41231
|
+
/**
|
|
41232
|
+
* Get center lngLat and zoom to ensure that
|
|
41233
|
+
* 1) everything beyond the bounds is excluded
|
|
41234
|
+
* 2) a given lngLat is as near the center as possible
|
|
41235
|
+
* Bounds are those set by maxBounds or North & South "Poles" and, if only 1 globe is displayed, antimeridian.
|
|
41236
|
+
*/
|
|
41237
|
+
getConstrained(lngLat, zoom) {
|
|
41238
|
+
zoom = performance$1.clamp(+zoom, this.minZoom, this.maxZoom);
|
|
41239
|
+
const result = {
|
|
41240
|
+
center: new performance$1.LngLat(lngLat.lng, lngLat.lat),
|
|
41241
|
+
zoom
|
|
41242
|
+
};
|
|
41243
|
+
let lngRange = this.lngRange;
|
|
41244
|
+
if (!this._renderWorldCopies && lngRange === null) {
|
|
41245
|
+
const almost180 = 180 - 1e-10;
|
|
41246
|
+
lngRange = [-almost180, almost180];
|
|
41247
|
+
}
|
|
41248
|
+
const worldSize = this.tileSize * this.zoomScale(result.zoom); // A world size for the requested zoom level, not the current world size
|
|
41249
|
+
let minY = 0;
|
|
41250
|
+
let maxY = worldSize;
|
|
41251
|
+
let minX = 0;
|
|
41252
|
+
let maxX = worldSize;
|
|
41253
|
+
let scaleY = 0;
|
|
41254
|
+
let scaleX = 0;
|
|
41255
|
+
const { x: screenWidth, y: screenHeight } = this.size;
|
|
41149
41256
|
if (this.latRange) {
|
|
41150
41257
|
const latRange = this.latRange;
|
|
41151
|
-
minY = performance$1.mercatorYfromLat(latRange[1]) *
|
|
41152
|
-
maxY = performance$1.mercatorYfromLat(latRange[0]) *
|
|
41153
|
-
|
|
41154
|
-
|
|
41155
|
-
|
|
41156
|
-
|
|
41157
|
-
|
|
41158
|
-
|
|
41258
|
+
minY = performance$1.mercatorYfromLat(latRange[1]) * worldSize;
|
|
41259
|
+
maxY = performance$1.mercatorYfromLat(latRange[0]) * worldSize;
|
|
41260
|
+
const shouldZoomIn = maxY - minY < screenHeight;
|
|
41261
|
+
if (shouldZoomIn)
|
|
41262
|
+
scaleY = screenHeight / (maxY - minY);
|
|
41263
|
+
}
|
|
41264
|
+
if (lngRange) {
|
|
41265
|
+
minX = performance$1.wrap(performance$1.mercatorXfromLng(lngRange[0]) * worldSize, 0, worldSize);
|
|
41266
|
+
maxX = performance$1.wrap(performance$1.mercatorXfromLng(lngRange[1]) * worldSize, 0, worldSize);
|
|
41159
41267
|
if (maxX < minX)
|
|
41160
|
-
maxX +=
|
|
41161
|
-
|
|
41162
|
-
|
|
41163
|
-
|
|
41164
|
-
|
|
41165
|
-
const
|
|
41166
|
-
|
|
41167
|
-
|
|
41168
|
-
|
|
41169
|
-
|
|
41170
|
-
|
|
41171
|
-
|
|
41268
|
+
maxX += worldSize;
|
|
41269
|
+
const shouldZoomIn = maxX - minX < screenWidth;
|
|
41270
|
+
if (shouldZoomIn)
|
|
41271
|
+
scaleX = screenWidth / (maxX - minX);
|
|
41272
|
+
}
|
|
41273
|
+
const { x: originalX, y: originalY } = this.project.call({ worldSize }, lngLat);
|
|
41274
|
+
let modifiedX, modifiedY;
|
|
41275
|
+
const scale = Math.max(scaleX || 0, scaleY || 0);
|
|
41276
|
+
if (scale) {
|
|
41277
|
+
// zoom in to exclude all beyond the given lng/lat ranges
|
|
41278
|
+
const newPoint = new performance$1.Point(scaleX ? (maxX + minX) / 2 : originalX, scaleY ? (maxY + minY) / 2 : originalY);
|
|
41279
|
+
result.center = this.unproject.call({ worldSize }, newPoint).wrap();
|
|
41280
|
+
result.zoom += this.scaleZoom(scale);
|
|
41281
|
+
return result;
|
|
41172
41282
|
}
|
|
41173
41283
|
if (this.latRange) {
|
|
41174
|
-
const
|
|
41175
|
-
if (
|
|
41176
|
-
|
|
41177
|
-
if (
|
|
41178
|
-
|
|
41284
|
+
const h2 = screenHeight / 2;
|
|
41285
|
+
if (originalY - h2 < minY)
|
|
41286
|
+
modifiedY = minY + h2;
|
|
41287
|
+
if (originalY + h2 > maxY)
|
|
41288
|
+
modifiedY = maxY - h2;
|
|
41179
41289
|
}
|
|
41180
|
-
if (
|
|
41290
|
+
if (lngRange) {
|
|
41181
41291
|
const centerX = (minX + maxX) / 2;
|
|
41182
|
-
|
|
41183
|
-
|
|
41184
|
-
|
|
41185
|
-
|
|
41186
|
-
|
|
41187
|
-
|
|
41292
|
+
let wrappedX = originalX;
|
|
41293
|
+
if (this._renderWorldCopies) {
|
|
41294
|
+
wrappedX = performance$1.wrap(originalX, centerX - worldSize / 2, centerX + worldSize / 2);
|
|
41295
|
+
}
|
|
41296
|
+
const w2 = screenWidth / 2;
|
|
41297
|
+
if (wrappedX - w2 < minX)
|
|
41298
|
+
modifiedX = minX + w2;
|
|
41299
|
+
if (wrappedX + w2 > maxX)
|
|
41300
|
+
modifiedX = maxX - w2;
|
|
41188
41301
|
}
|
|
41189
41302
|
// pan the map if the screen goes off the range
|
|
41190
|
-
if (
|
|
41191
|
-
|
|
41303
|
+
if (modifiedX !== undefined || modifiedY !== undefined) {
|
|
41304
|
+
const newPoint = new performance$1.Point(modifiedX !== null && modifiedX !== void 0 ? modifiedX : originalX, modifiedY !== null && modifiedY !== void 0 ? modifiedY : originalY);
|
|
41305
|
+
result.center = this.unproject.call({ worldSize }, newPoint).wrap();
|
|
41192
41306
|
}
|
|
41307
|
+
return result;
|
|
41308
|
+
}
|
|
41309
|
+
_constrain() {
|
|
41310
|
+
if (!this.center || !this.width || !this.height || this._constraining)
|
|
41311
|
+
return;
|
|
41312
|
+
this._constraining = true;
|
|
41313
|
+
const unmodified = this._unmodified;
|
|
41314
|
+
const { center, zoom } = this.getConstrained(this.center, this.zoom);
|
|
41315
|
+
this.center = center;
|
|
41316
|
+
this.zoom = zoom;
|
|
41193
41317
|
this._unmodified = unmodified;
|
|
41194
41318
|
this._constraining = false;
|
|
41195
41319
|
}
|
|
@@ -44699,6 +44823,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
44699
44823
|
* @see [Navigate the map with game-like controls](https://maplibre.org/maplibre-gl-js/docs/examples/game-controls/)
|
|
44700
44824
|
*/
|
|
44701
44825
|
easeTo(options, eventData) {
|
|
44826
|
+
var _a;
|
|
44702
44827
|
this._stop(false, options.easeId);
|
|
44703
44828
|
options = performance$1.extend({
|
|
44704
44829
|
offset: [0, 0],
|
|
@@ -44707,11 +44832,11 @@ uniform ${precision} ${type} u_${name};
|
|
|
44707
44832
|
}, options);
|
|
44708
44833
|
if (options.animate === false || (!options.essential && browser.prefersReducedMotion))
|
|
44709
44834
|
options.duration = 0;
|
|
44710
|
-
const tr = this._getTransformForUpdate(), startZoom = this.getZoom(), startBearing = this.getBearing(), startPitch = this.getPitch(), startPadding = this.getPadding(),
|
|
44835
|
+
const tr = this._getTransformForUpdate(), startZoom = this.getZoom(), startBearing = this.getBearing(), startPitch = this.getPitch(), startPadding = this.getPadding(), bearing = 'bearing' in options ? this._normalizeBearing(options.bearing, startBearing) : startBearing, pitch = 'pitch' in options ? +options.pitch : startPitch, padding = 'padding' in options ? options.padding : tr.padding;
|
|
44711
44836
|
const offsetAsPoint = performance$1.Point.convert(options.offset);
|
|
44712
44837
|
let pointAtOffset = tr.centerPoint.add(offsetAsPoint);
|
|
44713
44838
|
const locationAtOffset = tr.pointLocation(pointAtOffset);
|
|
44714
|
-
const center = performance$1.LngLat.convert(options.center || locationAtOffset);
|
|
44839
|
+
const { center, zoom } = tr.getConstrained(performance$1.LngLat.convert(options.center || locationAtOffset), (_a = options.zoom) !== null && _a !== void 0 ? _a : startZoom);
|
|
44715
44840
|
this._normalizeCenter(center);
|
|
44716
44841
|
const from = tr.project(locationAtOffset);
|
|
44717
44842
|
const delta = tr.project(center).sub(from);
|
|
@@ -44927,6 +45052,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
44927
45052
|
* @see [Fly to a location based on scroll position](https://maplibre.org/maplibre-gl-js/docs/examples/scroll-fly-to/)
|
|
44928
45053
|
*/
|
|
44929
45054
|
flyTo(options, eventData) {
|
|
45055
|
+
var _a;
|
|
44930
45056
|
// Fall through to jumpTo if user has set prefers-reduced-motion
|
|
44931
45057
|
if (!options.essential && browser.prefersReducedMotion) {
|
|
44932
45058
|
const coercedOptions = performance$1.pick(options, ['center', 'zoom', 'bearing', 'pitch', 'around']);
|
|
@@ -44947,16 +45073,15 @@ uniform ${precision} ${type} u_${name};
|
|
|
44947
45073
|
easing: performance$1.defaultEasing
|
|
44948
45074
|
}, options);
|
|
44949
45075
|
const tr = this._getTransformForUpdate(), startZoom = this.getZoom(), startBearing = this.getBearing(), startPitch = this.getPitch(), startPadding = this.getPadding();
|
|
44950
|
-
const zoom = 'zoom' in options ? performance$1.clamp(+options.zoom, tr.minZoom, tr.maxZoom) : startZoom;
|
|
44951
45076
|
const bearing = 'bearing' in options ? this._normalizeBearing(options.bearing, startBearing) : startBearing;
|
|
44952
45077
|
const pitch = 'pitch' in options ? +options.pitch : startPitch;
|
|
44953
45078
|
const padding = 'padding' in options ? options.padding : tr.padding;
|
|
44954
|
-
const scale = tr.zoomScale(zoom - startZoom);
|
|
44955
45079
|
const offsetAsPoint = performance$1.Point.convert(options.offset);
|
|
44956
45080
|
let pointAtOffset = tr.centerPoint.add(offsetAsPoint);
|
|
44957
45081
|
const locationAtOffset = tr.pointLocation(pointAtOffset);
|
|
44958
|
-
const center = performance$1.LngLat.convert(options.center || locationAtOffset);
|
|
45082
|
+
const { center, zoom } = tr.getConstrained(performance$1.LngLat.convert(options.center || locationAtOffset), (_a = options.zoom) !== null && _a !== void 0 ? _a : startZoom);
|
|
44959
45083
|
this._normalizeCenter(center);
|
|
45084
|
+
const scale = tr.zoomScale(zoom - startZoom);
|
|
44960
45085
|
const from = tr.project(locationAtOffset);
|
|
44961
45086
|
const delta = tr.project(center).sub(from);
|
|
44962
45087
|
let rho = options.curve;
|
|
@@ -45126,21 +45251,19 @@ uniform ${precision} ${type} u_${name};
|
|
|
45126
45251
|
delta < -180 ? 360 : 0;
|
|
45127
45252
|
}
|
|
45128
45253
|
/**
|
|
45129
|
-
*
|
|
45254
|
+
* Get the elevation difference between a given point
|
|
45255
|
+
* and a point that is currently in the middle of the screen.
|
|
45256
|
+
* This method should be used for proper positioning of custom 3d objects, as explained [here](https://maplibre.org/maplibre-gl-js/docs/examples/add-3d-model-with-terrain/)
|
|
45257
|
+
* Returns null if terrain is not enabled.
|
|
45258
|
+
* This method is subject to change in Maplibre GL JS v5.
|
|
45130
45259
|
* @param lngLatLike - [x,y] or LngLat coordinates of the location
|
|
45131
|
-
* @returns elevation in meters
|
|
45260
|
+
* @returns elevation offset in meters
|
|
45132
45261
|
*/
|
|
45133
45262
|
queryTerrainElevation(lngLatLike) {
|
|
45134
45263
|
if (!this.terrain) {
|
|
45135
45264
|
return null;
|
|
45136
45265
|
}
|
|
45137
45266
|
const elevation = this.terrain.getElevationForLngLatZoom(performance$1.LngLat.convert(lngLatLike), this.transform.tileZoom);
|
|
45138
|
-
/**
|
|
45139
|
-
* Different zoomlevels with different terrain-tiles the elevation-values are not the same.
|
|
45140
|
-
* map.transform.elevation variable with the center-altitude.
|
|
45141
|
-
* In maplibre the proj-matrix is translated by this value in negative z-direction.
|
|
45142
|
-
* So we need to add this value to the elevation to get the correct value.
|
|
45143
|
-
*/
|
|
45144
45267
|
return elevation - this.transform.elevation;
|
|
45145
45268
|
}
|
|
45146
45269
|
}
|
|
@@ -45787,11 +45910,16 @@ uniform ${precision} ${type} u_${name};
|
|
|
45787
45910
|
* @returns mercator coordinate for a screen pixel
|
|
45788
45911
|
*/
|
|
45789
45912
|
pointCoordinate(p) {
|
|
45913
|
+
// First, ensure the coords framebuffer is up to date.
|
|
45914
|
+
this.painter.maybeDrawDepthAndCoords(true);
|
|
45790
45915
|
const rgba = new Uint8Array(4);
|
|
45791
45916
|
const context = this.painter.context, gl = context.gl;
|
|
45917
|
+
const px = Math.round(p.x * this.painter.pixelRatio / devicePixelRatio);
|
|
45918
|
+
const py = Math.round(p.y * this.painter.pixelRatio / devicePixelRatio);
|
|
45919
|
+
const fbHeight = Math.round(this.painter.height / devicePixelRatio);
|
|
45792
45920
|
// grab coordinate pixel from coordinates framebuffer
|
|
45793
45921
|
context.bindFramebuffer.set(this.getFramebuffer('coords').framebuffer);
|
|
45794
|
-
gl.readPixels(
|
|
45922
|
+
gl.readPixels(px, fbHeight - py - 1, 1, 1, gl.RGBA, gl.UNSIGNED_BYTE, rgba);
|
|
45795
45923
|
context.bindFramebuffer.set(null);
|
|
45796
45924
|
// decode coordinates (encoding see getCoordsTexture)
|
|
45797
45925
|
const x = rgba[0] + ((rgba[2] >> 4) << 8);
|
|
@@ -47210,7 +47338,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
47210
47338
|
_diffStyle(style, options) {
|
|
47211
47339
|
if (typeof style === 'string') {
|
|
47212
47340
|
const url = style;
|
|
47213
|
-
const request = this._requestManager.transformRequest(url, ResourceType.Style);
|
|
47341
|
+
const request = this._requestManager.transformRequest(url, "Style" /* ResourceType.Style */);
|
|
47214
47342
|
performance$1.getJSON(request, new AbortController()).then((response) => {
|
|
47215
47343
|
this._updateDiff(response.data, options);
|
|
47216
47344
|
}).catch((error) => {
|
|
@@ -47654,7 +47782,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
47654
47782
|
* @see [Add an icon to the map](https://maplibre.org/maplibre-gl-js/docs/examples/add-image/)
|
|
47655
47783
|
*/
|
|
47656
47784
|
loadImage(url) {
|
|
47657
|
-
return ImageRequest.getImage(this._requestManager.transformRequest(url, ResourceType.Image), new AbortController());
|
|
47785
|
+
return ImageRequest.getImage(this._requestManager.transformRequest(url, "Image" /* ResourceType.Image */), new AbortController());
|
|
47658
47786
|
}
|
|
47659
47787
|
/**
|
|
47660
47788
|
* Returns an Array of strings containing the IDs of all images currently available in the map.
|
|
@@ -48881,8 +49009,8 @@ uniform ${precision} ${type} u_${name};
|
|
|
48881
49009
|
}
|
|
48882
49010
|
|
|
48883
49011
|
let supportsGeolocation;
|
|
48884
|
-
function checkGeolocationSupport(
|
|
48885
|
-
return performance$1.__awaiter(this,
|
|
49012
|
+
function checkGeolocationSupport() {
|
|
49013
|
+
return performance$1.__awaiter(this, arguments, void 0, function* (forceRecalculation = false) {
|
|
48886
49014
|
if (supportsGeolocation !== undefined && !forceRecalculation) {
|
|
48887
49015
|
return supportsGeolocation;
|
|
48888
49016
|
}
|
|
@@ -49032,6 +49160,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
49032
49160
|
}
|
|
49033
49161
|
};
|
|
49034
49162
|
this._update = (e) => {
|
|
49163
|
+
var _a;
|
|
49035
49164
|
if (!this._map)
|
|
49036
49165
|
return;
|
|
49037
49166
|
const isFullyLoaded = this._map.loaded() && !this._map.isMoving();
|
|
@@ -49041,6 +49170,9 @@ uniform ${precision} ${type} u_${name};
|
|
|
49041
49170
|
if (this._map.transform.renderWorldCopies) {
|
|
49042
49171
|
this._lngLat = smartWrap(this._lngLat, this._flatPos, this._map.transform);
|
|
49043
49172
|
}
|
|
49173
|
+
else {
|
|
49174
|
+
this._lngLat = (_a = this._lngLat) === null || _a === void 0 ? void 0 : _a.wrap();
|
|
49175
|
+
}
|
|
49044
49176
|
this._flatPos = this._pos = this._map.project(this._lngLat)._add(this._offset);
|
|
49045
49177
|
if (this._map.terrain) {
|
|
49046
49178
|
// flat position is saved because smartWrap needs non-elevated points
|
|
@@ -49429,6 +49561,8 @@ uniform ${precision} ${type} u_${name};
|
|
|
49429
49561
|
*/
|
|
49430
49562
|
togglePopup() {
|
|
49431
49563
|
const popup = this._popup;
|
|
49564
|
+
if (this._element.style.opacity === this._opacityWhenCovered)
|
|
49565
|
+
return this;
|
|
49432
49566
|
if (!popup)
|
|
49433
49567
|
return this;
|
|
49434
49568
|
else if (popup.isOpen())
|
|
@@ -49440,7 +49574,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
49440
49574
|
return this;
|
|
49441
49575
|
}
|
|
49442
49576
|
_updateOpacity(force = false) {
|
|
49443
|
-
var _a;
|
|
49577
|
+
var _a, _b;
|
|
49444
49578
|
const terrain = (_a = this._map) === null || _a === void 0 ? void 0 : _a.terrain;
|
|
49445
49579
|
if (!terrain) {
|
|
49446
49580
|
if (this._element.style.opacity !== this._opacity) {
|
|
@@ -49477,6 +49611,8 @@ uniform ${precision} ${type} u_${name};
|
|
|
49477
49611
|
const markerDistanceCenter = map.transform.lngLatToCameraDepth(this._lngLat, elevation + elevationToCenter);
|
|
49478
49612
|
// Display at full opacity if center is visible.
|
|
49479
49613
|
const centerIsInvisible = markerDistanceCenter - terrainDistanceCenter > forgiveness;
|
|
49614
|
+
if (((_b = this._popup) === null || _b === void 0 ? void 0 : _b.isOpen()) && centerIsInvisible)
|
|
49615
|
+
this._popup.remove();
|
|
49480
49616
|
this._element.style.opacity = centerIsInvisible ? this._opacityWhenCovered : this._opacity;
|
|
49481
49617
|
}
|
|
49482
49618
|
/**
|
|
@@ -50320,10 +50456,14 @@ uniform ${precision} ${type} u_${name};
|
|
|
50320
50456
|
constructor(options = {}) {
|
|
50321
50457
|
super();
|
|
50322
50458
|
this._onFullscreenChange = () => {
|
|
50323
|
-
|
|
50459
|
+
var _a;
|
|
50460
|
+
let fullscreenElement = window.document.fullscreenElement ||
|
|
50324
50461
|
window.document.mozFullScreenElement ||
|
|
50325
50462
|
window.document.webkitFullscreenElement ||
|
|
50326
50463
|
window.document.msFullscreenElement;
|
|
50464
|
+
while ((_a = fullscreenElement === null || fullscreenElement === void 0 ? void 0 : fullscreenElement.shadowRoot) === null || _a === void 0 ? void 0 : _a.fullscreenElement) {
|
|
50465
|
+
fullscreenElement = fullscreenElement.shadowRoot.fullscreenElement;
|
|
50466
|
+
}
|
|
50327
50467
|
if ((fullscreenElement === this._container) !== this._fullscreen) {
|
|
50328
50468
|
this._handleFullscreenChange();
|
|
50329
50469
|
}
|
|
@@ -50513,7 +50653,8 @@ uniform ${precision} ${type} u_${name};
|
|
|
50513
50653
|
closeOnClick: true,
|
|
50514
50654
|
focusAfterOpen: true,
|
|
50515
50655
|
className: '',
|
|
50516
|
-
maxWidth: '240px'
|
|
50656
|
+
maxWidth: '240px',
|
|
50657
|
+
subpixelPositioning: false
|
|
50517
50658
|
};
|
|
50518
50659
|
const focusQuerySelector = [
|
|
50519
50660
|
'a[href]',
|
|
@@ -50613,8 +50754,8 @@ uniform ${precision} ${type} u_${name};
|
|
|
50613
50754
|
this._map.off('drag', this._onDrag);
|
|
50614
50755
|
this._map._canvasContainer.classList.remove('maplibregl-track-pointer');
|
|
50615
50756
|
delete this._map;
|
|
50757
|
+
this.fire(new performance$1.Event('close'));
|
|
50616
50758
|
}
|
|
50617
|
-
this.fire(new performance$1.Event('close'));
|
|
50618
50759
|
return this;
|
|
50619
50760
|
};
|
|
50620
50761
|
this._onMouseUp = (event) => {
|
|
@@ -50627,6 +50768,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
50627
50768
|
this._update(event.point);
|
|
50628
50769
|
};
|
|
50629
50770
|
this._update = (cursor) => {
|
|
50771
|
+
var _a;
|
|
50630
50772
|
const hasPosition = this._lngLat || this._trackPointer;
|
|
50631
50773
|
if (!this._map || !hasPosition || !this._content) {
|
|
50632
50774
|
return;
|
|
@@ -50650,6 +50792,9 @@ uniform ${precision} ${type} u_${name};
|
|
|
50650
50792
|
if (this._map.transform.renderWorldCopies && !this._trackPointer) {
|
|
50651
50793
|
this._lngLat = smartWrap(this._lngLat, this._flatPos, this._map.transform);
|
|
50652
50794
|
}
|
|
50795
|
+
else {
|
|
50796
|
+
this._lngLat = (_a = this._lngLat) === null || _a === void 0 ? void 0 : _a.wrap();
|
|
50797
|
+
}
|
|
50653
50798
|
if (this._trackPointer && !cursor)
|
|
50654
50799
|
return;
|
|
50655
50800
|
const pos = this._flatPos = this._pos = this._trackPointer && cursor ? cursor : this._map.project(this._lngLat);
|
|
@@ -50685,7 +50830,10 @@ uniform ${precision} ${type} u_${name};
|
|
|
50685
50830
|
anchor = anchorComponents.join('-');
|
|
50686
50831
|
}
|
|
50687
50832
|
}
|
|
50688
|
-
|
|
50833
|
+
let offsetedPos = pos.add(offset[anchor]);
|
|
50834
|
+
if (!this.options.subpixelPositioning) {
|
|
50835
|
+
offsetedPos = offsetedPos.round();
|
|
50836
|
+
}
|
|
50689
50837
|
DOM.setTransform(this._container, `${anchorTranslate[anchor]} translate(${offsetedPos.x}px,${offsetedPos.y}px)`);
|
|
50690
50838
|
applyAnchorClass(this._container, anchor, 'popup');
|
|
50691
50839
|
};
|
|
@@ -50994,6 +51142,20 @@ uniform ${precision} ${type} u_${name};
|
|
|
50994
51142
|
return this._container.classList.toggle(className);
|
|
50995
51143
|
}
|
|
50996
51144
|
}
|
|
51145
|
+
/**
|
|
51146
|
+
* Set the option to allow subpixel positioning of the popup by passing a boolean
|
|
51147
|
+
*
|
|
51148
|
+
* @param value - When boolean is true, subpixel positioning is enabled for the popup.
|
|
51149
|
+
*
|
|
51150
|
+
* @example
|
|
51151
|
+
* ```ts
|
|
51152
|
+
* let popup = new Popup()
|
|
51153
|
+
* popup.setSubpixelPositioning(true);
|
|
51154
|
+
* ```
|
|
51155
|
+
*/
|
|
51156
|
+
setSubpixelPositioning(value) {
|
|
51157
|
+
this.options.subpixelPositioning = value;
|
|
51158
|
+
}
|
|
50997
51159
|
_createCloseButton() {
|
|
50998
51160
|
if (this.options.closeButton) {
|
|
50999
51161
|
this._closeButton = DOM.create('button', 'maplibregl-popup-close-button', this._content);
|
|
@@ -51075,7 +51237,9 @@ uniform ${precision} ${type} u_${name};
|
|
|
51075
51237
|
* ```
|
|
51076
51238
|
* @see [Add support for right-to-left scripts](https://maplibre.org/maplibre-gl-js/docs/examples/mapbox-gl-rtl-text/)
|
|
51077
51239
|
*/
|
|
51078
|
-
function setRTLTextPlugin(pluginURL, lazy) {
|
|
51240
|
+
function setRTLTextPlugin(pluginURL, lazy) {
|
|
51241
|
+
return rtlMainThreadPluginFactory().setRTLTextPlugin(pluginURL, lazy);
|
|
51242
|
+
}
|
|
51079
51243
|
/**
|
|
51080
51244
|
* Gets the map's [RTL text plugin](https://www.mapbox.com/mapbox-gl-js/plugins/#mapbox-gl-rtl-text) status.
|
|
51081
51245
|
* The status can be `unavailable` (i.e. not requested or removed), `loading`, `loaded` or `error`.
|
|
@@ -51086,7 +51250,9 @@ uniform ${precision} ${type} u_${name};
|
|
|
51086
51250
|
* const pluginStatus = getRTLTextPluginStatus();
|
|
51087
51251
|
* ```
|
|
51088
51252
|
*/
|
|
51089
|
-
function getRTLTextPluginStatus() {
|
|
51253
|
+
function getRTLTextPluginStatus() {
|
|
51254
|
+
return rtlMainThreadPluginFactory().getRTLTextPluginStatus();
|
|
51255
|
+
}
|
|
51090
51256
|
/**
|
|
51091
51257
|
* Returns the package version of the library
|
|
51092
51258
|
* @returns Package version of the library
|
|
@@ -51176,7 +51342,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
51176
51342
|
* importScriptInWorkers('add-protocol-worker.js');
|
|
51177
51343
|
* ```
|
|
51178
51344
|
*/
|
|
51179
|
-
function importScriptInWorkers(workerUrl) { return getGlobalDispatcher().broadcast(
|
|
51345
|
+
function importScriptInWorkers(workerUrl) { return getGlobalDispatcher().broadcast("IS" /* MessageType.importScript */, workerUrl); }
|
|
51180
51346
|
|
|
51181
51347
|
exports.AJAXError = performance$1.AJAXError;
|
|
51182
51348
|
exports.Evented = performance$1.Evented;
|
|
@@ -51489,7 +51655,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
51489
51655
|
return Options;
|
|
51490
51656
|
}());
|
|
51491
51657
|
|
|
51492
|
-
var __extends$
|
|
51658
|
+
var __extends$1i = (window && window.__extends) || (function () {
|
|
51493
51659
|
var extendStatics = function (d, b) {
|
|
51494
51660
|
extendStatics = Object.setPrototypeOf ||
|
|
51495
51661
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -51524,7 +51690,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
51524
51690
|
* @private
|
|
51525
51691
|
*/
|
|
51526
51692
|
var UrlOptions = /** @class */ (function (_super) {
|
|
51527
|
-
__extends$
|
|
51693
|
+
__extends$1i(UrlOptions, _super);
|
|
51528
51694
|
function UrlOptions() {
|
|
51529
51695
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
51530
51696
|
_this.domain = undefined;
|
|
@@ -52051,7 +52217,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
52051
52217
|
return UserAgent;
|
|
52052
52218
|
}());
|
|
52053
52219
|
|
|
52054
|
-
var version = "3.
|
|
52220
|
+
var version = "3.3.0";
|
|
52055
52221
|
|
|
52056
52222
|
/**
|
|
52057
52223
|
* A helper class that provides methods for getting various forms of the map controls current version.
|
|
@@ -52083,7 +52249,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
52083
52249
|
return Version;
|
|
52084
52250
|
}());
|
|
52085
52251
|
|
|
52086
|
-
var __extends$
|
|
52252
|
+
var __extends$1h = (window && window.__extends) || (function () {
|
|
52087
52253
|
var extendStatics = function (d, b) {
|
|
52088
52254
|
extendStatics = Object.setPrototypeOf ||
|
|
52089
52255
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -52157,7 +52323,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
52157
52323
|
* Options for specifying how the map control should authenticate with the Azure Maps services.
|
|
52158
52324
|
*/
|
|
52159
52325
|
var AuthenticationOptions = /** @class */ (function (_super) {
|
|
52160
|
-
__extends$
|
|
52326
|
+
__extends$1h(AuthenticationOptions, _super);
|
|
52161
52327
|
function AuthenticationOptions() {
|
|
52162
52328
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
52163
52329
|
/**
|
|
@@ -52998,7 +53164,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
52998
53164
|
eventTarget.addEventListener("keydown", dismissTooltip);
|
|
52999
53165
|
};
|
|
53000
53166
|
|
|
53001
|
-
var __extends$
|
|
53167
|
+
var __extends$1g = (window && window.__extends) || (function () {
|
|
53002
53168
|
var extendStatics = function (d, b) {
|
|
53003
53169
|
extendStatics = Object.setPrototypeOf ||
|
|
53004
53170
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -53048,7 +53214,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53048
53214
|
* The options for adding a control to the map.
|
|
53049
53215
|
*/
|
|
53050
53216
|
var ControlOptions = /** @class */ (function (_super) {
|
|
53051
|
-
__extends$
|
|
53217
|
+
__extends$1g(ControlOptions, _super);
|
|
53052
53218
|
function ControlOptions() {
|
|
53053
53219
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
53054
53220
|
/**
|
|
@@ -53192,7 +53358,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53192
53358
|
EventEmitter: EventEmitter
|
|
53193
53359
|
});
|
|
53194
53360
|
|
|
53195
|
-
var __extends$
|
|
53361
|
+
var __extends$1f = (window && window.__extends) || (function () {
|
|
53196
53362
|
var extendStatics = function (d, b) {
|
|
53197
53363
|
extendStatics = Object.setPrototypeOf ||
|
|
53198
53364
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -53212,7 +53378,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53212
53378
|
* Implements control interface and provides support for automatic styling based on the map style.
|
|
53213
53379
|
*/
|
|
53214
53380
|
var ControlBase = /** @class */ (function (_super) {
|
|
53215
|
-
__extends$
|
|
53381
|
+
__extends$1f(ControlBase, _super);
|
|
53216
53382
|
function ControlBase() {
|
|
53217
53383
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
53218
53384
|
/**
|
|
@@ -53314,7 +53480,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53314
53480
|
return ControlBase;
|
|
53315
53481
|
}(EventEmitter));
|
|
53316
53482
|
|
|
53317
|
-
var __extends$
|
|
53483
|
+
var __extends$1e = (window && window.__extends) || (function () {
|
|
53318
53484
|
var extendStatics = function (d, b) {
|
|
53319
53485
|
extendStatics = Object.setPrototypeOf ||
|
|
53320
53486
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -53333,7 +53499,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53333
53499
|
* The options for a CompassControl object.
|
|
53334
53500
|
*/
|
|
53335
53501
|
var CompassControlOptions = /** @class */ (function (_super) {
|
|
53336
|
-
__extends$
|
|
53502
|
+
__extends$1e(CompassControlOptions, _super);
|
|
53337
53503
|
function CompassControlOptions() {
|
|
53338
53504
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
53339
53505
|
/**
|
|
@@ -53358,7 +53524,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53358
53524
|
return CompassControlOptions;
|
|
53359
53525
|
}(Options));
|
|
53360
53526
|
|
|
53361
|
-
var __extends$
|
|
53527
|
+
var __extends$1d = (window && window.__extends) || (function () {
|
|
53362
53528
|
var extendStatics = function (d, b) {
|
|
53363
53529
|
extendStatics = Object.setPrototypeOf ||
|
|
53364
53530
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -53377,7 +53543,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53377
53543
|
* A control for changing the rotation of the map.
|
|
53378
53544
|
*/
|
|
53379
53545
|
var CompassControl = /** @class */ (function (_super) {
|
|
53380
|
-
__extends$
|
|
53546
|
+
__extends$1d(CompassControl, _super);
|
|
53381
53547
|
/**
|
|
53382
53548
|
* Constructs a CompassControl.
|
|
53383
53549
|
* @param options The options for the control.
|
|
@@ -53476,6 +53642,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53476
53642
|
var grid = document.createElement("div");
|
|
53477
53643
|
grid.classList.add("sub-container");
|
|
53478
53644
|
grid.classList.add("hidden-accessible-element");
|
|
53645
|
+
grid.setAttribute("aria-hidden", "true");
|
|
53479
53646
|
var rotationRightButton = this.constructRightRotationButton(map);
|
|
53480
53647
|
var rotationLeftButton = this.constructLeftRotationButton(map);
|
|
53481
53648
|
var tooltipLeft = buildAccessibleTooltip("Rotate Left");
|
|
@@ -53561,7 +53728,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53561
53728
|
return CompassControl;
|
|
53562
53729
|
}(ControlBase));
|
|
53563
53730
|
|
|
53564
|
-
var __extends$
|
|
53731
|
+
var __extends$1c = (window && window.__extends) || (function () {
|
|
53565
53732
|
var extendStatics = function (d, b) {
|
|
53566
53733
|
extendStatics = Object.setPrototypeOf ||
|
|
53567
53734
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -53580,7 +53747,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53580
53747
|
* The options for a PitchControl object.
|
|
53581
53748
|
*/
|
|
53582
53749
|
var PitchControlOptions = /** @class */ (function (_super) {
|
|
53583
|
-
__extends$
|
|
53750
|
+
__extends$1c(PitchControlOptions, _super);
|
|
53584
53751
|
function PitchControlOptions() {
|
|
53585
53752
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
53586
53753
|
/**
|
|
@@ -53605,7 +53772,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53605
53772
|
return PitchControlOptions;
|
|
53606
53773
|
}(Options));
|
|
53607
53774
|
|
|
53608
|
-
var __extends$
|
|
53775
|
+
var __extends$1b = (window && window.__extends) || (function () {
|
|
53609
53776
|
var extendStatics = function (d, b) {
|
|
53610
53777
|
extendStatics = Object.setPrototypeOf ||
|
|
53611
53778
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -53624,7 +53791,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53624
53791
|
* A control for changing the pitch of the map.
|
|
53625
53792
|
*/
|
|
53626
53793
|
var PitchControl = /** @class */ (function (_super) {
|
|
53627
|
-
__extends$
|
|
53794
|
+
__extends$1b(PitchControl, _super);
|
|
53628
53795
|
/**
|
|
53629
53796
|
* Constructs a PitchControl.
|
|
53630
53797
|
* @param options The options for the control.
|
|
@@ -53771,6 +53938,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53771
53938
|
var grid = document.createElement("div");
|
|
53772
53939
|
grid.classList.add("sub-container");
|
|
53773
53940
|
grid.classList.add("hidden-accessible-element");
|
|
53941
|
+
grid.setAttribute("aria-hidden", "true");
|
|
53774
53942
|
this.pitchIncrementButton = this.constructPitchIncrementButton(map);
|
|
53775
53943
|
this.pitchDecrementButton = this.constructPitchDecrementButton(map);
|
|
53776
53944
|
var tooltipIncrement = buildAccessibleTooltip("Increase Pitch");
|
|
@@ -53851,7 +54019,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53851
54019
|
return PitchControl;
|
|
53852
54020
|
}(ControlBase));
|
|
53853
54021
|
|
|
53854
|
-
var __extends$
|
|
54022
|
+
var __extends$1a = (window && window.__extends) || (function () {
|
|
53855
54023
|
var extendStatics = function (d, b) {
|
|
53856
54024
|
extendStatics = Object.setPrototypeOf ||
|
|
53857
54025
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -53870,7 +54038,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53870
54038
|
* A control to display a scale bar on the map.
|
|
53871
54039
|
*/
|
|
53872
54040
|
var ScaleControl = /** @class */ (function (_super) {
|
|
53873
|
-
__extends$
|
|
54041
|
+
__extends$1a(ScaleControl, _super);
|
|
53874
54042
|
/**
|
|
53875
54043
|
* A control to displays a scale bar relative to the pixel resolution at the center of the map.
|
|
53876
54044
|
* @param options Options for defining how the control is rendered and functions.
|
|
@@ -57388,7 +57556,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
57388
57556
|
|
|
57389
57557
|
var merge$1 = /*@__PURE__*/getDefaultExportFromCjs(merge_1);
|
|
57390
57558
|
|
|
57391
|
-
var __extends$
|
|
57559
|
+
var __extends$19 = (window && window.__extends) || (function () {
|
|
57392
57560
|
var extendStatics = function (d, b) {
|
|
57393
57561
|
extendStatics = Object.setPrototypeOf ||
|
|
57394
57562
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -57407,13 +57575,13 @@ uniform ${precision} ${type} u_${name};
|
|
|
57407
57575
|
* The options for a StyleControl object.
|
|
57408
57576
|
*/
|
|
57409
57577
|
var StyleControlOptions = /** @class */ (function (_super) {
|
|
57410
|
-
__extends$
|
|
57578
|
+
__extends$19(StyleControlOptions, _super);
|
|
57411
57579
|
function StyleControlOptions() {
|
|
57412
57580
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
57413
57581
|
/**
|
|
57414
|
-
* The layout to display the styles in
|
|
57415
|
-
*
|
|
57416
|
-
*
|
|
57582
|
+
* The layout to display the styles in.<br />
|
|
57583
|
+
* `"icons"`: A row of clickable icons for each style.<br />
|
|
57584
|
+
* `"list"`: A scrollable list with the icons and names for each style.<br />
|
|
57417
57585
|
* Default `"icons"`
|
|
57418
57586
|
* @default "icons"
|
|
57419
57587
|
*/
|
|
@@ -57452,7 +57620,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
57452
57620
|
return StyleControlOptions;
|
|
57453
57621
|
}(Options));
|
|
57454
57622
|
|
|
57455
|
-
var __extends$
|
|
57623
|
+
var __extends$18 = (window && window.__extends) || (function () {
|
|
57456
57624
|
var extendStatics = function (d, b) {
|
|
57457
57625
|
extendStatics = Object.setPrototypeOf ||
|
|
57458
57626
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -57523,7 +57691,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
57523
57691
|
* A control for changing the style of the map.
|
|
57524
57692
|
*/
|
|
57525
57693
|
var StyleControl = /** @class */ (function (_super) {
|
|
57526
|
-
__extends$
|
|
57694
|
+
__extends$18(StyleControl, _super);
|
|
57527
57695
|
/**
|
|
57528
57696
|
* Constructs a StyleControl.
|
|
57529
57697
|
* @param options The options for the control.
|
|
@@ -57818,6 +57986,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
57818
57986
|
}
|
|
57819
57987
|
styleOpsGrid.setAttribute("aria-label", "Style Options");
|
|
57820
57988
|
styleOpsGrid.classList.add("hidden-accessible-element");
|
|
57989
|
+
styleOpsGrid.setAttribute("aria-hidden", "true");
|
|
57821
57990
|
// Once the map's style definition is initialized create a map between style names and icons.
|
|
57822
57991
|
// If a style is one of those to be shown by the style picker also create it's element.
|
|
57823
57992
|
this.map.styles.definitions().then(function (definitions) { return __awaiter$3(_this, void 0, void 0, function () {
|
|
@@ -57887,7 +58056,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
57887
58056
|
return StyleControl;
|
|
57888
58057
|
}(ControlBase));
|
|
57889
58058
|
|
|
57890
|
-
var __extends$
|
|
58059
|
+
var __extends$17 = (window && window.__extends) || (function () {
|
|
57891
58060
|
var extendStatics = function (d, b) {
|
|
57892
58061
|
extendStatics = Object.setPrototypeOf ||
|
|
57893
58062
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -57906,17 +58075,17 @@ uniform ${precision} ${type} u_${name};
|
|
|
57906
58075
|
* The options for setting traffic on the map.
|
|
57907
58076
|
*/
|
|
57908
58077
|
var TrafficOptions = /** @class */ (function (_super) {
|
|
57909
|
-
__extends$
|
|
58078
|
+
__extends$17(TrafficOptions, _super);
|
|
57910
58079
|
function TrafficOptions() {
|
|
57911
58080
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
57912
58081
|
/**
|
|
57913
|
-
* The type of traffic flow to display
|
|
57914
|
-
*
|
|
57915
|
-
*
|
|
57916
|
-
*
|
|
57917
|
-
*
|
|
57918
|
-
* false to stop displaying the traffic flow
|
|
57919
|
-
* default `"none"
|
|
58082
|
+
* The type of traffic flow to display:<br />
|
|
58083
|
+
* `"none"` is to display no traffic flow data<br />
|
|
58084
|
+
* `"relative"` is the speed of the road relative to free-flow<br />
|
|
58085
|
+
* @deprecated `"absolute"` is the absolute speed of the road<br />
|
|
58086
|
+
* @deprecated `"relative-delay"` displays relative speed only where they differ from free-flow;
|
|
58087
|
+
* false to stop displaying the traffic flow.<br />
|
|
58088
|
+
* default `"none"`
|
|
57920
58089
|
* @default "none"
|
|
57921
58090
|
*/
|
|
57922
58091
|
_this.flow = "none";
|
|
@@ -57931,7 +58100,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
57931
58100
|
return TrafficOptions;
|
|
57932
58101
|
}(Options));
|
|
57933
58102
|
|
|
57934
|
-
var __extends$
|
|
58103
|
+
var __extends$16 = (window && window.__extends) || (function () {
|
|
57935
58104
|
var extendStatics = function (d, b) {
|
|
57936
58105
|
extendStatics = Object.setPrototypeOf ||
|
|
57937
58106
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -57950,7 +58119,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
57950
58119
|
* The options for a TrafficControl object.
|
|
57951
58120
|
*/
|
|
57952
58121
|
var TrafficControlOptions = /** @class */ (function (_super) {
|
|
57953
|
-
__extends$
|
|
58122
|
+
__extends$16(TrafficControlOptions, _super);
|
|
57954
58123
|
function TrafficControlOptions() {
|
|
57955
58124
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
57956
58125
|
/**
|
|
@@ -57970,7 +58139,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
57970
58139
|
return TrafficControlOptions;
|
|
57971
58140
|
}(TrafficOptions));
|
|
57972
58141
|
|
|
57973
|
-
var __extends$
|
|
58142
|
+
var __extends$15 = (window && window.__extends) || (function () {
|
|
57974
58143
|
var extendStatics = function (d, b) {
|
|
57975
58144
|
extendStatics = Object.setPrototypeOf ||
|
|
57976
58145
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -57989,7 +58158,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
57989
58158
|
* A control that toggles traffic data on the map.
|
|
57990
58159
|
*/
|
|
57991
58160
|
var TrafficControl = /** @class */ (function (_super) {
|
|
57992
|
-
__extends$
|
|
58161
|
+
__extends$15(TrafficControl, _super);
|
|
57993
58162
|
/**
|
|
57994
58163
|
* Constructs a TrafficControl
|
|
57995
58164
|
* @param options The options for the control.
|
|
@@ -58116,7 +58285,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
58116
58285
|
return TrafficControl;
|
|
58117
58286
|
}(ControlBase));
|
|
58118
58287
|
|
|
58119
|
-
var __extends$
|
|
58288
|
+
var __extends$14 = (window && window.__extends) || (function () {
|
|
58120
58289
|
var extendStatics = function (d, b) {
|
|
58121
58290
|
extendStatics = Object.setPrototypeOf ||
|
|
58122
58291
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -58146,7 +58315,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
58146
58315
|
* A control that display traffic legend on the map.
|
|
58147
58316
|
*/
|
|
58148
58317
|
var TrafficLegendControl = /** @class */ (function (_super) {
|
|
58149
|
-
__extends$
|
|
58318
|
+
__extends$14(TrafficLegendControl, _super);
|
|
58150
58319
|
/**
|
|
58151
58320
|
* Construct a traffic legend control
|
|
58152
58321
|
*/
|
|
@@ -58880,7 +59049,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
58880
59049
|
return Feature;
|
|
58881
59050
|
}());
|
|
58882
59051
|
|
|
58883
|
-
var __extends$
|
|
59052
|
+
var __extends$13 = (window && window.__extends) || (function () {
|
|
58884
59053
|
var extendStatics = function (d, b) {
|
|
58885
59054
|
extendStatics = Object.setPrototypeOf ||
|
|
58886
59055
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -58899,7 +59068,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
58899
59068
|
* Represent a pixel coordinate or offset. Extends an array of [x, y].
|
|
58900
59069
|
*/
|
|
58901
59070
|
var Pixel = /** @class */ (function (_super) {
|
|
58902
|
-
__extends$
|
|
59071
|
+
__extends$13(Pixel, _super);
|
|
58903
59072
|
/**
|
|
58904
59073
|
* Constructs a Pixel object and initializes it with the specified x and y coordinates.
|
|
58905
59074
|
* @param x The horizontal pixel offset.
|
|
@@ -61119,7 +61288,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
61119
61288
|
return result;
|
|
61120
61289
|
}
|
|
61121
61290
|
|
|
61122
|
-
var __extends$
|
|
61291
|
+
var __extends$12 = (window && window.__extends) || (function () {
|
|
61123
61292
|
var extendStatics = function (d, b) {
|
|
61124
61293
|
extendStatics = Object.setPrototypeOf ||
|
|
61125
61294
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -61139,7 +61308,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
61139
61308
|
* full description is detailed in [RFC 7946]{@link https://tools.ietf.org/html/rfc7946#section-3.1.1}.
|
|
61140
61309
|
*/
|
|
61141
61310
|
var Position = /** @class */ (function (_super) {
|
|
61142
|
-
__extends$
|
|
61311
|
+
__extends$12(Position, _super);
|
|
61143
61312
|
/**
|
|
61144
61313
|
* Constructs a Position.
|
|
61145
61314
|
* @param longitude The position's longitude.
|
|
@@ -61202,10 +61371,10 @@ uniform ${precision} ${type} u_${name};
|
|
|
61202
61371
|
Position.fromLatLng = function (y, x, z) {
|
|
61203
61372
|
var position = [];
|
|
61204
61373
|
if (typeof y === "number") {
|
|
61205
|
-
position.push(y);
|
|
61206
61374
|
if (typeof x === "number") {
|
|
61207
61375
|
position.push(x);
|
|
61208
61376
|
}
|
|
61377
|
+
position.push(y);
|
|
61209
61378
|
if (typeof z === "number") {
|
|
61210
61379
|
position.push(z);
|
|
61211
61380
|
}
|
|
@@ -61214,10 +61383,10 @@ uniform ${precision} ${type} u_${name};
|
|
|
61214
61383
|
// Assume array is in the form [lat, lng] or [lat, lng, elv]
|
|
61215
61384
|
if (y.length >= 2 && typeof y[0] === "number" && typeof y[1] === "number") {
|
|
61216
61385
|
if (y.length >= 3 && typeof y[2] === "number") {
|
|
61217
|
-
position.push(y[
|
|
61386
|
+
position.push(y[1], y[0], y[2]);
|
|
61218
61387
|
}
|
|
61219
61388
|
else {
|
|
61220
|
-
position.push(y[
|
|
61389
|
+
position.push(y[1], y[0]);
|
|
61221
61390
|
}
|
|
61222
61391
|
}
|
|
61223
61392
|
}
|
|
@@ -61331,7 +61500,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
61331
61500
|
return Polygon;
|
|
61332
61501
|
}());
|
|
61333
61502
|
|
|
61334
|
-
var __extends
|
|
61503
|
+
var __extends$11 = (window && window.__extends) || (function () {
|
|
61335
61504
|
var extendStatics = function (d, b) {
|
|
61336
61505
|
extendStatics = Object.setPrototypeOf ||
|
|
61337
61506
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -61361,7 +61530,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
61361
61530
|
* A helper class that wraps a Geometry or Feature and makes it easy to update and maintain.
|
|
61362
61531
|
*/
|
|
61363
61532
|
var Shape = /** @class */ (function (_super) {
|
|
61364
|
-
__extends
|
|
61533
|
+
__extends$11(Shape, _super);
|
|
61365
61534
|
function Shape(data, id, properties) {
|
|
61366
61535
|
var _this = _super.call(this) || this;
|
|
61367
61536
|
var geometry;
|
|
@@ -61657,7 +61826,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
61657
61826
|
return Shape;
|
|
61658
61827
|
}(EventEmitter));
|
|
61659
61828
|
|
|
61660
|
-
var __extends$
|
|
61829
|
+
var __extends$10 = (window && window.__extends) || (function () {
|
|
61661
61830
|
var extendStatics = function (d, b) {
|
|
61662
61831
|
extendStatics = Object.setPrototypeOf ||
|
|
61663
61832
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -61690,7 +61859,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
61690
61859
|
* [RFC 7946]{@link https://tools.ietf.org/html/rfc7946#section-5}.
|
|
61691
61860
|
*/
|
|
61692
61861
|
var BoundingBox = /** @class */ (function (_super) {
|
|
61693
|
-
__extends$
|
|
61862
|
+
__extends$10(BoundingBox, _super);
|
|
61694
61863
|
function BoundingBox(southwestPositionOrPositions, northeastPosition) {
|
|
61695
61864
|
var _this = this;
|
|
61696
61865
|
if (southwestPositionOrPositions && northeastPosition) {
|
|
@@ -62407,7 +62576,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
62407
62576
|
return MultiPolygon;
|
|
62408
62577
|
}());
|
|
62409
62578
|
|
|
62410
|
-
var __extends
|
|
62579
|
+
var __extends$$ = (window && window.__extends) || (function () {
|
|
62411
62580
|
var extendStatics = function (d, b) {
|
|
62412
62581
|
extendStatics = Object.setPrototypeOf ||
|
|
62413
62582
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -62438,7 +62607,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
62438
62607
|
* The `z` dimension of `MercatorPoint` is conformal. A cube in the mercator coordinate space would be rendered as a cube.
|
|
62439
62608
|
*/
|
|
62440
62609
|
var MercatorPoint = /** @class */ (function (_super) {
|
|
62441
|
-
__extends
|
|
62610
|
+
__extends$$(MercatorPoint, _super);
|
|
62442
62611
|
/**
|
|
62443
62612
|
* Constructs a MercatorPoint.
|
|
62444
62613
|
* @param x A points x position in mercator units.
|
|
@@ -62927,7 +63096,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
62927
63096
|
simplify: simplify
|
|
62928
63097
|
});
|
|
62929
63098
|
|
|
62930
|
-
var __extends$
|
|
63099
|
+
var __extends$_ = (window && window.__extends) || (function () {
|
|
62931
63100
|
var extendStatics = function (d, b) {
|
|
62932
63101
|
extendStatics = Object.setPrototypeOf ||
|
|
62933
63102
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -62946,7 +63115,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
62946
63115
|
* The options for a ZoomControl object.
|
|
62947
63116
|
*/
|
|
62948
63117
|
var ZoomControlOptions = /** @class */ (function (_super) {
|
|
62949
|
-
__extends$
|
|
63118
|
+
__extends$_(ZoomControlOptions, _super);
|
|
62950
63119
|
function ZoomControlOptions() {
|
|
62951
63120
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
62952
63121
|
/**
|
|
@@ -62966,7 +63135,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
62966
63135
|
return ZoomControlOptions;
|
|
62967
63136
|
}(Options));
|
|
62968
63137
|
|
|
62969
|
-
var __extends$
|
|
63138
|
+
var __extends$Z = (window && window.__extends) || (function () {
|
|
62970
63139
|
var extendStatics = function (d, b) {
|
|
62971
63140
|
extendStatics = Object.setPrototypeOf ||
|
|
62972
63141
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -62985,7 +63154,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
62985
63154
|
* A control for changing the zoom of the map.
|
|
62986
63155
|
*/
|
|
62987
63156
|
var ZoomControl = /** @class */ (function (_super) {
|
|
62988
|
-
__extends$
|
|
63157
|
+
__extends$Z(ZoomControl, _super);
|
|
62989
63158
|
/**
|
|
62990
63159
|
* Constructs a ZoomControl.
|
|
62991
63160
|
* @param options The options for the control.
|
|
@@ -63220,7 +63389,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
63220
63389
|
return AccessibleIndicator;
|
|
63221
63390
|
}());
|
|
63222
63391
|
|
|
63223
|
-
var __extends$
|
|
63392
|
+
var __extends$Y = (window && window.__extends) || (function () {
|
|
63224
63393
|
var extendStatics = function (d, b) {
|
|
63225
63394
|
extendStatics = Object.setPrototypeOf ||
|
|
63226
63395
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -63242,7 +63411,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
63242
63411
|
* @module Object Definitions
|
|
63243
63412
|
*/
|
|
63244
63413
|
var DataSourceOptions = /** @class */ (function (_super) {
|
|
63245
|
-
__extends$
|
|
63414
|
+
__extends$Y(DataSourceOptions, _super);
|
|
63246
63415
|
function DataSourceOptions() {
|
|
63247
63416
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
63248
63417
|
/*
|
|
@@ -63302,7 +63471,8 @@ uniform ${precision} ${type} u_${name};
|
|
|
63302
63471
|
*/
|
|
63303
63472
|
_this.generateId = false;
|
|
63304
63473
|
/**
|
|
63305
|
-
* A property to
|
|
63474
|
+
* A specified property name to be used as a feature ID (for feature state).
|
|
63475
|
+
* This can either be a property name or an object in the form `{<sourceLayer>: <propertyName>}`.
|
|
63306
63476
|
*/
|
|
63307
63477
|
_this.promoteId = undefined;
|
|
63308
63478
|
/**
|
|
@@ -63314,7 +63484,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
63314
63484
|
return DataSourceOptions;
|
|
63315
63485
|
}(Options));
|
|
63316
63486
|
|
|
63317
|
-
var __extends$
|
|
63487
|
+
var __extends$X = (window && window.__extends) || (function () {
|
|
63318
63488
|
var extendStatics = function (d, b) {
|
|
63319
63489
|
extendStatics = Object.setPrototypeOf ||
|
|
63320
63490
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -63334,7 +63504,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
63334
63504
|
* A source must be added to a layer before it is visible on the map.
|
|
63335
63505
|
*/
|
|
63336
63506
|
var Source = /** @class */ (function (_super) {
|
|
63337
|
-
__extends$
|
|
63507
|
+
__extends$X(Source, _super);
|
|
63338
63508
|
function Source(id) {
|
|
63339
63509
|
var _this = _super.call(this) || this;
|
|
63340
63510
|
_this.id = id || uuid();
|
|
@@ -63373,7 +63543,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
63373
63543
|
return Source;
|
|
63374
63544
|
}(EventEmitter));
|
|
63375
63545
|
|
|
63376
|
-
var __extends$
|
|
63546
|
+
var __extends$W = (window && window.__extends) || (function () {
|
|
63377
63547
|
var extendStatics = function (d, b) {
|
|
63378
63548
|
extendStatics = Object.setPrototypeOf ||
|
|
63379
63549
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -63405,7 +63575,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
63405
63575
|
* The DataSource class may be used with the SymbolLayer, LineLayer, PolygonLayer, BubbleLayer, and HeatMapLayer.
|
|
63406
63576
|
*/
|
|
63407
63577
|
var DataSource = /** @class */ (function (_super) {
|
|
63408
|
-
__extends$
|
|
63578
|
+
__extends$W(DataSource, _super);
|
|
63409
63579
|
/**
|
|
63410
63580
|
* A data source class that makes it easy to manage shapes data that will be displayed on the map.
|
|
63411
63581
|
* A data source must be added to a layer before it is visible on the map.
|
|
@@ -63860,7 +64030,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
63860
64030
|
return DataSource;
|
|
63861
64031
|
}(Source));
|
|
63862
64032
|
|
|
63863
|
-
var __extends$
|
|
64033
|
+
var __extends$V = (window && window.__extends) || (function () {
|
|
63864
64034
|
var extendStatics = function (d, b) {
|
|
63865
64035
|
extendStatics = Object.setPrototypeOf ||
|
|
63866
64036
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -63882,7 +64052,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
63882
64052
|
* @module Object Definitions
|
|
63883
64053
|
*/
|
|
63884
64054
|
var VectorTileSourceOptions = /** @class */ (function (_super) {
|
|
63885
|
-
__extends$
|
|
64055
|
+
__extends$V(VectorTileSourceOptions, _super);
|
|
63886
64056
|
function VectorTileSourceOptions() {
|
|
63887
64057
|
/*
|
|
63888
64058
|
* TODO:
|
|
@@ -63935,7 +64105,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
63935
64105
|
return VectorTileSourceOptions;
|
|
63936
64106
|
}(Options));
|
|
63937
64107
|
|
|
63938
|
-
var __extends$
|
|
64108
|
+
var __extends$U = (window && window.__extends) || (function () {
|
|
63939
64109
|
var extendStatics = function (d, b) {
|
|
63940
64110
|
extendStatics = Object.setPrototypeOf ||
|
|
63941
64111
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -63955,7 +64125,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
63955
64125
|
* Vector tile sources can be used with; SymbolLayer, LineLayer, PolygonLayer, BubbleLayer, HeatmapLayer and VectorTileLayer.
|
|
63956
64126
|
*/
|
|
63957
64127
|
var VectorTileSource = /** @class */ (function (_super) {
|
|
63958
|
-
__extends$
|
|
64128
|
+
__extends$U(VectorTileSource, _super);
|
|
63959
64129
|
function VectorTileSource(id, options) {
|
|
63960
64130
|
var _this = _super.call(this, id) || this;
|
|
63961
64131
|
_this.options = new VectorTileSourceOptions().merge(cloneDeep$1(options));
|
|
@@ -64021,7 +64191,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
64021
64191
|
return VectorTileSource;
|
|
64022
64192
|
}(Source));
|
|
64023
64193
|
|
|
64024
|
-
var __extends$
|
|
64194
|
+
var __extends$T = (window && window.__extends) || (function () {
|
|
64025
64195
|
var extendStatics = function (d, b) {
|
|
64026
64196
|
extendStatics = Object.setPrototypeOf ||
|
|
64027
64197
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -64042,7 +64212,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
64042
64212
|
* @private
|
|
64043
64213
|
*/
|
|
64044
64214
|
var CanvasSource = /** @class */ (function (_super) {
|
|
64045
|
-
__extends$
|
|
64215
|
+
__extends$T(CanvasSource, _super);
|
|
64046
64216
|
/**
|
|
64047
64217
|
* Constructs a source from the contents of a layer resource file.
|
|
64048
64218
|
* @param id The source's id.
|
|
@@ -64077,7 +64247,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
64077
64247
|
return CanvasSource;
|
|
64078
64248
|
}(Source));
|
|
64079
64249
|
|
|
64080
|
-
var __extends$
|
|
64250
|
+
var __extends$S = (window && window.__extends) || (function () {
|
|
64081
64251
|
var extendStatics = function (d, b) {
|
|
64082
64252
|
extendStatics = Object.setPrototypeOf ||
|
|
64083
64253
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -64098,7 +64268,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
64098
64268
|
* @private
|
|
64099
64269
|
*/
|
|
64100
64270
|
var UnknownSource = /** @class */ (function (_super) {
|
|
64101
|
-
__extends$
|
|
64271
|
+
__extends$S(UnknownSource, _super);
|
|
64102
64272
|
/**
|
|
64103
64273
|
* Constructs a source from the contents of a layer resource file.
|
|
64104
64274
|
* @param id The source's id.
|
|
@@ -64130,7 +64300,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
64130
64300
|
return UnknownSource;
|
|
64131
64301
|
}(Source));
|
|
64132
64302
|
|
|
64133
|
-
var __extends$
|
|
64303
|
+
var __extends$R = (window && window.__extends) || (function () {
|
|
64134
64304
|
var extendStatics = function (d, b) {
|
|
64135
64305
|
extendStatics = Object.setPrototypeOf ||
|
|
64136
64306
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -64151,7 +64321,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
64151
64321
|
* @private
|
|
64152
64322
|
*/
|
|
64153
64323
|
var ImageSource = /** @class */ (function (_super) {
|
|
64154
|
-
__extends$
|
|
64324
|
+
__extends$R(ImageSource, _super);
|
|
64155
64325
|
/**
|
|
64156
64326
|
* Constructs a source from the contents of a layer resource file.
|
|
64157
64327
|
* @param id The source's id.
|
|
@@ -64185,7 +64355,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
64185
64355
|
return ImageSource;
|
|
64186
64356
|
}(Source));
|
|
64187
64357
|
|
|
64188
|
-
var __extends$
|
|
64358
|
+
var __extends$Q = (window && window.__extends) || (function () {
|
|
64189
64359
|
var extendStatics = function (d, b) {
|
|
64190
64360
|
extendStatics = Object.setPrototypeOf ||
|
|
64191
64361
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -64206,7 +64376,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
64206
64376
|
* @private
|
|
64207
64377
|
*/
|
|
64208
64378
|
var VideoSource = /** @class */ (function (_super) {
|
|
64209
|
-
__extends$
|
|
64379
|
+
__extends$Q(VideoSource, _super);
|
|
64210
64380
|
/**
|
|
64211
64381
|
* Constructs a source from the contents of a layer resource file.
|
|
64212
64382
|
* @param id The source's id.
|
|
@@ -64240,7 +64410,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
64240
64410
|
return VideoSource;
|
|
64241
64411
|
}(Source));
|
|
64242
64412
|
|
|
64243
|
-
var __extends$
|
|
64413
|
+
var __extends$P = (window && window.__extends) || (function () {
|
|
64244
64414
|
var extendStatics = function (d, b) {
|
|
64245
64415
|
extendStatics = Object.setPrototypeOf ||
|
|
64246
64416
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -64256,7 +64426,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
64256
64426
|
};
|
|
64257
64427
|
})();
|
|
64258
64428
|
var RasterTileSourceOptions = /** @class */ (function (_super) {
|
|
64259
|
-
__extends$
|
|
64429
|
+
__extends$P(RasterTileSourceOptions, _super);
|
|
64260
64430
|
function RasterTileSourceOptions() {
|
|
64261
64431
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
64262
64432
|
/**
|
|
@@ -64270,7 +64440,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
64270
64440
|
return RasterTileSourceOptions;
|
|
64271
64441
|
}(VectorTileSourceOptions));
|
|
64272
64442
|
|
|
64273
|
-
var __extends$
|
|
64443
|
+
var __extends$O = (window && window.__extends) || (function () {
|
|
64274
64444
|
var extendStatics = function (d, b) {
|
|
64275
64445
|
extendStatics = Object.setPrototypeOf ||
|
|
64276
64446
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -64286,13 +64456,13 @@ uniform ${precision} ${type} u_${name};
|
|
|
64286
64456
|
};
|
|
64287
64457
|
})();
|
|
64288
64458
|
var ElevationTileSourceOptions = /** @class */ (function (_super) {
|
|
64289
|
-
__extends$
|
|
64459
|
+
__extends$O(ElevationTileSourceOptions, _super);
|
|
64290
64460
|
function ElevationTileSourceOptions() {
|
|
64291
64461
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
64292
64462
|
/**
|
|
64293
|
-
* DEM tiles encoding format. Supported: `mapbox` or `terrarium
|
|
64294
|
-
*
|
|
64295
|
-
*
|
|
64463
|
+
* DEM tiles encoding format. Supported: `mapbox` or `terrarium`.<br />
|
|
64464
|
+
* `"terrarium": Terrarium format PNG tiles. See https://aws.amazon.com/es/public-datasets/terrain/ for more info.<br />
|
|
64465
|
+
* `"mapbox": Mapbox Terrain RGB tiles. See https://www.mapbox.com/help/access-elevation-data/#mapbox-terrain-rgb for more info.<br />
|
|
64296
64466
|
* default `mapbox`
|
|
64297
64467
|
* @default mapbox
|
|
64298
64468
|
*/
|
|
@@ -64302,7 +64472,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
64302
64472
|
return ElevationTileSourceOptions;
|
|
64303
64473
|
}(RasterTileSourceOptions));
|
|
64304
64474
|
|
|
64305
|
-
var __extends$
|
|
64475
|
+
var __extends$N = (window && window.__extends) || (function () {
|
|
64306
64476
|
var extendStatics = function (d, b) {
|
|
64307
64477
|
extendStatics = Object.setPrototypeOf ||
|
|
64308
64478
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -64332,7 +64502,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
64332
64502
|
* Publicly exposed ElevationTileSource.
|
|
64333
64503
|
*/
|
|
64334
64504
|
var ElevationTileSource = /** @class */ (function (_super) {
|
|
64335
|
-
__extends$
|
|
64505
|
+
__extends$N(ElevationTileSource, _super);
|
|
64336
64506
|
function ElevationTileSource(id, options) {
|
|
64337
64507
|
var _this = _super.call(this, id) || this;
|
|
64338
64508
|
_this.options = new ElevationTileSourceOptions().merge(cloneDeep$1(options));
|
|
@@ -64376,7 +64546,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
64376
64546
|
VideoSource: VideoSource
|
|
64377
64547
|
});
|
|
64378
64548
|
|
|
64379
|
-
var __extends$
|
|
64549
|
+
var __extends$M = (window && window.__extends) || (function () {
|
|
64380
64550
|
var extendStatics = function (d, b) {
|
|
64381
64551
|
extendStatics = Object.setPrototypeOf ||
|
|
64382
64552
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -64395,7 +64565,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
64395
64565
|
* Abstract class for other layer classes to extend.
|
|
64396
64566
|
*/
|
|
64397
64567
|
var Layer = /** @class */ (function (_super) {
|
|
64398
|
-
__extends$
|
|
64568
|
+
__extends$M(Layer, _super);
|
|
64399
64569
|
function Layer(id) {
|
|
64400
64570
|
var _this =
|
|
64401
64571
|
// Assign an random id using a UUID if none was specified.
|
|
@@ -64502,7 +64672,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
64502
64672
|
return Layer;
|
|
64503
64673
|
}(EventEmitter));
|
|
64504
64674
|
|
|
64505
|
-
var __extends$
|
|
64675
|
+
var __extends$L = (window && window.__extends) || (function () {
|
|
64506
64676
|
var extendStatics = function (d, b) {
|
|
64507
64677
|
extendStatics = Object.setPrototypeOf ||
|
|
64508
64678
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -64521,7 +64691,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
64521
64691
|
* A base class which all other layer options inherit from.
|
|
64522
64692
|
*/
|
|
64523
64693
|
var LayerOptions$1 = /** @class */ (function (_super) {
|
|
64524
|
-
__extends$
|
|
64694
|
+
__extends$L(LayerOptions, _super);
|
|
64525
64695
|
function LayerOptions() {
|
|
64526
64696
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
64527
64697
|
/**
|
|
@@ -64568,7 +64738,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
64568
64738
|
return LayerOptions;
|
|
64569
64739
|
}(Options));
|
|
64570
64740
|
|
|
64571
|
-
var __extends$
|
|
64741
|
+
var __extends$K = (window && window.__extends) || (function () {
|
|
64572
64742
|
var extendStatics = function (d, b) {
|
|
64573
64743
|
extendStatics = Object.setPrototypeOf ||
|
|
64574
64744
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -64587,7 +64757,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
64587
64757
|
* Options used when rendering Point objects in a BubbleLayer.
|
|
64588
64758
|
*/
|
|
64589
64759
|
var BubbleLayerOptions = /** @class */ (function (_super) {
|
|
64590
|
-
__extends$
|
|
64760
|
+
__extends$K(BubbleLayerOptions, _super);
|
|
64591
64761
|
function BubbleLayerOptions() {
|
|
64592
64762
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
64593
64763
|
/**
|
|
@@ -64638,9 +64808,9 @@ uniform ${precision} ${type} u_${name};
|
|
|
64638
64808
|
*/
|
|
64639
64809
|
_this.strokeWidth = 2;
|
|
64640
64810
|
/**
|
|
64641
|
-
* Specifies the orientation of circle when map is pitched
|
|
64642
|
-
*
|
|
64643
|
-
*
|
|
64811
|
+
* Specifies the orientation of circle when map is pitched.<br />
|
|
64812
|
+
* `"map"`: The circle is aligned to the plane of the map.<br />
|
|
64813
|
+
* `"viewport"`: The circle is aligned to the plane of the viewport.<br />
|
|
64644
64814
|
* Default: `"viewport"`
|
|
64645
64815
|
* @default "viewport"
|
|
64646
64816
|
*/
|
|
@@ -64695,7 +64865,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
64695
64865
|
return BubbleLayerOptions;
|
|
64696
64866
|
}(LayerOptions$1));
|
|
64697
64867
|
|
|
64698
|
-
var __extends$
|
|
64868
|
+
var __extends$J = (window && window.__extends) || (function () {
|
|
64699
64869
|
var extendStatics = function (d, b) {
|
|
64700
64870
|
extendStatics = Object.setPrototypeOf ||
|
|
64701
64871
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -64775,7 +64945,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
64775
64945
|
* Renders Point objects as scalable circles (bubbles).
|
|
64776
64946
|
*/
|
|
64777
64947
|
var BubbleLayer = /** @class */ (function (_super) {
|
|
64778
|
-
__extends$
|
|
64948
|
+
__extends$J(BubbleLayer, _super);
|
|
64779
64949
|
/**
|
|
64780
64950
|
* Constructs a new BubbleLayer.
|
|
64781
64951
|
* @param source The id or instance of a data source which the layer will render.
|
|
@@ -65050,7 +65220,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
65050
65220
|
return BubbleLayer;
|
|
65051
65221
|
}(Layer));
|
|
65052
65222
|
|
|
65053
|
-
var __extends$
|
|
65223
|
+
var __extends$I = (window && window.__extends) || (function () {
|
|
65054
65224
|
var extendStatics = function (d, b) {
|
|
65055
65225
|
extendStatics = Object.setPrototypeOf ||
|
|
65056
65226
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -65069,7 +65239,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
65069
65239
|
* Options used when rendering Point objects in a HeatMapLayer.
|
|
65070
65240
|
*/
|
|
65071
65241
|
var HeatMapLayerOptions = /** @class */ (function (_super) {
|
|
65072
|
-
__extends$
|
|
65242
|
+
__extends$I(HeatMapLayerOptions, _super);
|
|
65073
65243
|
function HeatMapLayerOptions() {
|
|
65074
65244
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
65075
65245
|
/**
|
|
@@ -65136,7 +65306,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
65136
65306
|
return HeatMapLayerOptions;
|
|
65137
65307
|
}(LayerOptions$1));
|
|
65138
65308
|
|
|
65139
|
-
var __extends$
|
|
65309
|
+
var __extends$H = (window && window.__extends) || (function () {
|
|
65140
65310
|
var extendStatics = function (d, b) {
|
|
65141
65311
|
extendStatics = Object.setPrototypeOf ||
|
|
65142
65312
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -65155,7 +65325,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
65155
65325
|
* Represent the density of data using different colors (HeatMap).
|
|
65156
65326
|
*/
|
|
65157
65327
|
var HeatMapLayer = /** @class */ (function (_super) {
|
|
65158
|
-
__extends$
|
|
65328
|
+
__extends$H(HeatMapLayer, _super);
|
|
65159
65329
|
/**
|
|
65160
65330
|
* Constructs a new HeatMapLayer.
|
|
65161
65331
|
* @param source The id or instance of a data source which the layer will render.
|
|
@@ -65259,7 +65429,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
65259
65429
|
return HeatMapLayer;
|
|
65260
65430
|
}(Layer));
|
|
65261
65431
|
|
|
65262
|
-
var __extends$
|
|
65432
|
+
var __extends$G = (window && window.__extends) || (function () {
|
|
65263
65433
|
var extendStatics = function (d, b) {
|
|
65264
65434
|
extendStatics = Object.setPrototypeOf ||
|
|
65265
65435
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -65278,7 +65448,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
65278
65448
|
* Options used when rendering canvas, image, raster tile, and video layers
|
|
65279
65449
|
*/
|
|
65280
65450
|
var MediaLayerOptions = /** @class */ (function (_super) {
|
|
65281
|
-
__extends$
|
|
65451
|
+
__extends$G(MediaLayerOptions, _super);
|
|
65282
65452
|
function MediaLayerOptions() {
|
|
65283
65453
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
65284
65454
|
/**
|
|
@@ -65330,7 +65500,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
65330
65500
|
return MediaLayerOptions;
|
|
65331
65501
|
}(LayerOptions$1));
|
|
65332
65502
|
|
|
65333
|
-
var __extends$
|
|
65503
|
+
var __extends$F = (window && window.__extends) || (function () {
|
|
65334
65504
|
var extendStatics = function (d, b) {
|
|
65335
65505
|
extendStatics = Object.setPrototypeOf ||
|
|
65336
65506
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -65349,7 +65519,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
65349
65519
|
* Options used when rendering Point objects in a ImageLayer.
|
|
65350
65520
|
*/
|
|
65351
65521
|
var ImageLayerOptions = /** @class */ (function (_super) {
|
|
65352
|
-
__extends$
|
|
65522
|
+
__extends$F(ImageLayerOptions, _super);
|
|
65353
65523
|
function ImageLayerOptions() {
|
|
65354
65524
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
65355
65525
|
/**
|
|
@@ -65379,7 +65549,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
65379
65549
|
return ImageLayerOptions;
|
|
65380
65550
|
}(MediaLayerOptions));
|
|
65381
65551
|
|
|
65382
|
-
var __extends$
|
|
65552
|
+
var __extends$E = (window && window.__extends) || (function () {
|
|
65383
65553
|
var extendStatics = function (d, b) {
|
|
65384
65554
|
extendStatics = Object.setPrototypeOf ||
|
|
65385
65555
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -65399,7 +65569,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
65399
65569
|
* @internal
|
|
65400
65570
|
*/
|
|
65401
65571
|
var SourceBuildingLayer = /** @class */ (function (_super) {
|
|
65402
|
-
__extends$
|
|
65572
|
+
__extends$E(SourceBuildingLayer, _super);
|
|
65403
65573
|
function SourceBuildingLayer() {
|
|
65404
65574
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
65405
65575
|
}
|
|
@@ -65417,7 +65587,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
65417
65587
|
return SourceBuildingLayer;
|
|
65418
65588
|
}(Layer));
|
|
65419
65589
|
|
|
65420
|
-
var __extends$
|
|
65590
|
+
var __extends$D = (window && window.__extends) || (function () {
|
|
65421
65591
|
var extendStatics = function (d, b) {
|
|
65422
65592
|
extendStatics = Object.setPrototypeOf ||
|
|
65423
65593
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -65436,7 +65606,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
65436
65606
|
* Overlays an image on the map with each corner anchored to a coordinate on the map. Also known as a ground or image overlay.
|
|
65437
65607
|
*/
|
|
65438
65608
|
var ImageLayer = /** @class */ (function (_super) {
|
|
65439
|
-
__extends$
|
|
65609
|
+
__extends$D(ImageLayer, _super);
|
|
65440
65610
|
/**
|
|
65441
65611
|
* Constructs a new ImageLayer.
|
|
65442
65612
|
* @param id The id of the layer. If not specified a random one will be generated.
|
|
@@ -65644,7 +65814,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
65644
65814
|
return ImageLayer;
|
|
65645
65815
|
}(SourceBuildingLayer));
|
|
65646
65816
|
|
|
65647
|
-
var __extends$
|
|
65817
|
+
var __extends$C = (window && window.__extends) || (function () {
|
|
65648
65818
|
var extendStatics = function (d, b) {
|
|
65649
65819
|
extendStatics = Object.setPrototypeOf ||
|
|
65650
65820
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -65664,7 +65834,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
65664
65834
|
* LineString, MultiLineString, Polygon, and MultiPolygon objects in a line layer.
|
|
65665
65835
|
*/
|
|
65666
65836
|
var LineLayerOptions = /** @class */ (function (_super) {
|
|
65667
|
-
__extends$
|
|
65837
|
+
__extends$C(LineLayerOptions, _super);
|
|
65668
65838
|
function LineLayerOptions() {
|
|
65669
65839
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
65670
65840
|
/**
|
|
@@ -65678,24 +65848,24 @@ uniform ${precision} ${type} u_${name};
|
|
|
65678
65848
|
*/
|
|
65679
65849
|
_this.sourceLayer = undefined;
|
|
65680
65850
|
/**
|
|
65681
|
-
* Specifies how the ends of the lines are rendered
|
|
65682
|
-
*
|
|
65683
|
-
*
|
|
65684
|
-
* at a radius of one-half of the lines width and centered on the endpoint of the line
|
|
65685
|
-
*
|
|
65686
|
-
* at a distance of one-half of the line width
|
|
65851
|
+
* Specifies how the ends of the lines are rendered.<br />
|
|
65852
|
+
* `"butt"`: A cap with a squared-off end which is drawn to the exact endpoint of the line.<br />
|
|
65853
|
+
* `"round"`: A cap with a rounded end which is drawn beyond the endpoint of the line
|
|
65854
|
+
* at a radius of one-half of the lines width and centered on the endpoint of the line.<br />
|
|
65855
|
+
* `"square"`: A cap with a squared-off end which is drawn beyond the endpoint of the line
|
|
65856
|
+
* at a distance of one-half of the line width.<br />
|
|
65687
65857
|
* Default `"round"`.
|
|
65688
65858
|
* @default "round"
|
|
65689
65859
|
*/
|
|
65690
65860
|
_this.lineCap = "round";
|
|
65691
65861
|
/**
|
|
65692
|
-
* Specifies how the joints in the lines are rendered
|
|
65693
|
-
*
|
|
65694
|
-
* at a distance of one-half of the lines width
|
|
65695
|
-
*
|
|
65696
|
-
* at a radius of one-half of the lines width and centered on the endpoint of the line
|
|
65697
|
-
*
|
|
65698
|
-
* beyond the endpoint of the path until they meet
|
|
65862
|
+
* Specifies how the joints in the lines are rendered.<br />
|
|
65863
|
+
* `"bevel"`: A join with a squared-off end which is drawn beyond the endpoint of the line
|
|
65864
|
+
* at a distance of one-half of the lines width.<br />
|
|
65865
|
+
* `"round"`: A join with a rounded end which is drawn beyond the endpoint of the line
|
|
65866
|
+
* at a radius of one-half of the lines width and centered on the endpoint of the line.<br />
|
|
65867
|
+
* `"miter"`: A join with a sharp, angled corner which is drawn with the outer sides
|
|
65868
|
+
* beyond the endpoint of the path until they meet.<br />
|
|
65699
65869
|
* Default `"round"`.
|
|
65700
65870
|
* @default "round"
|
|
65701
65871
|
*/
|
|
@@ -65746,9 +65916,9 @@ uniform ${precision} ${type} u_${name};
|
|
|
65746
65916
|
*/
|
|
65747
65917
|
_this.translate = new Pixel(0, 0);
|
|
65748
65918
|
/**
|
|
65749
|
-
* Specifies the frame of reference for `translate
|
|
65750
|
-
*
|
|
65751
|
-
*
|
|
65919
|
+
* Specifies the frame of reference for `translate`.<br />
|
|
65920
|
+
* `"map"`: Lines are translated relative to the map.<br />
|
|
65921
|
+
* `"viewport"`: Lines are translated relative to the viewport<br />
|
|
65752
65922
|
* Default: `"map"`
|
|
65753
65923
|
* @default "map"
|
|
65754
65924
|
*/
|
|
@@ -65764,7 +65934,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
65764
65934
|
return LineLayerOptions;
|
|
65765
65935
|
}(LayerOptions$1));
|
|
65766
65936
|
|
|
65767
|
-
var __extends$
|
|
65937
|
+
var __extends$B = (window && window.__extends) || (function () {
|
|
65768
65938
|
var extendStatics = function (d, b) {
|
|
65769
65939
|
extendStatics = Object.setPrototypeOf ||
|
|
65770
65940
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -65795,7 +65965,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
65795
65965
|
* CirclePolygon, LineString, MultiLineString, Polygon, and MultiPolygon objects.
|
|
65796
65966
|
*/
|
|
65797
65967
|
var LineLayer = /** @class */ (function (_super) {
|
|
65798
|
-
__extends$
|
|
65968
|
+
__extends$B(LineLayer, _super);
|
|
65799
65969
|
/**
|
|
65800
65970
|
* Constructs a new LineLayer.
|
|
65801
65971
|
* @param source The id or instance of a data source which the layer will render.
|
|
@@ -65886,7 +66056,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
65886
66056
|
return LineLayer;
|
|
65887
66057
|
}(Layer));
|
|
65888
66058
|
|
|
65889
|
-
var __extends$
|
|
66059
|
+
var __extends$A = (window && window.__extends) || (function () {
|
|
65890
66060
|
var extendStatics = function (d, b) {
|
|
65891
66061
|
extendStatics = Object.setPrototypeOf ||
|
|
65892
66062
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -65905,7 +66075,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
65905
66075
|
* Options used when rendering `Polygon` and `MultiPolygon` objects in a `PolygonExtrusionLayer`.
|
|
65906
66076
|
*/
|
|
65907
66077
|
var PolygonExtrusionLayerOptions = /** @class */ (function (_super) {
|
|
65908
|
-
__extends$
|
|
66078
|
+
__extends$A(PolygonExtrusionLayerOptions, _super);
|
|
65909
66079
|
function PolygonExtrusionLayerOptions() {
|
|
65910
66080
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
65911
66081
|
/**
|
|
@@ -65960,9 +66130,9 @@ uniform ${precision} ${type} u_${name};
|
|
|
65960
66130
|
*/
|
|
65961
66131
|
_this.translate = new Pixel(0, 0);
|
|
65962
66132
|
/**
|
|
65963
|
-
* Specifies the frame of reference for `translate
|
|
65964
|
-
*
|
|
65965
|
-
*
|
|
66133
|
+
* Specifies the frame of reference for `translate`.<br />
|
|
66134
|
+
* `"map"`: Polygons are translated relative to the map.<br />
|
|
66135
|
+
* `"viewport"`: Polygons are translated relative to the viewport.<br />
|
|
65966
66136
|
* Default: `"map"`
|
|
65967
66137
|
* @default "map"
|
|
65968
66138
|
*/
|
|
@@ -65978,7 +66148,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
65978
66148
|
return PolygonExtrusionLayerOptions;
|
|
65979
66149
|
}(LayerOptions$1));
|
|
65980
66150
|
|
|
65981
|
-
var __extends$
|
|
66151
|
+
var __extends$z = (window && window.__extends) || (function () {
|
|
65982
66152
|
var extendStatics = function (d, b) {
|
|
65983
66153
|
extendStatics = Object.setPrototypeOf ||
|
|
65984
66154
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -66008,7 +66178,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
66008
66178
|
* Renders extruded filled `Polygon` and `MultiPolygon` objects on the map.
|
|
66009
66179
|
*/
|
|
66010
66180
|
var PolygonExtrusionLayer = /** @class */ (function (_super) {
|
|
66011
|
-
__extends$
|
|
66181
|
+
__extends$z(PolygonExtrusionLayer, _super);
|
|
66012
66182
|
/**
|
|
66013
66183
|
* Constructs a new PolygonExtrusionLayer.
|
|
66014
66184
|
* @param source The id or instance of a data source which the layer will render.
|
|
@@ -66096,7 +66266,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
66096
66266
|
return PolygonExtrusionLayer;
|
|
66097
66267
|
}(Layer));
|
|
66098
66268
|
|
|
66099
|
-
var __extends$
|
|
66269
|
+
var __extends$y = (window && window.__extends) || (function () {
|
|
66100
66270
|
var extendStatics = function (d, b) {
|
|
66101
66271
|
extendStatics = Object.setPrototypeOf ||
|
|
66102
66272
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -66115,7 +66285,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
66115
66285
|
* Options used when rendering Polygon and MultiPolygon objects in a PolygonLayer.
|
|
66116
66286
|
*/
|
|
66117
66287
|
var PolygonLayerOptions$1 = /** @class */ (function (_super) {
|
|
66118
|
-
__extends$
|
|
66288
|
+
__extends$y(PolygonLayerOptions, _super);
|
|
66119
66289
|
function PolygonLayerOptions() {
|
|
66120
66290
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
66121
66291
|
/**
|
|
@@ -66155,7 +66325,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
66155
66325
|
return PolygonLayerOptions;
|
|
66156
66326
|
}(LayerOptions$1));
|
|
66157
66327
|
|
|
66158
|
-
var __extends$
|
|
66328
|
+
var __extends$x = (window && window.__extends) || (function () {
|
|
66159
66329
|
var extendStatics = function (d, b) {
|
|
66160
66330
|
extendStatics = Object.setPrototypeOf ||
|
|
66161
66331
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -66174,7 +66344,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
66174
66344
|
* Renders filled Polygon and MultiPolygon objects on the map.
|
|
66175
66345
|
*/
|
|
66176
66346
|
var PolygonLayer = /** @class */ (function (_super) {
|
|
66177
|
-
__extends$
|
|
66347
|
+
__extends$x(PolygonLayer, _super);
|
|
66178
66348
|
/**
|
|
66179
66349
|
* Constructs a new PolygonLayer.
|
|
66180
66350
|
* @param source The id or instance of a data source which the layer will render.
|
|
@@ -66284,7 +66454,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
66284
66454
|
return PolygonLayer;
|
|
66285
66455
|
}(Layer));
|
|
66286
66456
|
|
|
66287
|
-
var __extends$
|
|
66457
|
+
var __extends$w = (window && window.__extends) || (function () {
|
|
66288
66458
|
var extendStatics = function (d, b) {
|
|
66289
66459
|
extendStatics = Object.setPrototypeOf ||
|
|
66290
66460
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -66303,7 +66473,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
66303
66473
|
* Options used to customize the icons in a SymbolLayer
|
|
66304
66474
|
*/
|
|
66305
66475
|
var IconOptions = /** @class */ (function (_super) {
|
|
66306
|
-
__extends$
|
|
66476
|
+
__extends$w(IconOptions, _super);
|
|
66307
66477
|
function IconOptions() {
|
|
66308
66478
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
66309
66479
|
/**
|
|
@@ -66315,16 +66485,16 @@ uniform ${precision} ${type} u_${name};
|
|
|
66315
66485
|
*/
|
|
66316
66486
|
_this.allowOverlap = false;
|
|
66317
66487
|
/**
|
|
66318
|
-
* Specifies which part of the icon is placed closest to the icons anchor position on the map
|
|
66319
|
-
*
|
|
66320
|
-
*
|
|
66321
|
-
*
|
|
66322
|
-
*
|
|
66323
|
-
*
|
|
66324
|
-
*
|
|
66325
|
-
*
|
|
66326
|
-
*
|
|
66327
|
-
*
|
|
66488
|
+
* Specifies which part of the icon is placed closest to the icons anchor position on the map.<br />
|
|
66489
|
+
* `"center"`: The center of the icon is placed closest to the anchor.<br />
|
|
66490
|
+
* `"left"`: The left side of the icon is placed closest to the anchor.<br />
|
|
66491
|
+
* `"right"`: The right side of the icon is placed closest to the anchor.<br />
|
|
66492
|
+
* `"top"`: The top of the icon is placed closest to the anchor.<br />
|
|
66493
|
+
* `"bottom"`: The bottom of the icon is placed closest to the anchor.<br />
|
|
66494
|
+
* `"top-left"`: The top left corner of the icon is placed closest to the anchor.<br />
|
|
66495
|
+
* `"top-right"`: The top right corner of the icon is placed closest to the anchor.<br />
|
|
66496
|
+
* `"bottom-left"`: The bottom left corner of the icon is placed closest to the anchor.<br />
|
|
66497
|
+
* `"bottom-right"`: The bottom right corner of the icon is placed closest to the anchor.<br />
|
|
66328
66498
|
* Default `"bottom"`.
|
|
66329
66499
|
* @default "bottom"
|
|
66330
66500
|
*/
|
|
@@ -66369,10 +66539,10 @@ uniform ${precision} ${type} u_${name};
|
|
|
66369
66539
|
*/
|
|
66370
66540
|
_this.padding = 2;
|
|
66371
66541
|
/**
|
|
66372
|
-
* Specifies the orientation of the icon when the map is pitched
|
|
66373
|
-
*
|
|
66374
|
-
*
|
|
66375
|
-
*
|
|
66542
|
+
* Specifies the orientation of the icon when the map is pitched.<br />
|
|
66543
|
+
* `"auto"`: Automatically matches the value of `rotationAlignment`.<br />
|
|
66544
|
+
* `"map"`: The icon is aligned to the plane of the map.<br />
|
|
66545
|
+
* `"viewport"`: The icon is aligned to the plane of the viewport<br />
|
|
66376
66546
|
* Default `"auto"`
|
|
66377
66547
|
* @default "auto"
|
|
66378
66548
|
*/
|
|
@@ -66385,12 +66555,12 @@ uniform ${precision} ${type} u_${name};
|
|
|
66385
66555
|
_this.rotation = 0;
|
|
66386
66556
|
/**
|
|
66387
66557
|
* In combination with the placement property of a SymbolLayerOptions
|
|
66388
|
-
* this determines the rotation behavior of icons
|
|
66389
|
-
*
|
|
66390
|
-
* When placement is "line" this is equivalent to "map"
|
|
66391
|
-
*
|
|
66392
|
-
* When placement is "line" aligns the icons' x-axes with the line
|
|
66393
|
-
*
|
|
66558
|
+
* this determines the rotation behavior of icons.<br />
|
|
66559
|
+
* `"auto"`: When placement is "point" this is equivalent to "viewport".
|
|
66560
|
+
* When placement is "line" this is equivalent to "map".<br />
|
|
66561
|
+
* `"map"`: When placement is "point" aligns icons east-west.
|
|
66562
|
+
* When placement is "line" aligns the icons' x-axes with the line.<br />
|
|
66563
|
+
* `"viewport"`: Icons' x-axes will align with the x-axis of the viewport.<br />
|
|
66394
66564
|
* Default `"auto"`.
|
|
66395
66565
|
* @default "auto"
|
|
66396
66566
|
*/
|
|
@@ -66413,7 +66583,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
66413
66583
|
return IconOptions;
|
|
66414
66584
|
}(Options));
|
|
66415
66585
|
|
|
66416
|
-
var __extends$
|
|
66586
|
+
var __extends$v = (window && window.__extends) || (function () {
|
|
66417
66587
|
var extendStatics = function (d, b) {
|
|
66418
66588
|
extendStatics = Object.setPrototypeOf ||
|
|
66419
66589
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -66432,7 +66602,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
66432
66602
|
* Options used to customize the text in a SymbolLayer
|
|
66433
66603
|
*/
|
|
66434
66604
|
var TextOptions = /** @class */ (function (_super) {
|
|
66435
|
-
__extends$
|
|
66605
|
+
__extends$v(TextOptions, _super);
|
|
66436
66606
|
function TextOptions() {
|
|
66437
66607
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
66438
66608
|
/**
|
|
@@ -66443,16 +66613,16 @@ uniform ${precision} ${type} u_${name};
|
|
|
66443
66613
|
*/
|
|
66444
66614
|
_this.allowOverlap = false;
|
|
66445
66615
|
/**
|
|
66446
|
-
* Specifies which part of the icon is placed closest to the icons anchor position on the map
|
|
66447
|
-
*
|
|
66448
|
-
*
|
|
66449
|
-
*
|
|
66450
|
-
*
|
|
66451
|
-
*
|
|
66452
|
-
*
|
|
66453
|
-
*
|
|
66454
|
-
*
|
|
66455
|
-
*
|
|
66616
|
+
* Specifies which part of the icon is placed closest to the icons anchor position on the map.<br />
|
|
66617
|
+
* `"center"`: The center of the icon is placed closest to the anchor.<br />
|
|
66618
|
+
* `"left"`: The left side of the icon is placed closest to the anchor.<br />
|
|
66619
|
+
* `"right"`: The right side of the icon is placed closest to the anchor.<br />
|
|
66620
|
+
* `"top"`: The top of the icon is placed closest to the anchor.<br />
|
|
66621
|
+
* `"bottom"`: The bottom of the icon is placed closest to the anchor.<br />
|
|
66622
|
+
* `"top-left"`: The top left corner of the icon is placed closest to the anchor.<br />
|
|
66623
|
+
* `"top-right"`: The top right corner of the icon is placed closest to the anchor.<br />
|
|
66624
|
+
* `"bottom-left"`: The bottom left corner of the icon is placed closest to the anchor.<br />
|
|
66625
|
+
* `"bottom-right"`: The bottom right corner of the icon is placed closest to the anchor.<br />
|
|
66456
66626
|
* Default `"center"`.
|
|
66457
66627
|
* @default "center"
|
|
66458
66628
|
*/
|
|
@@ -66482,11 +66652,11 @@ uniform ${precision} ${type} u_${name};
|
|
|
66482
66652
|
*/
|
|
66483
66653
|
_this.ignorePlacement = false;
|
|
66484
66654
|
/**
|
|
66485
|
-
* Text justification options
|
|
66486
|
-
*
|
|
66487
|
-
*
|
|
66488
|
-
*
|
|
66489
|
-
*
|
|
66655
|
+
* Text justification options.<br />
|
|
66656
|
+
* `"auto"`: The text is aligned towards the anchor position.<br />
|
|
66657
|
+
* `"left"`: The text is aligned to the left.<br />
|
|
66658
|
+
* `"center"`: The text is centered.<br />
|
|
66659
|
+
* `"right"`: The text is aligned to the right.<br />
|
|
66490
66660
|
* Default `"center"`.
|
|
66491
66661
|
* @default "center"
|
|
66492
66662
|
*/
|
|
@@ -66514,10 +66684,10 @@ uniform ${precision} ${type} u_${name};
|
|
|
66514
66684
|
*/
|
|
66515
66685
|
_this.padding = 2;
|
|
66516
66686
|
/**
|
|
66517
|
-
* Specifies the orientation of the text when the map is pitched
|
|
66518
|
-
*
|
|
66519
|
-
*
|
|
66520
|
-
*
|
|
66687
|
+
* Specifies the orientation of the text when the map is pitched.<br />
|
|
66688
|
+
* `"auto"`: Automatically matches the value of `rotationAlignment`.<br />
|
|
66689
|
+
* `"map"`: The text is aligned to the plane of the map.<br />
|
|
66690
|
+
* `"viewport"`: The text is aligned to the plane of the viewport.<br />
|
|
66521
66691
|
* Default: `"auto"`
|
|
66522
66692
|
* @default "auto"
|
|
66523
66693
|
*/
|
|
@@ -66537,13 +66707,13 @@ uniform ${precision} ${type} u_${name};
|
|
|
66537
66707
|
_this.rotation = 0;
|
|
66538
66708
|
/**
|
|
66539
66709
|
* In combination with the `placement` property of the `SymbolLayerOptions`,
|
|
66540
|
-
* specifies the rotation behavior of the individual glyphs forming the text
|
|
66541
|
-
*
|
|
66542
|
-
* When the `placement` is set to `"line"` this is equivalent to `"map"
|
|
66543
|
-
*
|
|
66544
|
-
* When the `placement` is set to `"line"`, aligns text x-axes with the line
|
|
66545
|
-
*
|
|
66546
|
-
* regardless of the value of `placement
|
|
66710
|
+
* specifies the rotation behavior of the individual glyphs forming the text.<br />
|
|
66711
|
+
* `"auto"`: When the `placement` is set to `"point"`, this is equivalent to `"map"`.
|
|
66712
|
+
* When the `placement` is set to `"line"` this is equivalent to `"map"`.<br />
|
|
66713
|
+
* `"map"`: When the `placement` is set to `"point"`, aligns text east-west.
|
|
66714
|
+
* When the `placement` is set to `"line"`, aligns text x-axes with the line.<br />
|
|
66715
|
+
* `"viewport"`: Produces glyphs whose x-axes are aligned with the x-axis of the viewport,
|
|
66716
|
+
* regardless of the value of `placement`.<br />
|
|
66547
66717
|
* Default: `"auto"`
|
|
66548
66718
|
* @default "auto"
|
|
66549
66719
|
*/
|
|
@@ -66553,16 +66723,16 @@ uniform ${precision} ${type} u_${name};
|
|
|
66553
66723
|
* labels on the map. The renderer will attempt to place the label at each location,
|
|
66554
66724
|
* in order, before moving onto the next label. Use `justify: "auto"` to choose text
|
|
66555
66725
|
* justification based on anchor position. To apply an offset use the `radialOffset` or
|
|
66556
|
-
* two-dimensional `offset` options
|
|
66557
|
-
*
|
|
66558
|
-
*
|
|
66559
|
-
*
|
|
66560
|
-
*
|
|
66561
|
-
*
|
|
66562
|
-
*
|
|
66563
|
-
*
|
|
66564
|
-
*
|
|
66565
|
-
*
|
|
66726
|
+
* two-dimensional `offset` options.<br />
|
|
66727
|
+
* `"center"`: The center of the icon is placed closest to the anchor.<br />
|
|
66728
|
+
* `"left"`: The left side of the icon is placed closest to the anchor.<br />
|
|
66729
|
+
* `"right"`: The right side of the icon is placed closest to the anchor.<br />
|
|
66730
|
+
* `"top"`: The top of the icon is placed closest to the anchor.<br />
|
|
66731
|
+
* `"bottom"`: The bottom of the icon is placed closest to the anchor.<br />
|
|
66732
|
+
* `"top-left"`: The top left corner of the icon is placed closest to the anchor.<br />
|
|
66733
|
+
* `"top-right"`: The top right corner of the icon is placed closest to the anchor.<br />
|
|
66734
|
+
* `"bottom-left"`: The bottom left corner of the icon is placed closest to the anchor.<br />
|
|
66735
|
+
* `"bottom-right"`: The bottom right corner of the icon is placed closest to the anchor.<br />
|
|
66566
66736
|
* Default: `undefined`
|
|
66567
66737
|
* @default undefined
|
|
66568
66738
|
*/
|
|
@@ -66612,7 +66782,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
66612
66782
|
return TextOptions;
|
|
66613
66783
|
}(Options));
|
|
66614
66784
|
|
|
66615
|
-
var __extends$
|
|
66785
|
+
var __extends$u = (window && window.__extends) || (function () {
|
|
66616
66786
|
var extendStatics = function (d, b) {
|
|
66617
66787
|
extendStatics = Object.setPrototypeOf ||
|
|
66618
66788
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -66631,7 +66801,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
66631
66801
|
* Options used when rendering geometries in a SymbolLayer.
|
|
66632
66802
|
*/
|
|
66633
66803
|
var SymbolLayerOptions = /** @class */ (function (_super) {
|
|
66634
|
-
__extends$
|
|
66804
|
+
__extends$u(SymbolLayerOptions, _super);
|
|
66635
66805
|
function SymbolLayerOptions() {
|
|
66636
66806
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
66637
66807
|
/**
|
|
@@ -66655,12 +66825,12 @@ uniform ${precision} ${type} u_${name};
|
|
|
66655
66825
|
*/
|
|
66656
66826
|
_this.textOptions = new TextOptions();
|
|
66657
66827
|
/**
|
|
66658
|
-
* Specifies the label placement relative to its geometry
|
|
66659
|
-
*
|
|
66660
|
-
*
|
|
66661
|
-
* Can only be used on LineString and Polygon geometries
|
|
66662
|
-
*
|
|
66663
|
-
* Can only be used on `LineString` and `Polygon` geometries
|
|
66828
|
+
* Specifies the label placement relative to its geometry.<br />
|
|
66829
|
+
* `"point"`: The label is placed at the point where the geometry is located.<br />
|
|
66830
|
+
* `"line"`: The label is placed along the line of the geometry.
|
|
66831
|
+
* Can only be used on LineString and Polygon geometries.<br />
|
|
66832
|
+
* `"line-center"`: The label is placed at the center of the line of the geometry.
|
|
66833
|
+
* Can only be used on `LineString` and `Polygon` geometries <br />
|
|
66664
66834
|
* Default `"point"`.
|
|
66665
66835
|
* @default "point"
|
|
66666
66836
|
*/
|
|
@@ -66675,12 +66845,12 @@ uniform ${precision} ${type} u_${name};
|
|
|
66675
66845
|
/**
|
|
66676
66846
|
* Determines whether overlapping symbols in the same layer are rendered in the order
|
|
66677
66847
|
* that they appear in the data source, or by their y position relative to the viewport.
|
|
66678
|
-
* To control the order and prioritization of symbols otherwise, use `sortKey
|
|
66679
|
-
*
|
|
66680
|
-
*
|
|
66681
|
-
* if `ignorePlacement` is `false
|
|
66682
|
-
*
|
|
66683
|
-
* same order as the source data
|
|
66848
|
+
* To control the order and prioritization of symbols otherwise, use `sortKey`.<br />
|
|
66849
|
+
* `"auto"`: Sorts symbols by `sortKey` if set. Otherwise behaves like `"viewport-y"`.<br />
|
|
66850
|
+
* `"viewport-y"`: Sorts symbols by their y position if `allowOverlap` is `true` or
|
|
66851
|
+
* if `ignorePlacement` is `false`.<br />
|
|
66852
|
+
* `"source"`: Sorts symbols by `sortKey` if set. Otherwise, symbols are rendered in the
|
|
66853
|
+
* same order as the source data.<br />
|
|
66684
66854
|
* Default `"auto"`
|
|
66685
66855
|
* @default "auto"
|
|
66686
66856
|
*/
|
|
@@ -66696,7 +66866,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
66696
66866
|
return SymbolLayerOptions;
|
|
66697
66867
|
}(LayerOptions$1));
|
|
66698
66868
|
|
|
66699
|
-
var __extends$
|
|
66869
|
+
var __extends$t = (window && window.__extends) || (function () {
|
|
66700
66870
|
var extendStatics = function (d, b) {
|
|
66701
66871
|
extendStatics = Object.setPrototypeOf ||
|
|
66702
66872
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -66727,7 +66897,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
66727
66897
|
* Symbols can also be created for line and polygon data as well.
|
|
66728
66898
|
*/
|
|
66729
66899
|
var SymbolLayer = /** @class */ (function (_super) {
|
|
66730
|
-
__extends$
|
|
66900
|
+
__extends$t(SymbolLayer, _super);
|
|
66731
66901
|
/**
|
|
66732
66902
|
* Constructs a new SymbolLayer.
|
|
66733
66903
|
* @param source The id or instance of a data source which the layer will render.
|
|
@@ -66869,7 +67039,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
66869
67039
|
return SymbolLayer;
|
|
66870
67040
|
}(Layer));
|
|
66871
67041
|
|
|
66872
|
-
var __extends$
|
|
67042
|
+
var __extends$s = (window && window.__extends) || (function () {
|
|
66873
67043
|
var extendStatics = function (d, b) {
|
|
66874
67044
|
extendStatics = Object.setPrototypeOf ||
|
|
66875
67045
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -66900,7 +67070,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
66900
67070
|
* @private
|
|
66901
67071
|
*/
|
|
66902
67072
|
var FundamentalMapSource = /** @class */ (function (_super) {
|
|
66903
|
-
__extends$
|
|
67073
|
+
__extends$s(FundamentalMapSource, _super);
|
|
66904
67074
|
/**
|
|
66905
67075
|
* Constructs a source from the contents of a layer resource file.
|
|
66906
67076
|
* @param id The source's id.
|
|
@@ -66986,7 +67156,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
66986
67156
|
return FundamentalMapSource;
|
|
66987
67157
|
}(Source));
|
|
66988
67158
|
|
|
66989
|
-
var __extends$
|
|
67159
|
+
var __extends$r = (window && window.__extends) || (function () {
|
|
66990
67160
|
var extendStatics = function (d, b) {
|
|
66991
67161
|
extendStatics = Object.setPrototypeOf ||
|
|
66992
67162
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -67005,7 +67175,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
67005
67175
|
* Options used when rendering raster tiled images in a TileLayer.
|
|
67006
67176
|
*/
|
|
67007
67177
|
var TileLayerOptions = /** @class */ (function (_super) {
|
|
67008
|
-
__extends$
|
|
67178
|
+
__extends$r(TileLayerOptions, _super);
|
|
67009
67179
|
function TileLayerOptions() {
|
|
67010
67180
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
67011
67181
|
/**
|
|
@@ -67061,7 +67231,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
67061
67231
|
return TileLayerOptions;
|
|
67062
67232
|
}(MediaLayerOptions));
|
|
67063
67233
|
|
|
67064
|
-
var __extends$
|
|
67234
|
+
var __extends$q = (window && window.__extends) || (function () {
|
|
67065
67235
|
var extendStatics = function (d, b) {
|
|
67066
67236
|
extendStatics = Object.setPrototypeOf ||
|
|
67067
67237
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -67102,7 +67272,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
67102
67272
|
* Renders raster tiled images on top of the map tiles.
|
|
67103
67273
|
*/
|
|
67104
67274
|
var TileLayer = /** @class */ (function (_super) {
|
|
67105
|
-
__extends$
|
|
67275
|
+
__extends$q(TileLayer, _super);
|
|
67106
67276
|
/**
|
|
67107
67277
|
* Constructs a new TileLayer.
|
|
67108
67278
|
* @param options The options for the tile layer.
|
|
@@ -67255,7 +67425,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
67255
67425
|
return TileLayer;
|
|
67256
67426
|
}(SourceBuildingLayer));
|
|
67257
67427
|
|
|
67258
|
-
var __extends$
|
|
67428
|
+
var __extends$p = (window && window.__extends) || (function () {
|
|
67259
67429
|
var extendStatics = function (d, b) {
|
|
67260
67430
|
extendStatics = Object.setPrototypeOf ||
|
|
67261
67431
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -67274,7 +67444,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
67274
67444
|
* Options used to render graphics in a WebGLLayer.
|
|
67275
67445
|
*/
|
|
67276
67446
|
var WebGLLayerOptions = /** @class */ (function (_super) {
|
|
67277
|
-
__extends$
|
|
67447
|
+
__extends$p(WebGLLayerOptions, _super);
|
|
67278
67448
|
function WebGLLayerOptions() {
|
|
67279
67449
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
67280
67450
|
/**
|
|
@@ -67286,7 +67456,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
67286
67456
|
return WebGLLayerOptions;
|
|
67287
67457
|
}(LayerOptions$1));
|
|
67288
67458
|
|
|
67289
|
-
var __extends$
|
|
67459
|
+
var __extends$o = (window && window.__extends) || (function () {
|
|
67290
67460
|
var extendStatics = function (d, b) {
|
|
67291
67461
|
extendStatics = Object.setPrototypeOf ||
|
|
67292
67462
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -67305,7 +67475,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
67305
67475
|
* Enables custom rendering logic with access to the WebGL context of the map.
|
|
67306
67476
|
*/
|
|
67307
67477
|
var WebGLLayer = /** @class */ (function (_super) {
|
|
67308
|
-
__extends$
|
|
67478
|
+
__extends$o(WebGLLayer, _super);
|
|
67309
67479
|
/**
|
|
67310
67480
|
* Constructs a new WebGLLayer.
|
|
67311
67481
|
* @param id The id of the layer. If not specified a random one will be generated.
|
|
@@ -67538,7 +67708,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
67538
67708
|
|
|
67539
67709
|
var isElement$1 = /*@__PURE__*/getDefaultExportFromCjs(isElement_1);
|
|
67540
67710
|
|
|
67541
|
-
var __extends$
|
|
67711
|
+
var __extends$n = (window && window.__extends) || (function () {
|
|
67542
67712
|
var extendStatics = function (d, b) {
|
|
67543
67713
|
extendStatics = Object.setPrototypeOf ||
|
|
67544
67714
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -67557,7 +67727,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
67557
67727
|
* The options for a popup.
|
|
67558
67728
|
*/
|
|
67559
67729
|
var PopupOptions = /** @class */ (function (_super) {
|
|
67560
|
-
__extends$
|
|
67730
|
+
__extends$n(PopupOptions, _super);
|
|
67561
67731
|
function PopupOptions() {
|
|
67562
67732
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
67563
67733
|
/**
|
|
@@ -67626,7 +67796,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
67626
67796
|
return PopupOptions;
|
|
67627
67797
|
}(Options));
|
|
67628
67798
|
|
|
67629
|
-
var __extends$
|
|
67799
|
+
var __extends$m = (window && window.__extends) || (function () {
|
|
67630
67800
|
var extendStatics = function (d, b) {
|
|
67631
67801
|
extendStatics = Object.setPrototypeOf ||
|
|
67632
67802
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -67661,7 +67831,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
67661
67831
|
* An information window anchored at a specified position on a map.
|
|
67662
67832
|
*/
|
|
67663
67833
|
var Popup = /** @class */ (function (_super) {
|
|
67664
|
-
__extends$
|
|
67834
|
+
__extends$m(Popup, _super);
|
|
67665
67835
|
/**
|
|
67666
67836
|
* Constructs a Popup object and initializes it with the specified options.
|
|
67667
67837
|
* @param options The options for the popup.
|
|
@@ -68135,7 +68305,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
68135
68305
|
return Popup;
|
|
68136
68306
|
}(EventEmitter));
|
|
68137
68307
|
|
|
68138
|
-
var __extends$
|
|
68308
|
+
var __extends$l = (window && window.__extends) || (function () {
|
|
68139
68309
|
var extendStatics = function (d, b) {
|
|
68140
68310
|
extendStatics = Object.setPrototypeOf ||
|
|
68141
68311
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -68154,7 +68324,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
68154
68324
|
* Options for rendering an HtmlMarker object
|
|
68155
68325
|
*/
|
|
68156
68326
|
var HtmlMarkerOptions = /** @class */ (function (_super) {
|
|
68157
|
-
__extends$
|
|
68327
|
+
__extends$l(HtmlMarkerOptions, _super);
|
|
68158
68328
|
function HtmlMarkerOptions() {
|
|
68159
68329
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
68160
68330
|
/**
|
|
@@ -68232,7 +68402,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
68232
68402
|
return HtmlMarkerOptions;
|
|
68233
68403
|
}(Options));
|
|
68234
68404
|
|
|
68235
|
-
var __extends$
|
|
68405
|
+
var __extends$k = (window && window.__extends) || (function () {
|
|
68236
68406
|
var extendStatics = function (d, b) {
|
|
68237
68407
|
extendStatics = Object.setPrototypeOf ||
|
|
68238
68408
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -68251,7 +68421,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
68251
68421
|
* This class wraps an HTML element that can be displayed on the map.
|
|
68252
68422
|
*/
|
|
68253
68423
|
var HtmlMarker = /** @class */ (function (_super) {
|
|
68254
|
-
__extends$
|
|
68424
|
+
__extends$k(HtmlMarker, _super);
|
|
68255
68425
|
/**
|
|
68256
68426
|
* Constructs a new HtmlMarker.
|
|
68257
68427
|
* @param options The options for the HtmlMarker.
|
|
@@ -68550,7 +68720,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
68550
68720
|
return Media;
|
|
68551
68721
|
}());
|
|
68552
68722
|
|
|
68553
|
-
var __extends$
|
|
68723
|
+
var __extends$j = (window && window.__extends) || (function () {
|
|
68554
68724
|
var extendStatics = function (d, b) {
|
|
68555
68725
|
extendStatics = Object.setPrototypeOf ||
|
|
68556
68726
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -68569,7 +68739,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
68569
68739
|
* The options for a CopyrightControl object.
|
|
68570
68740
|
*/
|
|
68571
68741
|
var CopyrightControlOptions = /** @class */ (function (_super) {
|
|
68572
|
-
__extends$
|
|
68742
|
+
__extends$j(CopyrightControlOptions, _super);
|
|
68573
68743
|
function CopyrightControlOptions() {
|
|
68574
68744
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
68575
68745
|
/**
|
|
@@ -68598,7 +68768,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
68598
68768
|
return CopyrightControlOptions;
|
|
68599
68769
|
}(Options));
|
|
68600
68770
|
|
|
68601
|
-
var __extends$
|
|
68771
|
+
var __extends$i = (window && window.__extends) || (function () {
|
|
68602
68772
|
var extendStatics = function (d, b) {
|
|
68603
68773
|
extendStatics = Object.setPrototypeOf ||
|
|
68604
68774
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -68617,7 +68787,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
68617
68787
|
* @private
|
|
68618
68788
|
*/
|
|
68619
68789
|
var CopyrightControl = /** @class */ (function (_super) {
|
|
68620
|
-
__extends$
|
|
68790
|
+
__extends$i(CopyrightControl, _super);
|
|
68621
68791
|
function CopyrightControl(options) {
|
|
68622
68792
|
var _this = _super.call(this) || this;
|
|
68623
68793
|
_this.textAttribution = function (options) {
|
|
@@ -68639,13 +68809,10 @@ uniform ${precision} ${type} u_${name};
|
|
|
68639
68809
|
CopyrightControl.prototype.onAdd = function (map) {
|
|
68640
68810
|
this.map = map;
|
|
68641
68811
|
this.container = this.buildContainer(map, exports.ControlStyle.auto);
|
|
68642
|
-
this.container.className = "map-copyright";
|
|
68812
|
+
this.container.className = "map-copyright without-bg";
|
|
68643
68813
|
this.copyrightDiv = this.buildCopyrightDiv();
|
|
68644
68814
|
this.copyrightDiv.className = "azure-map-copyright";
|
|
68645
68815
|
this.container.appendChild(this.copyrightDiv);
|
|
68646
|
-
if (this.options.showLogo) {
|
|
68647
|
-
this.addRemoveLogo(true);
|
|
68648
|
-
}
|
|
68649
68816
|
if (this.options.showFeedbackLink) {
|
|
68650
68817
|
this.addRemoveFeedbackDiv(true);
|
|
68651
68818
|
}
|
|
@@ -68675,12 +68842,6 @@ uniform ${precision} ${type} u_${name};
|
|
|
68675
68842
|
}
|
|
68676
68843
|
this.options.copyrightContent = newOptions.copyrightContent;
|
|
68677
68844
|
}
|
|
68678
|
-
if (!newOptions.showLogo && this.logoAnchor) {
|
|
68679
|
-
this.addRemoveLogo(false);
|
|
68680
|
-
}
|
|
68681
|
-
else if (newOptions.showLogo && !this.logoAnchor) {
|
|
68682
|
-
this.addRemoveLogo(true);
|
|
68683
|
-
}
|
|
68684
68845
|
if (!newOptions.showFeedbackLink && this.feedbackAnchor) {
|
|
68685
68846
|
this.addRemoveFeedbackDiv(false);
|
|
68686
68847
|
}
|
|
@@ -68706,31 +68867,138 @@ uniform ${precision} ${type} u_${name};
|
|
|
68706
68867
|
var link = document.createElement("a");
|
|
68707
68868
|
link.setAttribute("alt", "Provide Map Data Feedback");
|
|
68708
68869
|
link.setAttribute("aria-label", "Provide Map Data Feedback");
|
|
68870
|
+
link.innerText = "Feedback";
|
|
68709
68871
|
link.href = CopyrightControl.feedbackLink;
|
|
68710
68872
|
link.target = "_blank";
|
|
68711
68873
|
link.rel = "noopener";
|
|
68712
|
-
link.className = "azure-map-feedback";
|
|
68874
|
+
link.className = "azure-map-feedback-text";
|
|
68713
68875
|
return link;
|
|
68714
68876
|
};
|
|
68715
68877
|
CopyrightControl.prototype.addRemoveFeedbackDiv = function (add) {
|
|
68716
68878
|
var _a, _b, _c, _d;
|
|
68717
68879
|
if (add) {
|
|
68718
68880
|
this.feedbackAnchor = this.buildFeedbackLink();
|
|
68719
|
-
this.
|
|
68881
|
+
this.feedbackTooltip = buildAccessibleTooltip("Provide Map Data Feedback");
|
|
68720
68882
|
this.container.appendChild(this.feedbackAnchor);
|
|
68721
|
-
this.container.appendChild(this.
|
|
68722
|
-
positionTooltip(this.
|
|
68883
|
+
this.container.appendChild(this.feedbackTooltip);
|
|
68884
|
+
positionTooltip(this.feedbackTooltip, this.feedbackAnchor);
|
|
68723
68885
|
(_b = (_a = this.map) === null || _a === void 0 ? void 0 : _a.events) === null || _b === void 0 ? void 0 : _b.add("moveend", this.updateFeedbackLink);
|
|
68724
68886
|
}
|
|
68725
68887
|
else {
|
|
68726
68888
|
this.feedbackAnchor.remove();
|
|
68727
|
-
this.
|
|
68728
|
-
delete this.
|
|
68889
|
+
this.feedbackTooltip.remove();
|
|
68890
|
+
delete this.feedbackTooltip;
|
|
68729
68891
|
delete this.feedbackAnchor;
|
|
68730
68892
|
(_d = (_c = this.map) === null || _c === void 0 ? void 0 : _c.events) === null || _d === void 0 ? void 0 : _d.remove("moveend", this.updateFeedbackLink);
|
|
68731
68893
|
}
|
|
68732
68894
|
};
|
|
68733
|
-
CopyrightControl.
|
|
68895
|
+
CopyrightControl.feedbackLink = "https://aka.ms/azuremaps-feedback?feedbackep=UrlAzureMapsWebSdk";
|
|
68896
|
+
return CopyrightControl;
|
|
68897
|
+
}(ControlBase));
|
|
68898
|
+
|
|
68899
|
+
var __extends$h = (window && window.__extends) || (function () {
|
|
68900
|
+
var extendStatics = function (d, b) {
|
|
68901
|
+
extendStatics = Object.setPrototypeOf ||
|
|
68902
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
68903
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
68904
|
+
return extendStatics(d, b);
|
|
68905
|
+
};
|
|
68906
|
+
return function (d, b) {
|
|
68907
|
+
if (typeof b !== "function" && b !== null)
|
|
68908
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
68909
|
+
extendStatics(d, b);
|
|
68910
|
+
function __() { this.constructor = d; }
|
|
68911
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
68912
|
+
};
|
|
68913
|
+
})();
|
|
68914
|
+
/**
|
|
68915
|
+
* The options for a LogoControl object.
|
|
68916
|
+
*/
|
|
68917
|
+
var LogoControlOptions = /** @class */ (function (_super) {
|
|
68918
|
+
__extends$h(LogoControlOptions, _super);
|
|
68919
|
+
function LogoControlOptions() {
|
|
68920
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
68921
|
+
/**
|
|
68922
|
+
* If true will show the Microsoft logo.
|
|
68923
|
+
*/
|
|
68924
|
+
_this.showLogo = true;
|
|
68925
|
+
return _this;
|
|
68926
|
+
}
|
|
68927
|
+
return LogoControlOptions;
|
|
68928
|
+
}(Options));
|
|
68929
|
+
|
|
68930
|
+
var __extends$g = (window && window.__extends) || (function () {
|
|
68931
|
+
var extendStatics = function (d, b) {
|
|
68932
|
+
extendStatics = Object.setPrototypeOf ||
|
|
68933
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
68934
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
68935
|
+
return extendStatics(d, b);
|
|
68936
|
+
};
|
|
68937
|
+
return function (d, b) {
|
|
68938
|
+
if (typeof b !== "function" && b !== null)
|
|
68939
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
68940
|
+
extendStatics(d, b);
|
|
68941
|
+
function __() { this.constructor = d; }
|
|
68942
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
68943
|
+
};
|
|
68944
|
+
})();
|
|
68945
|
+
/**
|
|
68946
|
+
* A control that displays the logo on the map.
|
|
68947
|
+
* @private
|
|
68948
|
+
*/
|
|
68949
|
+
var LogoControl = /** @class */ (function (_super) {
|
|
68950
|
+
__extends$g(LogoControl, _super);
|
|
68951
|
+
/**
|
|
68952
|
+
* Construct a control
|
|
68953
|
+
*/
|
|
68954
|
+
function LogoControl(options) {
|
|
68955
|
+
var _this = _super.call(this) || this;
|
|
68956
|
+
_this.map = null;
|
|
68957
|
+
/**
|
|
68958
|
+
* Set visibility of the control based on the container width.
|
|
68959
|
+
*/
|
|
68960
|
+
_this._onResize = function () {
|
|
68961
|
+
var _a, _b;
|
|
68962
|
+
var width = ((_b = (_a = _this.map) === null || _a === void 0 ? void 0 : _a.getMapContainer()) === null || _b === void 0 ? void 0 : _b.clientWidth) || 0;
|
|
68963
|
+
_this._setVisiblity(_this.options.showLogo && width >= LogoControl.CONTAINER_MIN_WIDTH);
|
|
68964
|
+
};
|
|
68965
|
+
_this.options = new LogoControlOptions().merge(options);
|
|
68966
|
+
return _this;
|
|
68967
|
+
}
|
|
68968
|
+
/**
|
|
68969
|
+
* Initialization method for the control which is called when added to the map.
|
|
68970
|
+
* @param map The map that the control will be added to.
|
|
68971
|
+
* @param options The ControlOptions for this control.
|
|
68972
|
+
* @return An HTMLElement to be placed on the map for the control.
|
|
68973
|
+
*/
|
|
68974
|
+
LogoControl.prototype.onAdd = function (map) {
|
|
68975
|
+
var _a;
|
|
68976
|
+
this.map = map;
|
|
68977
|
+
this.container = this.buildContainer(map, exports.ControlStyle.auto);
|
|
68978
|
+
this.container.className = "map-logo-control";
|
|
68979
|
+
(_a = this.map) === null || _a === void 0 ? void 0 : _a.events.add("resize", this._onResize);
|
|
68980
|
+
this._addRemoveLogo(this.options.showLogo);
|
|
68981
|
+
return this.container;
|
|
68982
|
+
};
|
|
68983
|
+
LogoControl.prototype.onRemove = function () {
|
|
68984
|
+
var _a;
|
|
68985
|
+
_super.prototype.onRemove.call(this);
|
|
68986
|
+
(_a = this.map) === null || _a === void 0 ? void 0 : _a.events.remove("resize", this._onResize);
|
|
68987
|
+
this.map = null;
|
|
68988
|
+
delete this.container;
|
|
68989
|
+
};
|
|
68990
|
+
LogoControl.prototype.setOptions = function (options) {
|
|
68991
|
+
var newOptions = new LogoControlOptions().merge(this.options, options);
|
|
68992
|
+
if (!newOptions.showLogo && this.logoAnchor) {
|
|
68993
|
+
this._addRemoveLogo(false);
|
|
68994
|
+
}
|
|
68995
|
+
else if (newOptions.showLogo && !this.logoAnchor) {
|
|
68996
|
+
this._addRemoveLogo(true);
|
|
68997
|
+
}
|
|
68998
|
+
this.options = newOptions;
|
|
68999
|
+
};
|
|
69000
|
+
LogoControl.prototype._addRemoveLogo = function (add) {
|
|
69001
|
+
var _a, _b;
|
|
68734
69002
|
if (add) {
|
|
68735
69003
|
this.logoAnchor = document.createElement("a");
|
|
68736
69004
|
this.logoAnchor.className = "azure-map-logo";
|
|
@@ -68741,15 +69009,25 @@ uniform ${precision} ${type} u_${name};
|
|
|
68741
69009
|
this.logoTooltip = buildAccessibleTooltip("Visit azure.microsoft.com");
|
|
68742
69010
|
this.container.appendChild(this.logoTooltip);
|
|
68743
69011
|
positionTooltip(this.logoTooltip, this.logoAnchor);
|
|
69012
|
+
this._setVisiblity(true);
|
|
68744
69013
|
}
|
|
68745
69014
|
else {
|
|
68746
|
-
this.logoAnchor.remove();
|
|
68747
|
-
this.logoTooltip.remove();
|
|
69015
|
+
(_a = this.logoAnchor) === null || _a === void 0 ? void 0 : _a.remove();
|
|
69016
|
+
(_b = this.logoTooltip) === null || _b === void 0 ? void 0 : _b.remove();
|
|
68748
69017
|
delete this.logoAnchor;
|
|
69018
|
+
this._setVisiblity(false);
|
|
68749
69019
|
}
|
|
68750
69020
|
};
|
|
68751
|
-
|
|
68752
|
-
|
|
69021
|
+
/**
|
|
69022
|
+
* Set visibility of the control.
|
|
69023
|
+
*/
|
|
69024
|
+
LogoControl.prototype._setVisiblity = function (visible) {
|
|
69025
|
+
if (this.container) {
|
|
69026
|
+
this.container.style.display = visible ? "flex" : "none";
|
|
69027
|
+
}
|
|
69028
|
+
};
|
|
69029
|
+
LogoControl.CONTAINER_MIN_WIDTH = 480; // The minimum width of the container to show the logo, 5 copyright texts, and the feedback link.
|
|
69030
|
+
return LogoControl;
|
|
68753
69031
|
}(ControlBase));
|
|
68754
69032
|
|
|
68755
69033
|
var __assign$4 = (window && window.__assign) || function () {
|
|
@@ -70383,6 +70661,17 @@ uniform ${precision} ${type} u_${name};
|
|
|
70383
70661
|
_this.layers = mbLayers;
|
|
70384
70662
|
return _this;
|
|
70385
70663
|
}
|
|
70664
|
+
/**
|
|
70665
|
+
* Gets the options of the layer.
|
|
70666
|
+
*/
|
|
70667
|
+
FundamentalMapLayer.prototype.getOptions = function () {
|
|
70668
|
+
return {};
|
|
70669
|
+
};
|
|
70670
|
+
/**
|
|
70671
|
+
* Sets the options of the layer.
|
|
70672
|
+
* @param options The new options of the layer.
|
|
70673
|
+
*/
|
|
70674
|
+
FundamentalMapLayer.prototype.setOptions = function (options) { return; };
|
|
70386
70675
|
/**
|
|
70387
70676
|
* @internal
|
|
70388
70677
|
*/
|
|
@@ -70861,14 +71150,14 @@ uniform ${precision} ${type} u_${name};
|
|
|
70861
71150
|
/**
|
|
70862
71151
|
* Retrieve all Shapes and GeoJSON features that are visible on the map that are in a DataSource or VectorTileSource.
|
|
70863
71152
|
* Shape objects are editable, while Feature objects are not editable and either reside in a VectorTileSource or represent a cluster point.
|
|
70864
|
-
* Clusters have the following properties
|
|
70865
|
-
*
|
|
71153
|
+
* Clusters have the following properties:<br />
|
|
71154
|
+
* `cluster`: `boolean` - Indicates that the point is a cluster.
|
|
70866
71155
|
* This will be set to true if Point object represents a cluster.
|
|
70867
71156
|
* All other point objects are unlikely to have this value unless
|
|
70868
|
-
* a property with this same name was added to the Point property data from your app
|
|
70869
|
-
*
|
|
70870
|
-
*
|
|
70871
|
-
*
|
|
71157
|
+
* a property with this same name was added to the Point property data from your app.<br />
|
|
71158
|
+
* `cluster_id`: `string` - A unique id for the cluster.<br />
|
|
71159
|
+
* `point_count`: `number` - The number of points inside the cluster.<br />
|
|
71160
|
+
* `point_count_abbreviated`: `string` - An abbreviated string version of the point count. i.e. `"10K"`<br />
|
|
70872
71161
|
* Features/Shapes that are not visible or who's layer zoom range does not include the current zoom level will not be returned.
|
|
70873
71162
|
* Symbol features/Shapes that have been hidden due to text or icon collisions are not included.
|
|
70874
71163
|
* Features/Shapes from all other layers are included even if they have no contribution to the map rendering, e.g. alpha set to zero.
|
|
@@ -71536,10 +71825,10 @@ uniform ${precision} ${type} u_${name};
|
|
|
71536
71825
|
*/
|
|
71537
71826
|
_this.duration = 1000;
|
|
71538
71827
|
/**
|
|
71539
|
-
* The type of animation
|
|
71540
|
-
*
|
|
71541
|
-
*
|
|
71542
|
-
*
|
|
71828
|
+
* The type of animation.<br />
|
|
71829
|
+
* `"jump"` is an immediate change.<br />
|
|
71830
|
+
* `"ease"` is a gradual change of the camera's settings.<br />
|
|
71831
|
+
* `"fly"` is a gradual change of the camera's settings following an arc resembling flight.<br />
|
|
71543
71832
|
* Default `"jump"`.
|
|
71544
71833
|
* @default "jump"
|
|
71545
71834
|
*/
|
|
@@ -71782,6 +72071,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
71782
72071
|
_this.pitch = 0;
|
|
71783
72072
|
/**
|
|
71784
72073
|
* The minimum zoom level that the map can be zoomed out to during the animation. Must be between 0 and 24, and less than or equal to `maxZoom`.
|
|
72074
|
+
* Setting `minZoom` below 1 may result in an empty map when the zoom level is less than 1.
|
|
71785
72075
|
* Default `1`.
|
|
71786
72076
|
* @default 1
|
|
71787
72077
|
*/
|
|
@@ -72146,15 +72436,15 @@ uniform ${precision} ${type} u_${name};
|
|
|
72146
72436
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
72147
72437
|
/**
|
|
72148
72438
|
* Specifies wether extruded geometries are lit relative to the map or viewport.
|
|
72149
|
-
* Supported values
|
|
72150
|
-
*
|
|
72151
|
-
*
|
|
72439
|
+
* Supported values:<br />
|
|
72440
|
+
* `"map"`: The position of the light source is aligned to the rotation of the map.<br />
|
|
72441
|
+
* `"viewport"`: The position fo the light source is aligned to the rotation of the viewport.<br />
|
|
72152
72442
|
* Default: `"map"`
|
|
72153
72443
|
* @default "map"
|
|
72154
72444
|
*/
|
|
72155
72445
|
_this.anchor = "map";
|
|
72156
72446
|
/**
|
|
72157
|
-
* Color tint for lighting extruded geometries
|
|
72447
|
+
* Color tint for lighting extruded geometries.
|
|
72158
72448
|
* Default: `"#FFFFFF"`
|
|
72159
72449
|
* @default "#FFFFFF"
|
|
72160
72450
|
*/
|
|
@@ -73243,7 +73533,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
73243
73533
|
if (!_this.indoorState) {
|
|
73244
73534
|
return !style.name.includes('indoor');
|
|
73245
73535
|
// NOTE: azure-maps-indoor prior to 2.0.7 will not pass theme auto
|
|
73246
|
-
// the IndoorModule will request getTheme() from StyleManager and will call StyleManager.setStyleSet(theme == 'dark ? 'indoor_dark' : 'indoor') as approperaite
|
|
73536
|
+
// the IndoorModule will request getTheme() from StyleManager and will call StyleManager.setStyleSet(theme == 'dark ? 'indoor_dark' : 'indoor') as approperaite
|
|
73247
73537
|
}
|
|
73248
73538
|
else if (_this.indoorState.theme === 'auto') {
|
|
73249
73539
|
return style.name.endsWith(style.theme === 'dark' ? '_indoor_dark' : '_indoor');
|
|
@@ -73268,7 +73558,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
73268
73558
|
styleVersion: definitions.version !== undefined && definitions.version !== null
|
|
73269
73559
|
? definitions.version
|
|
73270
73560
|
: _this.serviceOptions.styleDefinitionsVersion,
|
|
73271
|
-
// thus far we don't need to differentiate based on parameter here, as stylePatch will be called on cached styles as well
|
|
73561
|
+
// thus far we don't need to differentiate based on parameter here, as stylePatch will be called on cached styles as well
|
|
73272
73562
|
//language: styleOptions.language
|
|
73273
73563
|
// add MapControlVersion to make sure we have different local cache between map control versions
|
|
73274
73564
|
mcv: version.replace(/\./g, '')
|
|
@@ -73385,7 +73675,14 @@ uniform ${precision} ${type} u_${name};
|
|
|
73385
73675
|
}
|
|
73386
73676
|
if (layer) {
|
|
73387
73677
|
var sourcesToCopy = new Set(Array.from(userLayer.layer._getSourceIds())
|
|
73388
|
-
.map(function (sourceId) {
|
|
73678
|
+
.map(function (sourceId) {
|
|
73679
|
+
// If source is already present in the target style, skip copy
|
|
73680
|
+
if (style.sources[sourceId]) {
|
|
73681
|
+
return undefined;
|
|
73682
|
+
}
|
|
73683
|
+
var source = previousStyle.sources[sourceId];
|
|
73684
|
+
return source ? { source: source, id: sourceId } : undefined;
|
|
73685
|
+
})
|
|
73389
73686
|
.filter(function (source) { return source !== undefined; }));
|
|
73390
73687
|
var insertIdx = beforeLayerId ? style.layers.findIndex(function (layer) { return layer.id === beforeLayerId; }) : -1;
|
|
73391
73688
|
if (insertIdx > -1) {
|
|
@@ -73421,7 +73718,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
73421
73718
|
// FIXME: below diffing will be soon fixed on the maplibre side
|
|
73422
73719
|
// If there was a previous styledata change event attached, remove it.
|
|
73423
73720
|
// When the sprite url changes between style changes then maplibre can't perform the diff
|
|
73424
|
-
// In such cases it recalculate the style again. Removing previous attached
|
|
73721
|
+
// In such cases it recalculate the style again. Removing previous attached
|
|
73425
73722
|
// event listener makes sure that style changed event is not fired twice in these cases.
|
|
73426
73723
|
_this.map.events.remove("styledata", styleDataCallback);
|
|
73427
73724
|
_this.map.events.addOnce("styledata", styleDataCallback);
|
|
@@ -73988,6 +74285,13 @@ uniform ${precision} ${type} u_${name};
|
|
|
73988
74285
|
_this.controls.add(_this.copyrightControl, {
|
|
73989
74286
|
position: exports.ControlPosition.NonFixed
|
|
73990
74287
|
});
|
|
74288
|
+
// Add logo control to occupy the bottom left corner of the map.
|
|
74289
|
+
_this.logoControl = new LogoControl({
|
|
74290
|
+
showLogo: _this.styleOptions.showLogo
|
|
74291
|
+
});
|
|
74292
|
+
_this.controls.add(_this.logoControl, {
|
|
74293
|
+
position: exports.ControlPosition.BottomLeft
|
|
74294
|
+
});
|
|
73991
74295
|
// Initialize state of map
|
|
73992
74296
|
// --> Initialize the authentication manager
|
|
73993
74297
|
var authManInit = _this.authentication ?
|
|
@@ -74195,6 +74499,9 @@ uniform ${precision} ${type} u_${name};
|
|
|
74195
74499
|
pitch: cameraOptions.pitch,
|
|
74196
74500
|
around: undefined
|
|
74197
74501
|
};
|
|
74502
|
+
if (cameraOptions.minZoom < 1) {
|
|
74503
|
+
console.warn("Setting minZoom below 1 may result in an empty map when the zoom level is less than 1.");
|
|
74504
|
+
}
|
|
74198
74505
|
this.map.setMinZoom(cameraOptions.minZoom);
|
|
74199
74506
|
this.map.setMaxZoom(cameraOptions.maxZoom);
|
|
74200
74507
|
if (cameraOptions.minPitch) {
|
|
@@ -74292,6 +74599,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
74292
74599
|
// Add or remove the logo if needed.
|
|
74293
74600
|
if (newOptions.showLogo !== this.styleOptions.showLogo) {
|
|
74294
74601
|
this.copyrightControl.setOptions({ showLogo: newOptions.showLogo });
|
|
74602
|
+
this.logoControl.setOptions({ showLogo: newOptions.showLogo });
|
|
74295
74603
|
}
|
|
74296
74604
|
// Update showing tile boundaries if needed.
|
|
74297
74605
|
if (newOptions.showTileBoundaries !== this.styleOptions.showTileBoundaries) {
|