azure-maps-control 2.2.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atlas-core-bare-snr.js +22652 -0
- package/dist/atlas-core-bare.js +2281 -367
- package/dist/atlas-core-bare.min.js +1 -1
- package/dist/atlas-core-snr.js +65779 -0
- package/dist/atlas-core.js +2287 -373
- package/dist/atlas-core.min.js +1 -1
- package/dist/atlas-internal.min.js +1 -1
- package/dist/atlas.css +6 -6
- package/dist/atlas.js +2280 -366
- package/dist/atlas.min.css +1 -1
- package/dist/atlas.min.js +1 -1
- package/package.json +17 -26
- package/thirdpartynotices.txt +0 -0
- package/typings/index.d.ts +14 -0
package/dist/atlas.js
CHANGED
|
@@ -43206,12 +43206,12 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
43206
43206
|
var azuremapsMaplibreGlUnminified_4 = azuremapsMaplibreGlUnminified.Marker;
|
|
43207
43207
|
|
|
43208
43208
|
var env = {
|
|
43209
|
-
domain: "
|
|
43210
|
-
staticAssetsDomain: "
|
|
43209
|
+
domain: "t-azmaps.azurelbs.com",
|
|
43210
|
+
staticAssetsDomain: "t-azmaps.azurelbs.com",
|
|
43211
43211
|
stylePath: "styling",
|
|
43212
43212
|
styleDefinitionsVersion: "2022-08-05",
|
|
43213
|
-
appInsightsKey: "
|
|
43214
|
-
aadInstance: "https://login.
|
|
43213
|
+
appInsightsKey: "",
|
|
43214
|
+
aadInstance: "https://login.windows-ppe.net/"
|
|
43215
43215
|
};
|
|
43216
43216
|
var constants = {
|
|
43217
43217
|
apiVersionQueryParameter: "api-version",
|
|
@@ -43236,126 +43236,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
43236
43236
|
sessionIdHeaderName: "Session-Id"
|
|
43237
43237
|
};
|
|
43238
43238
|
|
|
43239
|
-
|
|
43240
|
-
|
|
43241
|
-
|
|
43242
|
-
|
|
43243
|
-
|
|
43244
|
-
|
|
43245
|
-
|
|
43246
|
-
|
|
43247
|
-
|
|
43248
|
-
|
|
43249
|
-
|
|
43250
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
43251
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
43252
|
-
***************************************************************************** */
|
|
43253
|
-
/* global Reflect, Promise */
|
|
43254
|
-
|
|
43255
|
-
var extendStatics = function(d, b) {
|
|
43256
|
-
extendStatics = Object.setPrototypeOf ||
|
|
43257
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
43258
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
43259
|
-
return extendStatics(d, b);
|
|
43260
|
-
};
|
|
43261
|
-
|
|
43262
|
-
function __extends(d, b) {
|
|
43263
|
-
extendStatics(d, b);
|
|
43264
|
-
function __() { this.constructor = d; }
|
|
43265
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
43266
|
-
}
|
|
43267
|
-
|
|
43268
|
-
var __assign = function() {
|
|
43269
|
-
__assign = Object.assign || function __assign(t) {
|
|
43270
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
43271
|
-
s = arguments[i];
|
|
43272
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
43273
|
-
}
|
|
43274
|
-
return t;
|
|
43275
|
-
};
|
|
43276
|
-
return __assign.apply(this, arguments);
|
|
43277
|
-
};
|
|
43278
|
-
|
|
43279
|
-
function __decorate(decorators, target, key, desc) {
|
|
43280
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
43281
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
43282
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
43283
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
43284
|
-
}
|
|
43285
|
-
|
|
43286
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
43287
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43288
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
43289
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
43290
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43291
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
43292
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43293
|
-
});
|
|
43294
|
-
}
|
|
43295
|
-
|
|
43296
|
-
function __generator(thisArg, body) {
|
|
43297
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
43298
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
43299
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43300
|
-
function step(op) {
|
|
43301
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
43302
|
-
while (_) try {
|
|
43303
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
43304
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
43305
|
-
switch (op[0]) {
|
|
43306
|
-
case 0: case 1: t = op; break;
|
|
43307
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
43308
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
43309
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
43310
|
-
default:
|
|
43311
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
43312
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
43313
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
43314
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
43315
|
-
if (t[2]) _.ops.pop();
|
|
43316
|
-
_.trys.pop(); continue;
|
|
43317
|
-
}
|
|
43318
|
-
op = body.call(thisArg, _);
|
|
43319
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
43320
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
43321
|
-
}
|
|
43322
|
-
}
|
|
43323
|
-
|
|
43324
|
-
function __values(o) {
|
|
43325
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
43326
|
-
if (m) return m.call(o);
|
|
43327
|
-
if (o && typeof o.length === "number") return {
|
|
43328
|
-
next: function () {
|
|
43329
|
-
if (o && i >= o.length) o = void 0;
|
|
43330
|
-
return { value: o && o[i++], done: !o };
|
|
43331
|
-
}
|
|
43332
|
-
};
|
|
43333
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
43334
|
-
}
|
|
43335
|
-
|
|
43336
|
-
function __read(o, n) {
|
|
43337
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
43338
|
-
if (!m) return o;
|
|
43339
|
-
var i = m.call(o), r, ar = [], e;
|
|
43340
|
-
try {
|
|
43341
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
43342
|
-
}
|
|
43343
|
-
catch (error) { e = { error: error }; }
|
|
43344
|
-
finally {
|
|
43345
|
-
try {
|
|
43346
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
43347
|
-
}
|
|
43348
|
-
finally { if (e) throw e.error; }
|
|
43349
|
-
}
|
|
43350
|
-
return ar;
|
|
43351
|
-
}
|
|
43352
|
-
|
|
43353
|
-
function __spread() {
|
|
43354
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
43355
|
-
ar = ar.concat(__read(arguments[i]));
|
|
43356
|
-
return ar;
|
|
43357
|
-
}
|
|
43358
|
-
|
|
43239
|
+
var __values = (window && window.__values) || function(o) {
|
|
43240
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
43241
|
+
if (m) return m.call(o);
|
|
43242
|
+
if (o && typeof o.length === "number") return {
|
|
43243
|
+
next: function () {
|
|
43244
|
+
if (o && i >= o.length) o = void 0;
|
|
43245
|
+
return { value: o && o[i++], done: !o };
|
|
43246
|
+
}
|
|
43247
|
+
};
|
|
43248
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
43249
|
+
};
|
|
43359
43250
|
/**
|
|
43360
43251
|
* @private
|
|
43361
43252
|
*/
|
|
@@ -43413,6 +43304,37 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
43413
43304
|
return Options;
|
|
43414
43305
|
}());
|
|
43415
43306
|
|
|
43307
|
+
var __extends = (window && window.__extends) || (function () {
|
|
43308
|
+
var extendStatics = function (d, b) {
|
|
43309
|
+
extendStatics = Object.setPrototypeOf ||
|
|
43310
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
43311
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
43312
|
+
return extendStatics(d, b);
|
|
43313
|
+
};
|
|
43314
|
+
return function (d, b) {
|
|
43315
|
+
if (typeof b !== "function" && b !== null)
|
|
43316
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
43317
|
+
extendStatics(d, b);
|
|
43318
|
+
function __() { this.constructor = d; }
|
|
43319
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
43320
|
+
};
|
|
43321
|
+
})();
|
|
43322
|
+
var __read = (window && window.__read) || function (o, n) {
|
|
43323
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
43324
|
+
if (!m) return o;
|
|
43325
|
+
var i = m.call(o), r, ar = [], e;
|
|
43326
|
+
try {
|
|
43327
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
43328
|
+
}
|
|
43329
|
+
catch (error) { e = { error: error }; }
|
|
43330
|
+
finally {
|
|
43331
|
+
try {
|
|
43332
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
43333
|
+
}
|
|
43334
|
+
finally { if (e) throw e.error; }
|
|
43335
|
+
}
|
|
43336
|
+
return ar;
|
|
43337
|
+
};
|
|
43416
43338
|
/**
|
|
43417
43339
|
* @private
|
|
43418
43340
|
*/
|
|
@@ -43488,7 +43410,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
43488
43410
|
return Url;
|
|
43489
43411
|
}());
|
|
43490
43412
|
|
|
43491
|
-
var version = "2.2.
|
|
43413
|
+
var version = "2.2.1";
|
|
43492
43414
|
|
|
43493
43415
|
/**
|
|
43494
43416
|
* A helper class that provides methods for getting various forms of the map controls current version.
|
|
@@ -43610,6 +43532,21 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
43610
43532
|
eventTarget.addEventListener("focusin", positionTooltip);
|
|
43611
43533
|
};
|
|
43612
43534
|
|
|
43535
|
+
var __extends$1 = (window && window.__extends) || (function () {
|
|
43536
|
+
var extendStatics = function (d, b) {
|
|
43537
|
+
extendStatics = Object.setPrototypeOf ||
|
|
43538
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
43539
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
43540
|
+
return extendStatics(d, b);
|
|
43541
|
+
};
|
|
43542
|
+
return function (d, b) {
|
|
43543
|
+
if (typeof b !== "function" && b !== null)
|
|
43544
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
43545
|
+
extendStatics(d, b);
|
|
43546
|
+
function __() { this.constructor = d; }
|
|
43547
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
43548
|
+
};
|
|
43549
|
+
})();
|
|
43613
43550
|
(function (ControlPosition) {
|
|
43614
43551
|
/**
|
|
43615
43552
|
* Places the control in the top left of the map.
|
|
@@ -43641,7 +43578,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
43641
43578
|
* The options for adding a control to the map.
|
|
43642
43579
|
*/
|
|
43643
43580
|
var ControlOptions = /** @class */ (function (_super) {
|
|
43644
|
-
__extends(ControlOptions, _super);
|
|
43581
|
+
__extends$1(ControlOptions, _super);
|
|
43645
43582
|
function ControlOptions() {
|
|
43646
43583
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
43647
43584
|
/**
|
|
@@ -43786,12 +43723,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
43786
43723
|
EventEmitter: EventEmitter
|
|
43787
43724
|
});
|
|
43788
43725
|
|
|
43726
|
+
var __extends$2 = (window && window.__extends) || (function () {
|
|
43727
|
+
var extendStatics = function (d, b) {
|
|
43728
|
+
extendStatics = Object.setPrototypeOf ||
|
|
43729
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
43730
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
43731
|
+
return extendStatics(d, b);
|
|
43732
|
+
};
|
|
43733
|
+
return function (d, b) {
|
|
43734
|
+
if (typeof b !== "function" && b !== null)
|
|
43735
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
43736
|
+
extendStatics(d, b);
|
|
43737
|
+
function __() { this.constructor = d; }
|
|
43738
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
43739
|
+
};
|
|
43740
|
+
})();
|
|
43789
43741
|
/**
|
|
43790
43742
|
* For internal use only.
|
|
43791
43743
|
* Implements control interface and provides support for automatic styling based on the map style.
|
|
43792
43744
|
*/
|
|
43793
43745
|
var ControlBase = /** @class */ (function (_super) {
|
|
43794
|
-
__extends(ControlBase, _super);
|
|
43746
|
+
__extends$2(ControlBase, _super);
|
|
43795
43747
|
function ControlBase() {
|
|
43796
43748
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
43797
43749
|
/**
|
|
@@ -43896,11 +43848,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
43896
43848
|
return ControlBase;
|
|
43897
43849
|
}(EventEmitter));
|
|
43898
43850
|
|
|
43851
|
+
var __extends$3 = (window && window.__extends) || (function () {
|
|
43852
|
+
var extendStatics = function (d, b) {
|
|
43853
|
+
extendStatics = Object.setPrototypeOf ||
|
|
43854
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
43855
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
43856
|
+
return extendStatics(d, b);
|
|
43857
|
+
};
|
|
43858
|
+
return function (d, b) {
|
|
43859
|
+
if (typeof b !== "function" && b !== null)
|
|
43860
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
43861
|
+
extendStatics(d, b);
|
|
43862
|
+
function __() { this.constructor = d; }
|
|
43863
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
43864
|
+
};
|
|
43865
|
+
})();
|
|
43899
43866
|
/**
|
|
43900
43867
|
* The options for a CompassControl object.
|
|
43901
43868
|
*/
|
|
43902
43869
|
var CompassControlOptions = /** @class */ (function (_super) {
|
|
43903
|
-
__extends(CompassControlOptions, _super);
|
|
43870
|
+
__extends$3(CompassControlOptions, _super);
|
|
43904
43871
|
function CompassControlOptions() {
|
|
43905
43872
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
43906
43873
|
/**
|
|
@@ -43925,11 +43892,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
43925
43892
|
return CompassControlOptions;
|
|
43926
43893
|
}(Options));
|
|
43927
43894
|
|
|
43895
|
+
var __extends$4 = (window && window.__extends) || (function () {
|
|
43896
|
+
var extendStatics = function (d, b) {
|
|
43897
|
+
extendStatics = Object.setPrototypeOf ||
|
|
43898
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
43899
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
43900
|
+
return extendStatics(d, b);
|
|
43901
|
+
};
|
|
43902
|
+
return function (d, b) {
|
|
43903
|
+
if (typeof b !== "function" && b !== null)
|
|
43904
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
43905
|
+
extendStatics(d, b);
|
|
43906
|
+
function __() { this.constructor = d; }
|
|
43907
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
43908
|
+
};
|
|
43909
|
+
})();
|
|
43928
43910
|
/**
|
|
43929
43911
|
* A control for changing the rotation of the map.
|
|
43930
43912
|
*/
|
|
43931
43913
|
var CompassControl = /** @class */ (function (_super) {
|
|
43932
|
-
__extends(CompassControl, _super);
|
|
43914
|
+
__extends$4(CompassControl, _super);
|
|
43933
43915
|
/**
|
|
43934
43916
|
* Constructs a CompassControl.
|
|
43935
43917
|
* @param options The options for the control.
|
|
@@ -44097,11 +44079,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
44097
44079
|
return CompassControl;
|
|
44098
44080
|
}(ControlBase));
|
|
44099
44081
|
|
|
44082
|
+
var __extends$5 = (window && window.__extends) || (function () {
|
|
44083
|
+
var extendStatics = function (d, b) {
|
|
44084
|
+
extendStatics = Object.setPrototypeOf ||
|
|
44085
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
44086
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
44087
|
+
return extendStatics(d, b);
|
|
44088
|
+
};
|
|
44089
|
+
return function (d, b) {
|
|
44090
|
+
if (typeof b !== "function" && b !== null)
|
|
44091
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
44092
|
+
extendStatics(d, b);
|
|
44093
|
+
function __() { this.constructor = d; }
|
|
44094
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
44095
|
+
};
|
|
44096
|
+
})();
|
|
44100
44097
|
/**
|
|
44101
44098
|
* The options for a PitchControl object.
|
|
44102
44099
|
*/
|
|
44103
44100
|
var PitchControlOptions = /** @class */ (function (_super) {
|
|
44104
|
-
__extends(PitchControlOptions, _super);
|
|
44101
|
+
__extends$5(PitchControlOptions, _super);
|
|
44105
44102
|
function PitchControlOptions() {
|
|
44106
44103
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
44107
44104
|
/**
|
|
@@ -44126,11 +44123,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
44126
44123
|
return PitchControlOptions;
|
|
44127
44124
|
}(Options));
|
|
44128
44125
|
|
|
44126
|
+
var __extends$6 = (window && window.__extends) || (function () {
|
|
44127
|
+
var extendStatics = function (d, b) {
|
|
44128
|
+
extendStatics = Object.setPrototypeOf ||
|
|
44129
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
44130
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
44131
|
+
return extendStatics(d, b);
|
|
44132
|
+
};
|
|
44133
|
+
return function (d, b) {
|
|
44134
|
+
if (typeof b !== "function" && b !== null)
|
|
44135
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
44136
|
+
extendStatics(d, b);
|
|
44137
|
+
function __() { this.constructor = d; }
|
|
44138
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
44139
|
+
};
|
|
44140
|
+
})();
|
|
44129
44141
|
/**
|
|
44130
44142
|
* A control for changing the pitch of the map.
|
|
44131
44143
|
*/
|
|
44132
44144
|
var PitchControl = /** @class */ (function (_super) {
|
|
44133
|
-
__extends(PitchControl, _super);
|
|
44145
|
+
__extends$6(PitchControl, _super);
|
|
44134
44146
|
/**
|
|
44135
44147
|
* Constructs a PitchControl.
|
|
44136
44148
|
* @param options The options for the control.
|
|
@@ -47425,11 +47437,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
47425
47437
|
|
|
47426
47438
|
var merge_1 = merge;
|
|
47427
47439
|
|
|
47440
|
+
var __extends$7 = (window && window.__extends) || (function () {
|
|
47441
|
+
var extendStatics = function (d, b) {
|
|
47442
|
+
extendStatics = Object.setPrototypeOf ||
|
|
47443
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
47444
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
47445
|
+
return extendStatics(d, b);
|
|
47446
|
+
};
|
|
47447
|
+
return function (d, b) {
|
|
47448
|
+
if (typeof b !== "function" && b !== null)
|
|
47449
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
47450
|
+
extendStatics(d, b);
|
|
47451
|
+
function __() { this.constructor = d; }
|
|
47452
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
47453
|
+
};
|
|
47454
|
+
})();
|
|
47428
47455
|
/**
|
|
47429
47456
|
* The options for a StyleControl object.
|
|
47430
47457
|
*/
|
|
47431
47458
|
var StyleControlOptions = /** @class */ (function (_super) {
|
|
47432
|
-
__extends(StyleControlOptions, _super);
|
|
47459
|
+
__extends$7(StyleControlOptions, _super);
|
|
47433
47460
|
function StyleControlOptions() {
|
|
47434
47461
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
47435
47462
|
/**
|
|
@@ -47474,11 +47501,78 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
47474
47501
|
return StyleControlOptions;
|
|
47475
47502
|
}(Options));
|
|
47476
47503
|
|
|
47504
|
+
var __extends$8 = (window && window.__extends) || (function () {
|
|
47505
|
+
var extendStatics = function (d, b) {
|
|
47506
|
+
extendStatics = Object.setPrototypeOf ||
|
|
47507
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
47508
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
47509
|
+
return extendStatics(d, b);
|
|
47510
|
+
};
|
|
47511
|
+
return function (d, b) {
|
|
47512
|
+
if (typeof b !== "function" && b !== null)
|
|
47513
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
47514
|
+
extendStatics(d, b);
|
|
47515
|
+
function __() { this.constructor = d; }
|
|
47516
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
47517
|
+
};
|
|
47518
|
+
})();
|
|
47519
|
+
var __awaiter = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
47520
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
47521
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
47522
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
47523
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
47524
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
47525
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
47526
|
+
});
|
|
47527
|
+
};
|
|
47528
|
+
var __generator = (window && window.__generator) || function (thisArg, body) {
|
|
47529
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
47530
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
47531
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
47532
|
+
function step(op) {
|
|
47533
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
47534
|
+
while (_) try {
|
|
47535
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47536
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
47537
|
+
switch (op[0]) {
|
|
47538
|
+
case 0: case 1: t = op; break;
|
|
47539
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
47540
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
47541
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
47542
|
+
default:
|
|
47543
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
47544
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
47545
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
47546
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
47547
|
+
if (t[2]) _.ops.pop();
|
|
47548
|
+
_.trys.pop(); continue;
|
|
47549
|
+
}
|
|
47550
|
+
op = body.call(thisArg, _);
|
|
47551
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
47552
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47553
|
+
}
|
|
47554
|
+
};
|
|
47555
|
+
var __read$1 = (window && window.__read) || function (o, n) {
|
|
47556
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
47557
|
+
if (!m) return o;
|
|
47558
|
+
var i = m.call(o), r, ar = [], e;
|
|
47559
|
+
try {
|
|
47560
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
47561
|
+
}
|
|
47562
|
+
catch (error) { e = { error: error }; }
|
|
47563
|
+
finally {
|
|
47564
|
+
try {
|
|
47565
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
47566
|
+
}
|
|
47567
|
+
finally { if (e) throw e.error; }
|
|
47568
|
+
}
|
|
47569
|
+
return ar;
|
|
47570
|
+
};
|
|
47477
47571
|
/**
|
|
47478
47572
|
* A control for changing the style of the map.
|
|
47479
47573
|
*/
|
|
47480
47574
|
var StyleControl = /** @class */ (function (_super) {
|
|
47481
|
-
__extends(StyleControl, _super);
|
|
47575
|
+
__extends$8(StyleControl, _super);
|
|
47482
47576
|
/**
|
|
47483
47577
|
* Constructs a StyleControl.
|
|
47484
47578
|
* @param options The options for the control.
|
|
@@ -47620,7 +47714,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
47620
47714
|
image_1.src = newSrc;
|
|
47621
47715
|
}
|
|
47622
47716
|
Object.entries(this.styleButtons).forEach(function (_a) {
|
|
47623
|
-
var _b = __read(_a, 2), buttonStyleName = _b[0], button = _b[1];
|
|
47717
|
+
var _b = __read$1(_a, 2), buttonStyleName = _b[0], button = _b[1];
|
|
47624
47718
|
return button.setAttribute('aria-current', buttonStyleName === styleName ? 'true' : 'false');
|
|
47625
47719
|
});
|
|
47626
47720
|
this.map.styles.definitions().then(function (mapConfiguration) {
|
|
@@ -47698,7 +47792,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
47698
47792
|
_this.map.setStyle({ style: name });
|
|
47699
47793
|
}
|
|
47700
47794
|
Object.entries(_this.styleButtons).forEach(function (_a) {
|
|
47701
|
-
var _b = __read(_a, 2), styleName = _b[0], button = _b[1];
|
|
47795
|
+
var _b = __read$1(_a, 2), styleName = _b[0], button = _b[1];
|
|
47702
47796
|
return button.setAttribute('aria-current', styleName === name ? 'true' : 'false');
|
|
47703
47797
|
});
|
|
47704
47798
|
}
|
|
@@ -47783,7 +47877,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
47783
47877
|
});
|
|
47784
47878
|
var targetStyleName = this.map.getStyle().style;
|
|
47785
47879
|
Object.entries(this.styleButtons).forEach(function (_a) {
|
|
47786
|
-
var _b = __read(_a, 2), styleName = _b[0], button = _b[1];
|
|
47880
|
+
var _b = __read$1(_a, 2), styleName = _b[0], button = _b[1];
|
|
47787
47881
|
return button.setAttribute('aria-current', styleName === targetStyleName ? 'true' : 'false');
|
|
47788
47882
|
});
|
|
47789
47883
|
};
|
|
@@ -47800,11 +47894,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
47800
47894
|
return StyleControl;
|
|
47801
47895
|
}(ControlBase));
|
|
47802
47896
|
|
|
47897
|
+
var __extends$9 = (window && window.__extends) || (function () {
|
|
47898
|
+
var extendStatics = function (d, b) {
|
|
47899
|
+
extendStatics = Object.setPrototypeOf ||
|
|
47900
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
47901
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
47902
|
+
return extendStatics(d, b);
|
|
47903
|
+
};
|
|
47904
|
+
return function (d, b) {
|
|
47905
|
+
if (typeof b !== "function" && b !== null)
|
|
47906
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
47907
|
+
extendStatics(d, b);
|
|
47908
|
+
function __() { this.constructor = d; }
|
|
47909
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
47910
|
+
};
|
|
47911
|
+
})();
|
|
47803
47912
|
/**
|
|
47804
47913
|
* The options for setting traffic on the map.
|
|
47805
47914
|
*/
|
|
47806
47915
|
var TrafficOptions = /** @class */ (function (_super) {
|
|
47807
|
-
__extends(TrafficOptions, _super);
|
|
47916
|
+
__extends$9(TrafficOptions, _super);
|
|
47808
47917
|
function TrafficOptions() {
|
|
47809
47918
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
47810
47919
|
/**
|
|
@@ -47829,11 +47938,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
47829
47938
|
return TrafficOptions;
|
|
47830
47939
|
}(Options));
|
|
47831
47940
|
|
|
47941
|
+
var __extends$a = (window && window.__extends) || (function () {
|
|
47942
|
+
var extendStatics = function (d, b) {
|
|
47943
|
+
extendStatics = Object.setPrototypeOf ||
|
|
47944
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
47945
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
47946
|
+
return extendStatics(d, b);
|
|
47947
|
+
};
|
|
47948
|
+
return function (d, b) {
|
|
47949
|
+
if (typeof b !== "function" && b !== null)
|
|
47950
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
47951
|
+
extendStatics(d, b);
|
|
47952
|
+
function __() { this.constructor = d; }
|
|
47953
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
47954
|
+
};
|
|
47955
|
+
})();
|
|
47832
47956
|
/**
|
|
47833
47957
|
* The options for a TrafficControl object.
|
|
47834
47958
|
*/
|
|
47835
47959
|
var TrafficControlOptions = /** @class */ (function (_super) {
|
|
47836
|
-
__extends(TrafficControlOptions, _super);
|
|
47960
|
+
__extends$a(TrafficControlOptions, _super);
|
|
47837
47961
|
function TrafficControlOptions() {
|
|
47838
47962
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
47839
47963
|
/**
|
|
@@ -47853,16 +47977,32 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
47853
47977
|
return TrafficControlOptions;
|
|
47854
47978
|
}(TrafficOptions));
|
|
47855
47979
|
|
|
47980
|
+
var __extends$b = (window && window.__extends) || (function () {
|
|
47981
|
+
var extendStatics = function (d, b) {
|
|
47982
|
+
extendStatics = Object.setPrototypeOf ||
|
|
47983
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
47984
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
47985
|
+
return extendStatics(d, b);
|
|
47986
|
+
};
|
|
47987
|
+
return function (d, b) {
|
|
47988
|
+
if (typeof b !== "function" && b !== null)
|
|
47989
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
47990
|
+
extendStatics(d, b);
|
|
47991
|
+
function __() { this.constructor = d; }
|
|
47992
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
47993
|
+
};
|
|
47994
|
+
})();
|
|
47856
47995
|
/**
|
|
47857
47996
|
* A control that toggles traffic data on the map.
|
|
47858
47997
|
*/
|
|
47859
47998
|
var TrafficControl = /** @class */ (function (_super) {
|
|
47860
|
-
__extends(TrafficControl, _super);
|
|
47999
|
+
__extends$b(TrafficControl, _super);
|
|
47861
48000
|
/**
|
|
47862
48001
|
* Constructs a TrafficControl
|
|
47863
48002
|
* @param options The options for the control.
|
|
47864
48003
|
*/
|
|
47865
48004
|
function TrafficControl(options) {
|
|
48005
|
+
var _a, _b;
|
|
47866
48006
|
var _this = _super.call(this) || this;
|
|
47867
48007
|
_this.hasMouse = false;
|
|
47868
48008
|
_this.hasFocus = false;
|
|
@@ -47876,9 +48016,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
47876
48016
|
_this.trafficButton = null;
|
|
47877
48017
|
_this.map = null;
|
|
47878
48018
|
if (options) {
|
|
47879
|
-
_this.initIsActive = options.isActive
|
|
48019
|
+
_this.initIsActive = (_a = options.isActive) !== null && _a !== void 0 ? _a : false;
|
|
47880
48020
|
_this.options.flow = options.flow || 'relative';
|
|
47881
|
-
_this.options.incidents = options.incidents
|
|
48021
|
+
_this.options.incidents = (_b = options.incidents) !== null && _b !== void 0 ? _b : true;
|
|
47882
48022
|
_this.style = options.style || exports.ControlStyle.light;
|
|
47883
48023
|
}
|
|
47884
48024
|
return _this;
|
|
@@ -47980,11 +48120,37 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
47980
48120
|
return TrafficControl;
|
|
47981
48121
|
}(ControlBase));
|
|
47982
48122
|
|
|
48123
|
+
var __extends$c = (window && window.__extends) || (function () {
|
|
48124
|
+
var extendStatics = function (d, b) {
|
|
48125
|
+
extendStatics = Object.setPrototypeOf ||
|
|
48126
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
48127
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
48128
|
+
return extendStatics(d, b);
|
|
48129
|
+
};
|
|
48130
|
+
return function (d, b) {
|
|
48131
|
+
if (typeof b !== "function" && b !== null)
|
|
48132
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
48133
|
+
extendStatics(d, b);
|
|
48134
|
+
function __() { this.constructor = d; }
|
|
48135
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
48136
|
+
};
|
|
48137
|
+
})();
|
|
48138
|
+
var __values$1 = (window && window.__values) || function(o) {
|
|
48139
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
48140
|
+
if (m) return m.call(o);
|
|
48141
|
+
if (o && typeof o.length === "number") return {
|
|
48142
|
+
next: function () {
|
|
48143
|
+
if (o && i >= o.length) o = void 0;
|
|
48144
|
+
return { value: o && o[i++], done: !o };
|
|
48145
|
+
}
|
|
48146
|
+
};
|
|
48147
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
48148
|
+
};
|
|
47983
48149
|
/**
|
|
47984
48150
|
* A control that display traffic legend on the map.
|
|
47985
48151
|
*/
|
|
47986
48152
|
var TrafficLegendControl = /** @class */ (function (_super) {
|
|
47987
|
-
__extends(TrafficLegendControl, _super);
|
|
48153
|
+
__extends$c(TrafficLegendControl, _super);
|
|
47988
48154
|
/**
|
|
47989
48155
|
* Construct a traffic legend control
|
|
47990
48156
|
*/
|
|
@@ -48040,7 +48206,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
48040
48206
|
// legend table contents
|
|
48041
48207
|
var tr2 = document.createElement("tr");
|
|
48042
48208
|
try {
|
|
48043
|
-
for (var _c = __values(this.table), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
48209
|
+
for (var _c = __values$1(this.table), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
48044
48210
|
var col = _d.value;
|
|
48045
48211
|
var data = document.createElement("td");
|
|
48046
48212
|
if (col === "Fast" || col === "Slow") {
|
|
@@ -48053,7 +48219,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
48053
48219
|
data.setAttribute("aria-label", "Traffic Legend");
|
|
48054
48220
|
data.setAttribute("role", "img");
|
|
48055
48221
|
try {
|
|
48056
|
-
for (var col_1 = (e_2 = void 0, __values(col)), col_1_1 = col_1.next(); !col_1_1.done; col_1_1 = col_1.next()) {
|
|
48222
|
+
for (var col_1 = (e_2 = void 0, __values$1(col)), col_1_1 = col_1.next(); !col_1_1.done; col_1_1 = col_1.next()) {
|
|
48057
48223
|
var color = col_1_1.value;
|
|
48058
48224
|
var div = document.createElement("div");
|
|
48059
48225
|
div.classList.add(color);
|
|
@@ -48804,11 +48970,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
48804
48970
|
return Feature;
|
|
48805
48971
|
}());
|
|
48806
48972
|
|
|
48973
|
+
var __extends$d = (window && window.__extends) || (function () {
|
|
48974
|
+
var extendStatics = function (d, b) {
|
|
48975
|
+
extendStatics = Object.setPrototypeOf ||
|
|
48976
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
48977
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
48978
|
+
return extendStatics(d, b);
|
|
48979
|
+
};
|
|
48980
|
+
return function (d, b) {
|
|
48981
|
+
if (typeof b !== "function" && b !== null)
|
|
48982
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
48983
|
+
extendStatics(d, b);
|
|
48984
|
+
function __() { this.constructor = d; }
|
|
48985
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
48986
|
+
};
|
|
48987
|
+
})();
|
|
48807
48988
|
/**
|
|
48808
48989
|
* Represent a pixel coordinate or offset. Extends an array of [x, y].
|
|
48809
48990
|
*/
|
|
48810
48991
|
var Pixel = /** @class */ (function (_super) {
|
|
48811
|
-
__extends(Pixel, _super);
|
|
48992
|
+
__extends$d(Pixel, _super);
|
|
48812
48993
|
/**
|
|
48813
48994
|
* Constructs a Pixel object and initializes it with the specified x and y coordinates.
|
|
48814
48995
|
* @param x The horizontal pixel offset.
|
|
@@ -48924,6 +49105,33 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
48924
49105
|
return Point;
|
|
48925
49106
|
}());
|
|
48926
49107
|
|
|
49108
|
+
var __read$2 = (window && window.__read) || function (o, n) {
|
|
49109
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
49110
|
+
if (!m) return o;
|
|
49111
|
+
var i = m.call(o), r, ar = [], e;
|
|
49112
|
+
try {
|
|
49113
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
49114
|
+
}
|
|
49115
|
+
catch (error) { e = { error: error }; }
|
|
49116
|
+
finally {
|
|
49117
|
+
try {
|
|
49118
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
49119
|
+
}
|
|
49120
|
+
finally { if (e) throw e.error; }
|
|
49121
|
+
}
|
|
49122
|
+
return ar;
|
|
49123
|
+
};
|
|
49124
|
+
var __values$2 = (window && window.__values) || function(o) {
|
|
49125
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
49126
|
+
if (m) return m.call(o);
|
|
49127
|
+
if (o && typeof o.length === "number") return {
|
|
49128
|
+
next: function () {
|
|
49129
|
+
if (o && i >= o.length) o = void 0;
|
|
49130
|
+
return { value: o && o[i++], done: !o };
|
|
49131
|
+
}
|
|
49132
|
+
};
|
|
49133
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
49134
|
+
};
|
|
48927
49135
|
//////////////////////
|
|
48928
49136
|
/// Constants
|
|
48929
49137
|
//////////////////////
|
|
@@ -49888,8 +50096,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
49888
50096
|
if (k + 1 >= coords.length) {
|
|
49889
50097
|
continue;
|
|
49890
50098
|
}
|
|
49891
|
-
var _a = __read(coords[k], 2), lon1 = _a[0], lat1 = _a[1];
|
|
49892
|
-
var _b = __read(coords[k + 1], 2), lon2 = _b[0], lat2 = _b[1];
|
|
50099
|
+
var _a = __read$2(coords[k], 2), lon1 = _a[0], lat1 = _a[1];
|
|
50100
|
+
var _b = __read$2(coords[k + 1], 2), lon2 = _b[0], lat2 = _b[1];
|
|
49893
50101
|
// split the line by antimeridian
|
|
49894
50102
|
// and break geodesic into two line segments
|
|
49895
50103
|
if (Math.abs(lon2 - lon1) > 180.0) {
|
|
@@ -49960,8 +50168,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
49960
50168
|
if (k + 1 >= geodesic.length) {
|
|
49961
50169
|
continue;
|
|
49962
50170
|
}
|
|
49963
|
-
var _a = __read(geodesic[k], 2), lon1 = _a[0], lat1 = _a[1];
|
|
49964
|
-
var _b = __read(geodesic[k + 1], 2), lon2 = _b[0], lat2 = _b[1];
|
|
50171
|
+
var _a = __read$2(geodesic[k], 2), lon1 = _a[0], lat1 = _a[1];
|
|
50172
|
+
var _b = __read$2(geodesic[k + 1], 2), lon2 = _b[0], lat2 = _b[1];
|
|
49965
50173
|
// split the line by antimeridian
|
|
49966
50174
|
// and break geodesic into two line segments
|
|
49967
50175
|
if (Math.abs(lon2 - lon1) > 180.0) {
|
|
@@ -50172,7 +50380,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
50172
50380
|
function getPixelHeading(origin, destination) {
|
|
50173
50381
|
origin = getPosition(origin);
|
|
50174
50382
|
destination = getPosition(destination);
|
|
50175
|
-
var _a = __read(mercatorPositionsToPixels([origin, destination], 21), 2), p1 = _a[0], p2 = _a[1];
|
|
50383
|
+
var _a = __read$2(mercatorPositionsToPixels([origin, destination], 21), 2), p1 = _a[0], p2 = _a[1];
|
|
50176
50384
|
var dx = (p2[0] - p1[0]);
|
|
50177
50385
|
var dy = (p1[1] - p2[1]);
|
|
50178
50386
|
var alpha = ((5 / 2 * Math.PI) - Math.atan2(dy, dx)) * INV_PI_BY_180 % 360;
|
|
@@ -50719,7 +50927,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
50719
50927
|
});
|
|
50720
50928
|
var lower = [];
|
|
50721
50929
|
try {
|
|
50722
|
-
for (var positions_1 = __values(positions), positions_1_1 = positions_1.next(); !positions_1_1.done; positions_1_1 = positions_1.next()) {
|
|
50930
|
+
for (var positions_1 = __values$2(positions), positions_1_1 = positions_1.next(); !positions_1_1.done; positions_1_1 = positions_1.next()) {
|
|
50723
50931
|
var position = positions_1_1.value;
|
|
50724
50932
|
while (lower.length >= 2 && _cross(lower[lower.length - 2], lower[lower.length - 1], position) <= 0) {
|
|
50725
50933
|
lower.pop();
|
|
@@ -51001,12 +51209,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
51001
51209
|
return result;
|
|
51002
51210
|
}
|
|
51003
51211
|
|
|
51212
|
+
var __extends$e = (window && window.__extends) || (function () {
|
|
51213
|
+
var extendStatics = function (d, b) {
|
|
51214
|
+
extendStatics = Object.setPrototypeOf ||
|
|
51215
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
51216
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
51217
|
+
return extendStatics(d, b);
|
|
51218
|
+
};
|
|
51219
|
+
return function (d, b) {
|
|
51220
|
+
if (typeof b !== "function" && b !== null)
|
|
51221
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
51222
|
+
extendStatics(d, b);
|
|
51223
|
+
function __() { this.constructor = d; }
|
|
51224
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
51225
|
+
};
|
|
51226
|
+
})();
|
|
51004
51227
|
/**
|
|
51005
51228
|
* A GeoJSON Position object - an array that specifies the longitude and latitude of a location. The
|
|
51006
51229
|
* full description is detailed in [RFC 7946]{@link https://tools.ietf.org/html/rfc7946#section-3.1.1}.
|
|
51007
51230
|
*/
|
|
51008
51231
|
var Position = /** @class */ (function (_super) {
|
|
51009
|
-
__extends(Position, _super);
|
|
51232
|
+
__extends$e(Position, _super);
|
|
51010
51233
|
/**
|
|
51011
51234
|
* Constructs a Position.
|
|
51012
51235
|
* @param longitude The position's longitude.
|
|
@@ -51198,11 +51421,37 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
51198
51421
|
return Polygon;
|
|
51199
51422
|
}());
|
|
51200
51423
|
|
|
51424
|
+
var __extends$f = (window && window.__extends) || (function () {
|
|
51425
|
+
var extendStatics = function (d, b) {
|
|
51426
|
+
extendStatics = Object.setPrototypeOf ||
|
|
51427
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
51428
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
51429
|
+
return extendStatics(d, b);
|
|
51430
|
+
};
|
|
51431
|
+
return function (d, b) {
|
|
51432
|
+
if (typeof b !== "function" && b !== null)
|
|
51433
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
51434
|
+
extendStatics(d, b);
|
|
51435
|
+
function __() { this.constructor = d; }
|
|
51436
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
51437
|
+
};
|
|
51438
|
+
})();
|
|
51439
|
+
var __values$3 = (window && window.__values) || function(o) {
|
|
51440
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
51441
|
+
if (m) return m.call(o);
|
|
51442
|
+
if (o && typeof o.length === "number") return {
|
|
51443
|
+
next: function () {
|
|
51444
|
+
if (o && i >= o.length) o = void 0;
|
|
51445
|
+
return { value: o && o[i++], done: !o };
|
|
51446
|
+
}
|
|
51447
|
+
};
|
|
51448
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
51449
|
+
};
|
|
51201
51450
|
/**
|
|
51202
51451
|
* A helper class that wraps a Geometry or Feature and makes it easy to update and maintain.
|
|
51203
51452
|
*/
|
|
51204
51453
|
var Shape = /** @class */ (function (_super) {
|
|
51205
|
-
__extends(Shape, _super);
|
|
51454
|
+
__extends$f(Shape, _super);
|
|
51206
51455
|
function Shape(data, id, properties) {
|
|
51207
51456
|
var _this = _super.call(this) || this;
|
|
51208
51457
|
var geometry;
|
|
@@ -51274,7 +51523,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
51274
51523
|
else if (geoType === "MultiLineString") {
|
|
51275
51524
|
var pos = positions;
|
|
51276
51525
|
try {
|
|
51277
|
-
for (var pos_1 = __values(pos), pos_1_1 = pos_1.next(); !pos_1_1.done; pos_1_1 = pos_1.next()) {
|
|
51526
|
+
for (var pos_1 = __values$3(pos), pos_1_1 = pos_1.next(); !pos_1_1.done; pos_1_1 = pos_1.next()) {
|
|
51278
51527
|
var p = pos_1_1.value;
|
|
51279
51528
|
bbox = BoundingBox.merge(bbox, BoundingBox.fromPositions(p));
|
|
51280
51529
|
}
|
|
@@ -51290,7 +51539,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
51290
51539
|
else if (geoType === "MultiPolygon") {
|
|
51291
51540
|
var pos = positions;
|
|
51292
51541
|
try {
|
|
51293
|
-
for (var pos_2 = __values(pos), pos_2_1 = pos_2.next(); !pos_2_1.done; pos_2_1 = pos_2.next()) {
|
|
51542
|
+
for (var pos_2 = __values$3(pos), pos_2_1 = pos_2.next(); !pos_2_1.done; pos_2_1 = pos_2.next()) {
|
|
51294
51543
|
var p1 = pos_2_1.value;
|
|
51295
51544
|
// only need to check the exterior ring of Polygon
|
|
51296
51545
|
bbox = BoundingBox.merge(bbox, BoundingBox.fromPositions(p1[0]));
|
|
@@ -51498,6 +51747,32 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
51498
51747
|
return Shape;
|
|
51499
51748
|
}(EventEmitter));
|
|
51500
51749
|
|
|
51750
|
+
var __extends$g = (window && window.__extends) || (function () {
|
|
51751
|
+
var extendStatics = function (d, b) {
|
|
51752
|
+
extendStatics = Object.setPrototypeOf ||
|
|
51753
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
51754
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
51755
|
+
return extendStatics(d, b);
|
|
51756
|
+
};
|
|
51757
|
+
return function (d, b) {
|
|
51758
|
+
if (typeof b !== "function" && b !== null)
|
|
51759
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
51760
|
+
extendStatics(d, b);
|
|
51761
|
+
function __() { this.constructor = d; }
|
|
51762
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
51763
|
+
};
|
|
51764
|
+
})();
|
|
51765
|
+
var __values$4 = (window && window.__values) || function(o) {
|
|
51766
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
51767
|
+
if (m) return m.call(o);
|
|
51768
|
+
if (o && typeof o.length === "number") return {
|
|
51769
|
+
next: function () {
|
|
51770
|
+
if (o && i >= o.length) o = void 0;
|
|
51771
|
+
return { value: o && o[i++], done: !o };
|
|
51772
|
+
}
|
|
51773
|
+
};
|
|
51774
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
51775
|
+
};
|
|
51501
51776
|
/**
|
|
51502
51777
|
* A GeoJSON BoundingBox object - an array that defines a shape whose edges follow lines of constant longitude,
|
|
51503
51778
|
* latitude, and elevation. All axes of the most southwesterly point are followed by all axes of the more northeasterly
|
|
@@ -51505,7 +51780,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
51505
51780
|
* [RFC 7946]{@link https://tools.ietf.org/html/rfc7946#section-5}.
|
|
51506
51781
|
*/
|
|
51507
51782
|
var BoundingBox = /** @class */ (function (_super) {
|
|
51508
|
-
__extends(BoundingBox, _super);
|
|
51783
|
+
__extends$g(BoundingBox, _super);
|
|
51509
51784
|
function BoundingBox(southwestPositionOrPositions, northeastPosition) {
|
|
51510
51785
|
var _this = this;
|
|
51511
51786
|
if (southwestPositionOrPositions && northeastPosition) {
|
|
@@ -51911,7 +52186,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
51911
52186
|
var bounds = null;
|
|
51912
52187
|
if (Array.isArray(data) && data.length > 0) {
|
|
51913
52188
|
try {
|
|
51914
|
-
for (var data_1 = __values(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {
|
|
52189
|
+
for (var data_1 = __values$4(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {
|
|
51915
52190
|
var datum = data_1_1.value;
|
|
51916
52191
|
tempBounds = BoundingBox.fromData(datum);
|
|
51917
52192
|
if (tempBounds != null) {
|
|
@@ -52222,6 +52497,21 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
52222
52497
|
return MultiPolygon;
|
|
52223
52498
|
}());
|
|
52224
52499
|
|
|
52500
|
+
var __extends$h = (window && window.__extends) || (function () {
|
|
52501
|
+
var extendStatics = function (d, b) {
|
|
52502
|
+
extendStatics = Object.setPrototypeOf ||
|
|
52503
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
52504
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
52505
|
+
return extendStatics(d, b);
|
|
52506
|
+
};
|
|
52507
|
+
return function (d, b) {
|
|
52508
|
+
if (typeof b !== "function" && b !== null)
|
|
52509
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
52510
|
+
extendStatics(d, b);
|
|
52511
|
+
function __() { this.constructor = d; }
|
|
52512
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
52513
|
+
};
|
|
52514
|
+
})();
|
|
52225
52515
|
//Based on: https://github.com/mapbox/mapbox-gl-js/blob/main/src/geo/mercator_coordinate.js
|
|
52226
52516
|
/**
|
|
52227
52517
|
* A `MercatorPoint` object represents a projected three dimensional position.
|
|
@@ -52238,7 +52528,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
52238
52528
|
* The `z` dimension of `MercatorPoint` is conformal. A cube in the mercator coordinate space would be rendered as a cube.
|
|
52239
52529
|
*/
|
|
52240
52530
|
var MercatorPoint = /** @class */ (function (_super) {
|
|
52241
|
-
__extends(MercatorPoint, _super);
|
|
52531
|
+
__extends$h(MercatorPoint, _super);
|
|
52242
52532
|
/**
|
|
52243
52533
|
* Constructs a MercatorPoint.
|
|
52244
52534
|
* @param x A points x position in mercator units.
|
|
@@ -52477,6 +52767,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
52477
52767
|
return arrayPoints_1(points, tolerance, true);
|
|
52478
52768
|
}
|
|
52479
52769
|
|
|
52770
|
+
var __values$5 = (window && window.__values) || function(o) {
|
|
52771
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
52772
|
+
if (m) return m.call(o);
|
|
52773
|
+
if (o && typeof o.length === "number") return {
|
|
52774
|
+
next: function () {
|
|
52775
|
+
if (o && i >= o.length) o = void 0;
|
|
52776
|
+
return { value: o && o[i++], done: !o };
|
|
52777
|
+
}
|
|
52778
|
+
};
|
|
52779
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
52780
|
+
};
|
|
52480
52781
|
/**
|
|
52481
52782
|
* An Affine Transform class generated from a set of reference points.
|
|
52482
52783
|
*/
|
|
@@ -52526,7 +52827,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
52526
52827
|
if (points && Array.isArray(points) && Array.isArray(points[0])) {
|
|
52527
52828
|
var pos = [];
|
|
52528
52829
|
try {
|
|
52529
|
-
for (var points_1 = __values(points), points_1_1 = points_1.next(); !points_1_1.done; points_1_1 = points_1.next()) {
|
|
52830
|
+
for (var points_1 = __values$5(points), points_1_1 = points_1.next(); !points_1_1.done; points_1_1 = points_1.next()) {
|
|
52530
52831
|
var subPoints = points_1_1.value;
|
|
52531
52832
|
pos.push(this.transform(subPoints, transformMatrix, decimals));
|
|
52532
52833
|
}
|
|
@@ -52726,11 +53027,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
52726
53027
|
simplify: simplify
|
|
52727
53028
|
});
|
|
52728
53029
|
|
|
53030
|
+
var __extends$i = (window && window.__extends) || (function () {
|
|
53031
|
+
var extendStatics = function (d, b) {
|
|
53032
|
+
extendStatics = Object.setPrototypeOf ||
|
|
53033
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
53034
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
53035
|
+
return extendStatics(d, b);
|
|
53036
|
+
};
|
|
53037
|
+
return function (d, b) {
|
|
53038
|
+
if (typeof b !== "function" && b !== null)
|
|
53039
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
53040
|
+
extendStatics(d, b);
|
|
53041
|
+
function __() { this.constructor = d; }
|
|
53042
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
53043
|
+
};
|
|
53044
|
+
})();
|
|
52729
53045
|
/**
|
|
52730
53046
|
* The options for a ZoomControl object.
|
|
52731
53047
|
*/
|
|
52732
53048
|
var ZoomControlOptions = /** @class */ (function (_super) {
|
|
52733
|
-
__extends(ZoomControlOptions, _super);
|
|
53049
|
+
__extends$i(ZoomControlOptions, _super);
|
|
52734
53050
|
function ZoomControlOptions() {
|
|
52735
53051
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
52736
53052
|
/**
|
|
@@ -52750,11 +53066,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
52750
53066
|
return ZoomControlOptions;
|
|
52751
53067
|
}(Options));
|
|
52752
53068
|
|
|
53069
|
+
var __extends$j = (window && window.__extends) || (function () {
|
|
53070
|
+
var extendStatics = function (d, b) {
|
|
53071
|
+
extendStatics = Object.setPrototypeOf ||
|
|
53072
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
53073
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
53074
|
+
return extendStatics(d, b);
|
|
53075
|
+
};
|
|
53076
|
+
return function (d, b) {
|
|
53077
|
+
if (typeof b !== "function" && b !== null)
|
|
53078
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
53079
|
+
extendStatics(d, b);
|
|
53080
|
+
function __() { this.constructor = d; }
|
|
53081
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
53082
|
+
};
|
|
53083
|
+
})();
|
|
52753
53084
|
/**
|
|
52754
53085
|
* A control for changing the zoom of the map.
|
|
52755
53086
|
*/
|
|
52756
53087
|
var ZoomControl = /** @class */ (function (_super) {
|
|
52757
|
-
__extends(ZoomControl, _super);
|
|
53088
|
+
__extends$j(ZoomControl, _super);
|
|
52758
53089
|
/**
|
|
52759
53090
|
* Constructs a ZoomControl.
|
|
52760
53091
|
* @param options The options for the control.
|
|
@@ -52916,6 +53247,21 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
52916
53247
|
|
|
52917
53248
|
var cloneDeepWith_1 = cloneDeepWith;
|
|
52918
53249
|
|
|
53250
|
+
var __extends$k = (window && window.__extends) || (function () {
|
|
53251
|
+
var extendStatics = function (d, b) {
|
|
53252
|
+
extendStatics = Object.setPrototypeOf ||
|
|
53253
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
53254
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
53255
|
+
return extendStatics(d, b);
|
|
53256
|
+
};
|
|
53257
|
+
return function (d, b) {
|
|
53258
|
+
if (typeof b !== "function" && b !== null)
|
|
53259
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
53260
|
+
extendStatics(d, b);
|
|
53261
|
+
function __() { this.constructor = d; }
|
|
53262
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
53263
|
+
};
|
|
53264
|
+
})();
|
|
52919
53265
|
/**
|
|
52920
53266
|
* A data source for managing shape data that will be displayed on the map.
|
|
52921
53267
|
* A data source must be added to a layer before it is visible on the map.
|
|
@@ -52923,7 +53269,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
52923
53269
|
* @module Object Definitions
|
|
52924
53270
|
*/
|
|
52925
53271
|
var DataSourceOptions = /** @class */ (function (_super) {
|
|
52926
|
-
__extends(DataSourceOptions, _super);
|
|
53272
|
+
__extends$k(DataSourceOptions, _super);
|
|
52927
53273
|
function DataSourceOptions() {
|
|
52928
53274
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
52929
53275
|
/*
|
|
@@ -52978,12 +53324,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
52978
53324
|
return DataSourceOptions;
|
|
52979
53325
|
}(Options));
|
|
52980
53326
|
|
|
53327
|
+
var __extends$l = (window && window.__extends) || (function () {
|
|
53328
|
+
var extendStatics = function (d, b) {
|
|
53329
|
+
extendStatics = Object.setPrototypeOf ||
|
|
53330
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
53331
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
53332
|
+
return extendStatics(d, b);
|
|
53333
|
+
};
|
|
53334
|
+
return function (d, b) {
|
|
53335
|
+
if (typeof b !== "function" && b !== null)
|
|
53336
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
53337
|
+
extendStatics(d, b);
|
|
53338
|
+
function __() { this.constructor = d; }
|
|
53339
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
53340
|
+
};
|
|
53341
|
+
})();
|
|
52981
53342
|
/**
|
|
52982
53343
|
* A base abstract class in which all other source objects extend.
|
|
52983
53344
|
* A source must be added to a layer before it is visible on the map.
|
|
52984
53345
|
*/
|
|
52985
53346
|
var Source = /** @class */ (function (_super) {
|
|
52986
|
-
__extends(Source, _super);
|
|
53347
|
+
__extends$l(Source, _super);
|
|
52987
53348
|
function Source(id) {
|
|
52988
53349
|
var _this = _super.call(this) || this;
|
|
52989
53350
|
_this.id = id || uuidRandom();
|
|
@@ -53017,13 +53378,39 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
53017
53378
|
return Source;
|
|
53018
53379
|
}(EventEmitter));
|
|
53019
53380
|
|
|
53381
|
+
var __extends$m = (window && window.__extends) || (function () {
|
|
53382
|
+
var extendStatics = function (d, b) {
|
|
53383
|
+
extendStatics = Object.setPrototypeOf ||
|
|
53384
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
53385
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
53386
|
+
return extendStatics(d, b);
|
|
53387
|
+
};
|
|
53388
|
+
return function (d, b) {
|
|
53389
|
+
if (typeof b !== "function" && b !== null)
|
|
53390
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
53391
|
+
extendStatics(d, b);
|
|
53392
|
+
function __() { this.constructor = d; }
|
|
53393
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
53394
|
+
};
|
|
53395
|
+
})();
|
|
53396
|
+
var __values$6 = (window && window.__values) || function(o) {
|
|
53397
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
53398
|
+
if (m) return m.call(o);
|
|
53399
|
+
if (o && typeof o.length === "number") return {
|
|
53400
|
+
next: function () {
|
|
53401
|
+
if (o && i >= o.length) o = void 0;
|
|
53402
|
+
return { value: o && o[i++], done: !o };
|
|
53403
|
+
}
|
|
53404
|
+
};
|
|
53405
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
53406
|
+
};
|
|
53020
53407
|
/**
|
|
53021
53408
|
* A data source class that makes it easy to manage shapes data that will be displayed on the map.
|
|
53022
53409
|
* A data source must be added to a layer before it is visible on the map.
|
|
53023
53410
|
* The DataSource class may be used with the SymbolLayer, LineLayer, PolygonLayer, BubbleLayer, and HeatMapLayer.
|
|
53024
53411
|
*/
|
|
53025
53412
|
var DataSource = /** @class */ (function (_super) {
|
|
53026
|
-
__extends(DataSource, _super);
|
|
53413
|
+
__extends$m(DataSource, _super);
|
|
53027
53414
|
/**
|
|
53028
53415
|
* A data source class that makes it easy to manage shapes data that will be displayed on the map.
|
|
53029
53416
|
* A data source must be added to a layer before it is visible on the map.
|
|
@@ -53205,7 +53592,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
53205
53592
|
var e_1, _a;
|
|
53206
53593
|
var shapes = Array.isArray(shape) ? shape : [shape];
|
|
53207
53594
|
try {
|
|
53208
|
-
for (var shapes_1 = __values(shapes), shapes_1_1 = shapes_1.next(); !shapes_1_1.done; shapes_1_1 = shapes_1.next()) {
|
|
53595
|
+
for (var shapes_1 = __values$6(shapes), shapes_1_1 = shapes_1.next(); !shapes_1_1.done; shapes_1_1 = shapes_1.next()) {
|
|
53209
53596
|
var s = shapes_1_1.value;
|
|
53210
53597
|
if (typeof s === "number") {
|
|
53211
53598
|
this._removeByIndex(s);
|
|
@@ -53232,7 +53619,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
53232
53619
|
var e_2, _a;
|
|
53233
53620
|
var ids = Array.isArray(id) ? id : [id];
|
|
53234
53621
|
try {
|
|
53235
|
-
for (var ids_1 = __values(ids), ids_1_1 = ids_1.next(); !ids_1_1.done; ids_1_1 = ids_1.next()) {
|
|
53622
|
+
for (var ids_1 = __values$6(ids), ids_1_1 = ids_1.next(); !ids_1_1.done; ids_1_1 = ids_1.next()) {
|
|
53236
53623
|
var i = ids_1_1.value;
|
|
53237
53624
|
this._removeById(i);
|
|
53238
53625
|
}
|
|
@@ -53371,7 +53758,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
53371
53758
|
data = Array.isArray(data) ? data : [data];
|
|
53372
53759
|
if (typeof index !== "number") {
|
|
53373
53760
|
try {
|
|
53374
|
-
for (var data_1 = __values(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {
|
|
53761
|
+
for (var data_1 = __values$6(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {
|
|
53375
53762
|
var d = data_1_1.value;
|
|
53376
53763
|
this.shapes.push(d);
|
|
53377
53764
|
this.shapesMap.set(d.getId(), this.shapes.length - 1);
|
|
@@ -53392,7 +53779,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
53392
53779
|
}
|
|
53393
53780
|
}
|
|
53394
53781
|
try {
|
|
53395
|
-
for (var data_2 = __values(data), data_2_1 = data_2.next(); !data_2_1.done; data_2_1 = data_2.next()) {
|
|
53782
|
+
for (var data_2 = __values$6(data), data_2_1 = data_2.next(); !data_2_1.done; data_2_1 = data_2.next()) {
|
|
53396
53783
|
var d = data_2_1.value;
|
|
53397
53784
|
d._setDataSource(this);
|
|
53398
53785
|
}
|
|
@@ -53449,6 +53836,21 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
53449
53836
|
return DataSource;
|
|
53450
53837
|
}(Source));
|
|
53451
53838
|
|
|
53839
|
+
var __extends$n = (window && window.__extends) || (function () {
|
|
53840
|
+
var extendStatics = function (d, b) {
|
|
53841
|
+
extendStatics = Object.setPrototypeOf ||
|
|
53842
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
53843
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
53844
|
+
return extendStatics(d, b);
|
|
53845
|
+
};
|
|
53846
|
+
return function (d, b) {
|
|
53847
|
+
if (typeof b !== "function" && b !== null)
|
|
53848
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
53849
|
+
extendStatics(d, b);
|
|
53850
|
+
function __() { this.constructor = d; }
|
|
53851
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
53852
|
+
};
|
|
53853
|
+
})();
|
|
53452
53854
|
/**
|
|
53453
53855
|
* A data source for managing shape data that will be displayed on the map.
|
|
53454
53856
|
* A data source must be added to a layer before it is visible on the map.
|
|
@@ -53456,7 +53858,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
53456
53858
|
* @module Object Definitions
|
|
53457
53859
|
*/
|
|
53458
53860
|
var VectorTileSourceOptions = /** @class */ (function (_super) {
|
|
53459
|
-
__extends(VectorTileSourceOptions, _super);
|
|
53861
|
+
__extends$n(VectorTileSourceOptions, _super);
|
|
53460
53862
|
function VectorTileSourceOptions() {
|
|
53461
53863
|
/*
|
|
53462
53864
|
* TODO:
|
|
@@ -53509,12 +53911,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
53509
53911
|
return VectorTileSourceOptions;
|
|
53510
53912
|
}(Options));
|
|
53511
53913
|
|
|
53914
|
+
var __extends$o = (window && window.__extends) || (function () {
|
|
53915
|
+
var extendStatics = function (d, b) {
|
|
53916
|
+
extendStatics = Object.setPrototypeOf ||
|
|
53917
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
53918
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
53919
|
+
return extendStatics(d, b);
|
|
53920
|
+
};
|
|
53921
|
+
return function (d, b) {
|
|
53922
|
+
if (typeof b !== "function" && b !== null)
|
|
53923
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
53924
|
+
extendStatics(d, b);
|
|
53925
|
+
function __() { this.constructor = d; }
|
|
53926
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
53927
|
+
};
|
|
53928
|
+
})();
|
|
53512
53929
|
/**
|
|
53513
53930
|
* A vector tile source describes how to access a vector tile layer.
|
|
53514
53931
|
* Vector tile sources can be used with; SymbolLayer, LineLayer, PolygonLayer, BubbleLayer, HeatmapLayer and VectorTileLayer.
|
|
53515
53932
|
*/
|
|
53516
53933
|
var VectorTileSource = /** @class */ (function (_super) {
|
|
53517
|
-
__extends(VectorTileSource, _super);
|
|
53934
|
+
__extends$o(VectorTileSource, _super);
|
|
53518
53935
|
function VectorTileSource(id, options) {
|
|
53519
53936
|
var _this = _super.call(this, id) || this;
|
|
53520
53937
|
_this.options = new VectorTileSourceOptions().merge(cloneDeep_1(options));
|
|
@@ -53569,11 +53986,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
53569
53986
|
VectorTileSource: VectorTileSource
|
|
53570
53987
|
});
|
|
53571
53988
|
|
|
53989
|
+
var __extends$p = (window && window.__extends) || (function () {
|
|
53990
|
+
var extendStatics = function (d, b) {
|
|
53991
|
+
extendStatics = Object.setPrototypeOf ||
|
|
53992
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
53993
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
53994
|
+
return extendStatics(d, b);
|
|
53995
|
+
};
|
|
53996
|
+
return function (d, b) {
|
|
53997
|
+
if (typeof b !== "function" && b !== null)
|
|
53998
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
53999
|
+
extendStatics(d, b);
|
|
54000
|
+
function __() { this.constructor = d; }
|
|
54001
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
54002
|
+
};
|
|
54003
|
+
})();
|
|
53572
54004
|
/**
|
|
53573
54005
|
* Abstract class for other layer classes to extend.
|
|
53574
54006
|
*/
|
|
53575
54007
|
var Layer = /** @class */ (function (_super) {
|
|
53576
|
-
__extends(Layer, _super);
|
|
54008
|
+
__extends$p(Layer, _super);
|
|
53577
54009
|
function Layer(id) {
|
|
53578
54010
|
var _this =
|
|
53579
54011
|
// Assign an random id using a UUID if none was specified.
|
|
@@ -53678,11 +54110,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
53678
54110
|
return Layer;
|
|
53679
54111
|
}(EventEmitter));
|
|
53680
54112
|
|
|
54113
|
+
var __extends$q = (window && window.__extends) || (function () {
|
|
54114
|
+
var extendStatics = function (d, b) {
|
|
54115
|
+
extendStatics = Object.setPrototypeOf ||
|
|
54116
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
54117
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
54118
|
+
return extendStatics(d, b);
|
|
54119
|
+
};
|
|
54120
|
+
return function (d, b) {
|
|
54121
|
+
if (typeof b !== "function" && b !== null)
|
|
54122
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
54123
|
+
extendStatics(d, b);
|
|
54124
|
+
function __() { this.constructor = d; }
|
|
54125
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
54126
|
+
};
|
|
54127
|
+
})();
|
|
53681
54128
|
/**
|
|
53682
54129
|
* A base class which all other layer options inherit from.
|
|
53683
54130
|
*/
|
|
53684
54131
|
var LayerOptions = /** @class */ (function (_super) {
|
|
53685
|
-
__extends(LayerOptions, _super);
|
|
54132
|
+
__extends$q(LayerOptions, _super);
|
|
53686
54133
|
function LayerOptions() {
|
|
53687
54134
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
53688
54135
|
/**
|
|
@@ -53729,11 +54176,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
53729
54176
|
return LayerOptions;
|
|
53730
54177
|
}(Options));
|
|
53731
54178
|
|
|
54179
|
+
var __extends$r = (window && window.__extends) || (function () {
|
|
54180
|
+
var extendStatics = function (d, b) {
|
|
54181
|
+
extendStatics = Object.setPrototypeOf ||
|
|
54182
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
54183
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
54184
|
+
return extendStatics(d, b);
|
|
54185
|
+
};
|
|
54186
|
+
return function (d, b) {
|
|
54187
|
+
if (typeof b !== "function" && b !== null)
|
|
54188
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
54189
|
+
extendStatics(d, b);
|
|
54190
|
+
function __() { this.constructor = d; }
|
|
54191
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
54192
|
+
};
|
|
54193
|
+
})();
|
|
53732
54194
|
/**
|
|
53733
54195
|
* Options used when rendering Point objects in a BubbleLayer.
|
|
53734
54196
|
*/
|
|
53735
54197
|
var BubbleLayerOptions = /** @class */ (function (_super) {
|
|
53736
|
-
__extends(BubbleLayerOptions, _super);
|
|
54198
|
+
__extends$r(BubbleLayerOptions, _super);
|
|
53737
54199
|
function BubbleLayerOptions() {
|
|
53738
54200
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
53739
54201
|
/**
|
|
@@ -53803,11 +54265,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
53803
54265
|
return BubbleLayerOptions;
|
|
53804
54266
|
}(LayerOptions));
|
|
53805
54267
|
|
|
54268
|
+
var __extends$s = (window && window.__extends) || (function () {
|
|
54269
|
+
var extendStatics = function (d, b) {
|
|
54270
|
+
extendStatics = Object.setPrototypeOf ||
|
|
54271
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
54272
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
54273
|
+
return extendStatics(d, b);
|
|
54274
|
+
};
|
|
54275
|
+
return function (d, b) {
|
|
54276
|
+
if (typeof b !== "function" && b !== null)
|
|
54277
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
54278
|
+
extendStatics(d, b);
|
|
54279
|
+
function __() { this.constructor = d; }
|
|
54280
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
54281
|
+
};
|
|
54282
|
+
})();
|
|
53806
54283
|
/**
|
|
53807
54284
|
* Renders Point objects as scalable circles (bubbles).
|
|
53808
54285
|
*/
|
|
53809
54286
|
var BubbleLayer = /** @class */ (function (_super) {
|
|
53810
|
-
__extends(BubbleLayer, _super);
|
|
54287
|
+
__extends$s(BubbleLayer, _super);
|
|
53811
54288
|
/**
|
|
53812
54289
|
* Constructs a new BubbleLayer.
|
|
53813
54290
|
* @param source The id or instance of a data source which the layer will render.
|
|
@@ -53917,11 +54394,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
53917
54394
|
return BubbleLayer;
|
|
53918
54395
|
}(Layer));
|
|
53919
54396
|
|
|
54397
|
+
var __extends$t = (window && window.__extends) || (function () {
|
|
54398
|
+
var extendStatics = function (d, b) {
|
|
54399
|
+
extendStatics = Object.setPrototypeOf ||
|
|
54400
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
54401
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
54402
|
+
return extendStatics(d, b);
|
|
54403
|
+
};
|
|
54404
|
+
return function (d, b) {
|
|
54405
|
+
if (typeof b !== "function" && b !== null)
|
|
54406
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
54407
|
+
extendStatics(d, b);
|
|
54408
|
+
function __() { this.constructor = d; }
|
|
54409
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
54410
|
+
};
|
|
54411
|
+
})();
|
|
53920
54412
|
/**
|
|
53921
54413
|
* Options used when rendering Point objects in a HeatMapLayer.
|
|
53922
54414
|
*/
|
|
53923
54415
|
var HeatMapLayerOptions = /** @class */ (function (_super) {
|
|
53924
|
-
__extends(HeatMapLayerOptions, _super);
|
|
54416
|
+
__extends$t(HeatMapLayerOptions, _super);
|
|
53925
54417
|
function HeatMapLayerOptions() {
|
|
53926
54418
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
53927
54419
|
/**
|
|
@@ -53988,11 +54480,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
53988
54480
|
return HeatMapLayerOptions;
|
|
53989
54481
|
}(LayerOptions));
|
|
53990
54482
|
|
|
54483
|
+
var __extends$u = (window && window.__extends) || (function () {
|
|
54484
|
+
var extendStatics = function (d, b) {
|
|
54485
|
+
extendStatics = Object.setPrototypeOf ||
|
|
54486
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
54487
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
54488
|
+
return extendStatics(d, b);
|
|
54489
|
+
};
|
|
54490
|
+
return function (d, b) {
|
|
54491
|
+
if (typeof b !== "function" && b !== null)
|
|
54492
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
54493
|
+
extendStatics(d, b);
|
|
54494
|
+
function __() { this.constructor = d; }
|
|
54495
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
54496
|
+
};
|
|
54497
|
+
})();
|
|
53991
54498
|
/**
|
|
53992
54499
|
* Represent the density of data using different colors (HeatMap).
|
|
53993
54500
|
*/
|
|
53994
54501
|
var HeatMapLayer = /** @class */ (function (_super) {
|
|
53995
|
-
__extends(HeatMapLayer, _super);
|
|
54502
|
+
__extends$u(HeatMapLayer, _super);
|
|
53996
54503
|
/**
|
|
53997
54504
|
* Constructs a new HeatMapLayer.
|
|
53998
54505
|
* @param source The id or instance of a data source which the layer will render.
|
|
@@ -54096,11 +54603,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
54096
54603
|
return HeatMapLayer;
|
|
54097
54604
|
}(Layer));
|
|
54098
54605
|
|
|
54606
|
+
var __extends$v = (window && window.__extends) || (function () {
|
|
54607
|
+
var extendStatics = function (d, b) {
|
|
54608
|
+
extendStatics = Object.setPrototypeOf ||
|
|
54609
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
54610
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
54611
|
+
return extendStatics(d, b);
|
|
54612
|
+
};
|
|
54613
|
+
return function (d, b) {
|
|
54614
|
+
if (typeof b !== "function" && b !== null)
|
|
54615
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
54616
|
+
extendStatics(d, b);
|
|
54617
|
+
function __() { this.constructor = d; }
|
|
54618
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
54619
|
+
};
|
|
54620
|
+
})();
|
|
54099
54621
|
/**
|
|
54100
54622
|
* Options used when rendering canvas, image, raster tile, and video layers
|
|
54101
54623
|
*/
|
|
54102
54624
|
var MediaLayerOptions = /** @class */ (function (_super) {
|
|
54103
|
-
__extends(MediaLayerOptions, _super);
|
|
54625
|
+
__extends$v(MediaLayerOptions, _super);
|
|
54104
54626
|
function MediaLayerOptions() {
|
|
54105
54627
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
54106
54628
|
/**
|
|
@@ -54152,11 +54674,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
54152
54674
|
return MediaLayerOptions;
|
|
54153
54675
|
}(LayerOptions));
|
|
54154
54676
|
|
|
54677
|
+
var __extends$w = (window && window.__extends) || (function () {
|
|
54678
|
+
var extendStatics = function (d, b) {
|
|
54679
|
+
extendStatics = Object.setPrototypeOf ||
|
|
54680
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
54681
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
54682
|
+
return extendStatics(d, b);
|
|
54683
|
+
};
|
|
54684
|
+
return function (d, b) {
|
|
54685
|
+
if (typeof b !== "function" && b !== null)
|
|
54686
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
54687
|
+
extendStatics(d, b);
|
|
54688
|
+
function __() { this.constructor = d; }
|
|
54689
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
54690
|
+
};
|
|
54691
|
+
})();
|
|
54155
54692
|
/**
|
|
54156
54693
|
* Options used when rendering Point objects in a ImageLayer.
|
|
54157
54694
|
*/
|
|
54158
54695
|
var ImageLayerOptions = /** @class */ (function (_super) {
|
|
54159
|
-
__extends(ImageLayerOptions, _super);
|
|
54696
|
+
__extends$w(ImageLayerOptions, _super);
|
|
54160
54697
|
function ImageLayerOptions() {
|
|
54161
54698
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
54162
54699
|
/**
|
|
@@ -54186,12 +54723,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
54186
54723
|
return ImageLayerOptions;
|
|
54187
54724
|
}(MediaLayerOptions));
|
|
54188
54725
|
|
|
54726
|
+
var __extends$x = (window && window.__extends) || (function () {
|
|
54727
|
+
var extendStatics = function (d, b) {
|
|
54728
|
+
extendStatics = Object.setPrototypeOf ||
|
|
54729
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
54730
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
54731
|
+
return extendStatics(d, b);
|
|
54732
|
+
};
|
|
54733
|
+
return function (d, b) {
|
|
54734
|
+
if (typeof b !== "function" && b !== null)
|
|
54735
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
54736
|
+
extendStatics(d, b);
|
|
54737
|
+
function __() { this.constructor = d; }
|
|
54738
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
54739
|
+
};
|
|
54740
|
+
})();
|
|
54189
54741
|
/**
|
|
54190
54742
|
* Abstract class for other layer classes which have to build sources.
|
|
54191
54743
|
* @internal
|
|
54192
54744
|
*/
|
|
54193
54745
|
var SourceBuildingLayer = /** @class */ (function (_super) {
|
|
54194
|
-
__extends(SourceBuildingLayer, _super);
|
|
54746
|
+
__extends$x(SourceBuildingLayer, _super);
|
|
54195
54747
|
function SourceBuildingLayer() {
|
|
54196
54748
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
54197
54749
|
}
|
|
@@ -54206,11 +54758,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
54206
54758
|
return SourceBuildingLayer;
|
|
54207
54759
|
}(Layer));
|
|
54208
54760
|
|
|
54761
|
+
var __extends$y = (window && window.__extends) || (function () {
|
|
54762
|
+
var extendStatics = function (d, b) {
|
|
54763
|
+
extendStatics = Object.setPrototypeOf ||
|
|
54764
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
54765
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
54766
|
+
return extendStatics(d, b);
|
|
54767
|
+
};
|
|
54768
|
+
return function (d, b) {
|
|
54769
|
+
if (typeof b !== "function" && b !== null)
|
|
54770
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
54771
|
+
extendStatics(d, b);
|
|
54772
|
+
function __() { this.constructor = d; }
|
|
54773
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
54774
|
+
};
|
|
54775
|
+
})();
|
|
54209
54776
|
/**
|
|
54210
54777
|
* Overlays an image on the map with each corner anchored to a coordinate on the map. Also known as a ground or image overlay.
|
|
54211
54778
|
*/
|
|
54212
54779
|
var ImageLayer = /** @class */ (function (_super) {
|
|
54213
|
-
__extends(ImageLayer, _super);
|
|
54780
|
+
__extends$y(ImageLayer, _super);
|
|
54214
54781
|
/**
|
|
54215
54782
|
* Constructs a new ImageLayer.
|
|
54216
54783
|
* @param id The id of the layer. If not specified a random one will be generated.
|
|
@@ -54413,12 +54980,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
54413
54980
|
return ImageLayer;
|
|
54414
54981
|
}(SourceBuildingLayer));
|
|
54415
54982
|
|
|
54983
|
+
var __extends$z = (window && window.__extends) || (function () {
|
|
54984
|
+
var extendStatics = function (d, b) {
|
|
54985
|
+
extendStatics = Object.setPrototypeOf ||
|
|
54986
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
54987
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
54988
|
+
return extendStatics(d, b);
|
|
54989
|
+
};
|
|
54990
|
+
return function (d, b) {
|
|
54991
|
+
if (typeof b !== "function" && b !== null)
|
|
54992
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
54993
|
+
extendStatics(d, b);
|
|
54994
|
+
function __() { this.constructor = d; }
|
|
54995
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
54996
|
+
};
|
|
54997
|
+
})();
|
|
54416
54998
|
/**
|
|
54417
54999
|
* Options used when rendering SimpleLine, SimplePolygon, CirclePolygon,
|
|
54418
55000
|
* LineString, MultiLineString, Polygon, and MultiPolygon objects in a line layer.
|
|
54419
55001
|
*/
|
|
54420
55002
|
var LineLayerOptions = /** @class */ (function (_super) {
|
|
54421
|
-
__extends(LineLayerOptions, _super);
|
|
55003
|
+
__extends$z(LineLayerOptions, _super);
|
|
54422
55004
|
function LineLayerOptions() {
|
|
54423
55005
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
54424
55006
|
/**
|
|
@@ -54518,12 +55100,38 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
54518
55100
|
return LineLayerOptions;
|
|
54519
55101
|
}(LayerOptions));
|
|
54520
55102
|
|
|
55103
|
+
var __extends$A = (window && window.__extends) || (function () {
|
|
55104
|
+
var extendStatics = function (d, b) {
|
|
55105
|
+
extendStatics = Object.setPrototypeOf ||
|
|
55106
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
55107
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
55108
|
+
return extendStatics(d, b);
|
|
55109
|
+
};
|
|
55110
|
+
return function (d, b) {
|
|
55111
|
+
if (typeof b !== "function" && b !== null)
|
|
55112
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
55113
|
+
extendStatics(d, b);
|
|
55114
|
+
function __() { this.constructor = d; }
|
|
55115
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
55116
|
+
};
|
|
55117
|
+
})();
|
|
55118
|
+
var __assign = (window && window.__assign) || function () {
|
|
55119
|
+
__assign = Object.assign || function(t) {
|
|
55120
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
55121
|
+
s = arguments[i];
|
|
55122
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
55123
|
+
t[p] = s[p];
|
|
55124
|
+
}
|
|
55125
|
+
return t;
|
|
55126
|
+
};
|
|
55127
|
+
return __assign.apply(this, arguments);
|
|
55128
|
+
};
|
|
54521
55129
|
/**
|
|
54522
55130
|
* Renders line data on the map. Can be used with SimpleLine, SimplePolygon,
|
|
54523
55131
|
* CirclePolygon, LineString, MultiLineString, Polygon, and MultiPolygon objects.
|
|
54524
55132
|
*/
|
|
54525
55133
|
var LineLayer = /** @class */ (function (_super) {
|
|
54526
|
-
__extends(LineLayer, _super);
|
|
55134
|
+
__extends$A(LineLayer, _super);
|
|
54527
55135
|
/**
|
|
54528
55136
|
* Constructs a new LineLayer.
|
|
54529
55137
|
* @param source The id or instance of a data source which the layer will render.
|
|
@@ -54614,11 +55222,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
54614
55222
|
return LineLayer;
|
|
54615
55223
|
}(Layer));
|
|
54616
55224
|
|
|
55225
|
+
var __extends$B = (window && window.__extends) || (function () {
|
|
55226
|
+
var extendStatics = function (d, b) {
|
|
55227
|
+
extendStatics = Object.setPrototypeOf ||
|
|
55228
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
55229
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
55230
|
+
return extendStatics(d, b);
|
|
55231
|
+
};
|
|
55232
|
+
return function (d, b) {
|
|
55233
|
+
if (typeof b !== "function" && b !== null)
|
|
55234
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
55235
|
+
extendStatics(d, b);
|
|
55236
|
+
function __() { this.constructor = d; }
|
|
55237
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
55238
|
+
};
|
|
55239
|
+
})();
|
|
54617
55240
|
/**
|
|
54618
55241
|
* Options used when rendering `Polygon` and `MultiPolygon` objects in a `PolygonExtrusionLayer`.
|
|
54619
55242
|
*/
|
|
54620
55243
|
var PolygonExtrusionLayerOptions = /** @class */ (function (_super) {
|
|
54621
|
-
__extends(PolygonExtrusionLayerOptions, _super);
|
|
55244
|
+
__extends$B(PolygonExtrusionLayerOptions, _super);
|
|
54622
55245
|
function PolygonExtrusionLayerOptions() {
|
|
54623
55246
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
54624
55247
|
/**
|
|
@@ -54691,11 +55314,37 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
54691
55314
|
return PolygonExtrusionLayerOptions;
|
|
54692
55315
|
}(LayerOptions));
|
|
54693
55316
|
|
|
55317
|
+
var __extends$C = (window && window.__extends) || (function () {
|
|
55318
|
+
var extendStatics = function (d, b) {
|
|
55319
|
+
extendStatics = Object.setPrototypeOf ||
|
|
55320
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
55321
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
55322
|
+
return extendStatics(d, b);
|
|
55323
|
+
};
|
|
55324
|
+
return function (d, b) {
|
|
55325
|
+
if (typeof b !== "function" && b !== null)
|
|
55326
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
55327
|
+
extendStatics(d, b);
|
|
55328
|
+
function __() { this.constructor = d; }
|
|
55329
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
55330
|
+
};
|
|
55331
|
+
})();
|
|
55332
|
+
var __assign$1 = (window && window.__assign) || function () {
|
|
55333
|
+
__assign$1 = Object.assign || function(t) {
|
|
55334
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
55335
|
+
s = arguments[i];
|
|
55336
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
55337
|
+
t[p] = s[p];
|
|
55338
|
+
}
|
|
55339
|
+
return t;
|
|
55340
|
+
};
|
|
55341
|
+
return __assign$1.apply(this, arguments);
|
|
55342
|
+
};
|
|
54694
55343
|
/**
|
|
54695
55344
|
* Renders extruded filled `Polygon` and `MultiPolygon` objects on the map.
|
|
54696
55345
|
*/
|
|
54697
55346
|
var PolygonExtrusionLayer = /** @class */ (function (_super) {
|
|
54698
|
-
__extends(PolygonExtrusionLayer, _super);
|
|
55347
|
+
__extends$C(PolygonExtrusionLayer, _super);
|
|
54699
55348
|
/**
|
|
54700
55349
|
* Constructs a new PolygonExtrusionLayer.
|
|
54701
55350
|
* @param source The id or instance of a data source which the layer will render.
|
|
@@ -54755,11 +55404,11 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
54755
55404
|
* @internal
|
|
54756
55405
|
*/
|
|
54757
55406
|
PolygonExtrusionLayer.prototype._buildLayers = function () {
|
|
54758
|
-
var layer = __assign(__assign(__assign(__assign({ id: this.id, type: "fill-extrusion" }, (this.options.sourceLayer && { "source-layer": this.options.sourceLayer })), { source: this.options.source instanceof Source ?
|
|
55407
|
+
var layer = __assign$1(__assign$1(__assign$1(__assign$1({ id: this.id, type: "fill-extrusion" }, (this.options.sourceLayer && { "source-layer": this.options.sourceLayer })), { source: this.options.source instanceof Source ?
|
|
54759
55408
|
this.options.source.getId() :
|
|
54760
55409
|
this.options.source, layout: {
|
|
54761
55410
|
visibility: this.options.visible ? "visible" : "none",
|
|
54762
|
-
}, paint: __assign(__assign({ "fill-extrusion-base": this.options.base, "fill-extrusion-height": this.options.height, "fill-extrusion-opacity": this.options.fillOpacity }, (this.options.fillPattern ?
|
|
55411
|
+
}, paint: __assign$1(__assign$1({ "fill-extrusion-base": this.options.base, "fill-extrusion-height": this.options.height, "fill-extrusion-opacity": this.options.fillOpacity }, (this.options.fillPattern ?
|
|
54763
55412
|
{ "fill-extrusion-pattern": this.options.fillPattern } :
|
|
54764
55413
|
{ "fill-extrusion-color": this.options.fillColor })), { "fill-extrusion-translate": this.options.translate, "fill-extrusion-translate-anchor": this.options.translateAnchor, "fill-extrusion-vertical-gradient": this.options.verticalGradient }) }), (this.options.filter && { filter: this.options.filter })), { minzoom: this.options.minZoom, maxzoom: this.options.maxZoom });
|
|
54765
55414
|
return [layer];
|
|
@@ -54783,11 +55432,58 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
54783
55432
|
return PolygonExtrusionLayer;
|
|
54784
55433
|
}(Layer));
|
|
54785
55434
|
|
|
55435
|
+
var __extends$D = (window && window.__extends) || (function () {
|
|
55436
|
+
var extendStatics = function (d, b) {
|
|
55437
|
+
extendStatics = Object.setPrototypeOf ||
|
|
55438
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
55439
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
55440
|
+
return extendStatics(d, b);
|
|
55441
|
+
};
|
|
55442
|
+
return function (d, b) {
|
|
55443
|
+
if (typeof b !== "function" && b !== null)
|
|
55444
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
55445
|
+
extendStatics(d, b);
|
|
55446
|
+
function __() { this.constructor = d; }
|
|
55447
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
55448
|
+
};
|
|
55449
|
+
})();
|
|
55450
|
+
var __values$7 = (window && window.__values) || function(o) {
|
|
55451
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
55452
|
+
if (m) return m.call(o);
|
|
55453
|
+
if (o && typeof o.length === "number") return {
|
|
55454
|
+
next: function () {
|
|
55455
|
+
if (o && i >= o.length) o = void 0;
|
|
55456
|
+
return { value: o && o[i++], done: !o };
|
|
55457
|
+
}
|
|
55458
|
+
};
|
|
55459
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
55460
|
+
};
|
|
55461
|
+
var __read$3 = (window && window.__read) || function (o, n) {
|
|
55462
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
55463
|
+
if (!m) return o;
|
|
55464
|
+
var i = m.call(o), r, ar = [], e;
|
|
55465
|
+
try {
|
|
55466
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
55467
|
+
}
|
|
55468
|
+
catch (error) { e = { error: error }; }
|
|
55469
|
+
finally {
|
|
55470
|
+
try {
|
|
55471
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
55472
|
+
}
|
|
55473
|
+
finally { if (e) throw e.error; }
|
|
55474
|
+
}
|
|
55475
|
+
return ar;
|
|
55476
|
+
};
|
|
55477
|
+
var __spreadArray = (window && window.__spreadArray) || function (to, from) {
|
|
55478
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
55479
|
+
to[j] = from[i];
|
|
55480
|
+
return to;
|
|
55481
|
+
};
|
|
54786
55482
|
/**
|
|
54787
55483
|
* Options used when rendering Polygon and MultiPolygon objects in a PolygonLayer.
|
|
54788
55484
|
*/
|
|
54789
55485
|
var PolygonLayerOptions = /** @class */ (function (_super) {
|
|
54790
|
-
__extends(PolygonLayerOptions, _super);
|
|
55486
|
+
__extends$D(PolygonLayerOptions, _super);
|
|
54791
55487
|
function PolygonLayerOptions() {
|
|
54792
55488
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
54793
55489
|
/**
|
|
@@ -54831,7 +55527,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
54831
55527
|
var isNewColorSet = false;
|
|
54832
55528
|
var isNewPatternSet = false;
|
|
54833
55529
|
try {
|
|
54834
|
-
for (var valueList_1 = __values(valueList), valueList_1_1 = valueList_1.next(); !valueList_1_1.done; valueList_1_1 = valueList_1.next()) {
|
|
55530
|
+
for (var valueList_1 = __values$7(valueList), valueList_1_1 = valueList_1.next(); !valueList_1_1.done; valueList_1_1 = valueList_1.next()) {
|
|
54835
55531
|
var value = valueList_1_1.value;
|
|
54836
55532
|
if (value) {
|
|
54837
55533
|
if (value.hasOwnProperty("fillColor")) {
|
|
@@ -54853,7 +55549,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
54853
55549
|
finally { if (e_1) throw e_1.error; }
|
|
54854
55550
|
}
|
|
54855
55551
|
// Then execute the standard merge behavior.
|
|
54856
|
-
var merged = _super.prototype.merge.apply(this,
|
|
55552
|
+
var merged = _super.prototype.merge.apply(this, __spreadArray([], __read$3(valueList)));
|
|
54857
55553
|
if (isNewColorSet) {
|
|
54858
55554
|
merged.fillPattern = undefined;
|
|
54859
55555
|
}
|
|
@@ -54865,11 +55561,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
54865
55561
|
return PolygonLayerOptions;
|
|
54866
55562
|
}(LayerOptions));
|
|
54867
55563
|
|
|
55564
|
+
var __extends$E = (window && window.__extends) || (function () {
|
|
55565
|
+
var extendStatics = function (d, b) {
|
|
55566
|
+
extendStatics = Object.setPrototypeOf ||
|
|
55567
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
55568
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
55569
|
+
return extendStatics(d, b);
|
|
55570
|
+
};
|
|
55571
|
+
return function (d, b) {
|
|
55572
|
+
if (typeof b !== "function" && b !== null)
|
|
55573
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
55574
|
+
extendStatics(d, b);
|
|
55575
|
+
function __() { this.constructor = d; }
|
|
55576
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
55577
|
+
};
|
|
55578
|
+
})();
|
|
54868
55579
|
/**
|
|
54869
55580
|
* Renders filled Polygon and MultiPolygon objects on the map.
|
|
54870
55581
|
*/
|
|
54871
55582
|
var PolygonLayer = /** @class */ (function (_super) {
|
|
54872
|
-
__extends(PolygonLayer, _super);
|
|
55583
|
+
__extends$E(PolygonLayer, _super);
|
|
54873
55584
|
/**
|
|
54874
55585
|
* Constructs a new PolygonLayer.
|
|
54875
55586
|
* @param source The id or instance of a data source which the layer will render.
|
|
@@ -54975,11 +55686,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
54975
55686
|
return PolygonLayer;
|
|
54976
55687
|
}(Layer));
|
|
54977
55688
|
|
|
55689
|
+
var __extends$F = (window && window.__extends) || (function () {
|
|
55690
|
+
var extendStatics = function (d, b) {
|
|
55691
|
+
extendStatics = Object.setPrototypeOf ||
|
|
55692
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
55693
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
55694
|
+
return extendStatics(d, b);
|
|
55695
|
+
};
|
|
55696
|
+
return function (d, b) {
|
|
55697
|
+
if (typeof b !== "function" && b !== null)
|
|
55698
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
55699
|
+
extendStatics(d, b);
|
|
55700
|
+
function __() { this.constructor = d; }
|
|
55701
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
55702
|
+
};
|
|
55703
|
+
})();
|
|
54978
55704
|
/**
|
|
54979
55705
|
* Options used to customize the icons in a SymbolLayer
|
|
54980
55706
|
*/
|
|
54981
55707
|
var IconOptions = /** @class */ (function (_super) {
|
|
54982
|
-
__extends(IconOptions, _super);
|
|
55708
|
+
__extends$F(IconOptions, _super);
|
|
54983
55709
|
function IconOptions() {
|
|
54984
55710
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
54985
55711
|
/**
|
|
@@ -55089,11 +55815,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
55089
55815
|
return IconOptions;
|
|
55090
55816
|
}(Options));
|
|
55091
55817
|
|
|
55818
|
+
var __extends$G = (window && window.__extends) || (function () {
|
|
55819
|
+
var extendStatics = function (d, b) {
|
|
55820
|
+
extendStatics = Object.setPrototypeOf ||
|
|
55821
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
55822
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
55823
|
+
return extendStatics(d, b);
|
|
55824
|
+
};
|
|
55825
|
+
return function (d, b) {
|
|
55826
|
+
if (typeof b !== "function" && b !== null)
|
|
55827
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
55828
|
+
extendStatics(d, b);
|
|
55829
|
+
function __() { this.constructor = d; }
|
|
55830
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
55831
|
+
};
|
|
55832
|
+
})();
|
|
55092
55833
|
/**
|
|
55093
55834
|
* Options used to customize the text in a SymbolLayer
|
|
55094
55835
|
*/
|
|
55095
55836
|
var TextOptions = /** @class */ (function (_super) {
|
|
55096
|
-
__extends(TextOptions, _super);
|
|
55837
|
+
__extends$G(TextOptions, _super);
|
|
55097
55838
|
function TextOptions() {
|
|
55098
55839
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
55099
55840
|
/**
|
|
@@ -55247,11 +55988,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
55247
55988
|
return TextOptions;
|
|
55248
55989
|
}(Options));
|
|
55249
55990
|
|
|
55991
|
+
var __extends$H = (window && window.__extends) || (function () {
|
|
55992
|
+
var extendStatics = function (d, b) {
|
|
55993
|
+
extendStatics = Object.setPrototypeOf ||
|
|
55994
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
55995
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
55996
|
+
return extendStatics(d, b);
|
|
55997
|
+
};
|
|
55998
|
+
return function (d, b) {
|
|
55999
|
+
if (typeof b !== "function" && b !== null)
|
|
56000
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
56001
|
+
extendStatics(d, b);
|
|
56002
|
+
function __() { this.constructor = d; }
|
|
56003
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
56004
|
+
};
|
|
56005
|
+
})();
|
|
55250
56006
|
/**
|
|
55251
56007
|
* Options used when rendering geometries in a SymbolLayer.
|
|
55252
56008
|
*/
|
|
55253
56009
|
var SymbolLayerOptions = /** @class */ (function (_super) {
|
|
55254
|
-
__extends(SymbolLayerOptions, _super);
|
|
56010
|
+
__extends$H(SymbolLayerOptions, _super);
|
|
55255
56011
|
function SymbolLayerOptions() {
|
|
55256
56012
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
55257
56013
|
/**
|
|
@@ -55309,12 +56065,38 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
55309
56065
|
return SymbolLayerOptions;
|
|
55310
56066
|
}(LayerOptions));
|
|
55311
56067
|
|
|
56068
|
+
var __extends$I = (window && window.__extends) || (function () {
|
|
56069
|
+
var extendStatics = function (d, b) {
|
|
56070
|
+
extendStatics = Object.setPrototypeOf ||
|
|
56071
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
56072
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
56073
|
+
return extendStatics(d, b);
|
|
56074
|
+
};
|
|
56075
|
+
return function (d, b) {
|
|
56076
|
+
if (typeof b !== "function" && b !== null)
|
|
56077
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
56078
|
+
extendStatics(d, b);
|
|
56079
|
+
function __() { this.constructor = d; }
|
|
56080
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
56081
|
+
};
|
|
56082
|
+
})();
|
|
56083
|
+
var __assign$2 = (window && window.__assign) || function () {
|
|
56084
|
+
__assign$2 = Object.assign || function(t) {
|
|
56085
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
56086
|
+
s = arguments[i];
|
|
56087
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
56088
|
+
t[p] = s[p];
|
|
56089
|
+
}
|
|
56090
|
+
return t;
|
|
56091
|
+
};
|
|
56092
|
+
return __assign$2.apply(this, arguments);
|
|
56093
|
+
};
|
|
55312
56094
|
/**
|
|
55313
56095
|
* Renders point based data as symbols on the map using text and/or icons.
|
|
55314
56096
|
* Symbols can also be created for line and polygon data as well.
|
|
55315
56097
|
*/
|
|
55316
56098
|
var SymbolLayer = /** @class */ (function (_super) {
|
|
55317
|
-
__extends(SymbolLayer, _super);
|
|
56099
|
+
__extends$I(SymbolLayer, _super);
|
|
55318
56100
|
/**
|
|
55319
56101
|
* Constructs a new SymbolLayer.
|
|
55320
56102
|
* @param source The id or instance of a data source which the layer will render.
|
|
@@ -55408,9 +56190,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
55408
56190
|
* @internal
|
|
55409
56191
|
*/
|
|
55410
56192
|
SymbolLayer.prototype._buildLayers = function () {
|
|
55411
|
-
var layer = __assign(__assign(__assign(__assign({ id: this.id, type: "symbol" }, (this.options.sourceLayer && { "source-layer": this.options.sourceLayer })), { source: this.options.source instanceof Source ?
|
|
56193
|
+
var layer = __assign$2(__assign$2(__assign$2(__assign$2({ id: this.id, type: "symbol" }, (this.options.sourceLayer && { "source-layer": this.options.sourceLayer })), { source: this.options.source instanceof Source ?
|
|
55412
56194
|
this.options.source.getId() :
|
|
55413
|
-
this.options.source, layout: __assign(__assign({ visibility: this.options.visible ? "visible" : "none", "symbol-placement": this.options.placement, "symbol-spacing": this.options.lineSpacing, "symbol-z-order": this.options.zOrder,
|
|
56195
|
+
this.options.source, layout: __assign$2(__assign$2({ visibility: this.options.visible ? "visible" : "none", "symbol-placement": this.options.placement, "symbol-spacing": this.options.lineSpacing, "symbol-z-order": this.options.zOrder,
|
|
55414
56196
|
// Text options.
|
|
55415
56197
|
"text-allow-overlap": this.options.textOptions.allowOverlap, "text-anchor": this.options.textOptions.anchor }, (this.options.textOptions.textField && { "text-field": this.options.textOptions.textField })), { "text-font": this.options.textOptions.font, "text-ignore-placement": this.options.textOptions.ignorePlacement, "text-justify": this.options.textOptions.justify, "text-offset": this.options.textOptions.offset, "text-optional": this.options.textOptions.optional, "text-padding": this.options.textOptions.padding, "text-pitch-alignment": this.options.textOptions.pitchAlignment, "text-rotate": this.options.textOptions.rotation, "text-rotation-alignment": this.options.textOptions.rotationAlignment, "text-size": this.options.textOptions.size,
|
|
55416
56198
|
// Icon options.
|
|
@@ -55456,11 +56238,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
55456
56238
|
return SymbolLayer;
|
|
55457
56239
|
}(Layer));
|
|
55458
56240
|
|
|
56241
|
+
var __extends$J = (window && window.__extends) || (function () {
|
|
56242
|
+
var extendStatics = function (d, b) {
|
|
56243
|
+
extendStatics = Object.setPrototypeOf ||
|
|
56244
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
56245
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
56246
|
+
return extendStatics(d, b);
|
|
56247
|
+
};
|
|
56248
|
+
return function (d, b) {
|
|
56249
|
+
if (typeof b !== "function" && b !== null)
|
|
56250
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
56251
|
+
extendStatics(d, b);
|
|
56252
|
+
function __() { this.constructor = d; }
|
|
56253
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
56254
|
+
};
|
|
56255
|
+
})();
|
|
55459
56256
|
/**
|
|
55460
56257
|
* Options used when rendering raster tiled images in a TileLayer.
|
|
55461
56258
|
*/
|
|
55462
56259
|
var TileLayerOptions = /** @class */ (function (_super) {
|
|
55463
|
-
__extends(TileLayerOptions, _super);
|
|
56260
|
+
__extends$J(TileLayerOptions, _super);
|
|
55464
56261
|
function TileLayerOptions() {
|
|
55465
56262
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
55466
56263
|
/**
|
|
@@ -55516,11 +56313,48 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
55516
56313
|
return TileLayerOptions;
|
|
55517
56314
|
}(MediaLayerOptions));
|
|
55518
56315
|
|
|
56316
|
+
var __extends$K = (window && window.__extends) || (function () {
|
|
56317
|
+
var extendStatics = function (d, b) {
|
|
56318
|
+
extendStatics = Object.setPrototypeOf ||
|
|
56319
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
56320
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
56321
|
+
return extendStatics(d, b);
|
|
56322
|
+
};
|
|
56323
|
+
return function (d, b) {
|
|
56324
|
+
if (typeof b !== "function" && b !== null)
|
|
56325
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
56326
|
+
extendStatics(d, b);
|
|
56327
|
+
function __() { this.constructor = d; }
|
|
56328
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
56329
|
+
};
|
|
56330
|
+
})();
|
|
56331
|
+
var __assign$3 = (window && window.__assign) || function () {
|
|
56332
|
+
__assign$3 = Object.assign || function(t) {
|
|
56333
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
56334
|
+
s = arguments[i];
|
|
56335
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
56336
|
+
t[p] = s[p];
|
|
56337
|
+
}
|
|
56338
|
+
return t;
|
|
56339
|
+
};
|
|
56340
|
+
return __assign$3.apply(this, arguments);
|
|
56341
|
+
};
|
|
56342
|
+
var __values$8 = (window && window.__values) || function(o) {
|
|
56343
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
56344
|
+
if (m) return m.call(o);
|
|
56345
|
+
if (o && typeof o.length === "number") return {
|
|
56346
|
+
next: function () {
|
|
56347
|
+
if (o && i >= o.length) o = void 0;
|
|
56348
|
+
return { value: o && o[i++], done: !o };
|
|
56349
|
+
}
|
|
56350
|
+
};
|
|
56351
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
56352
|
+
};
|
|
55519
56353
|
/**
|
|
55520
56354
|
* Renders raster tiled images on top of the map tiles.
|
|
55521
56355
|
*/
|
|
55522
56356
|
var TileLayer = /** @class */ (function (_super) {
|
|
55523
|
-
__extends(TileLayer, _super);
|
|
56357
|
+
__extends$K(TileLayer, _super);
|
|
55524
56358
|
/**
|
|
55525
56359
|
* Constructs a new TileLayer.
|
|
55526
56360
|
* @param options The options for the tile layer.
|
|
@@ -55582,7 +56416,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
55582
56416
|
* @internal
|
|
55583
56417
|
*/
|
|
55584
56418
|
TileLayer.prototype._buildLayers = function () {
|
|
55585
|
-
var layer = __assign(__assign({ id: this.id, type: "raster", source: this._getSourceId(), layout: {
|
|
56419
|
+
var layer = __assign$3(__assign$3({ id: this.id, type: "raster", source: this._getSourceId(), layout: {
|
|
55586
56420
|
visibility: this.options.visible ? "visible" : "none"
|
|
55587
56421
|
}, paint: {
|
|
55588
56422
|
"raster-contrast": this.options.contrast,
|
|
@@ -55619,7 +56453,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
55619
56453
|
if (this.options.subdomains && this.options.subdomains.length > 0) {
|
|
55620
56454
|
var urls = [];
|
|
55621
56455
|
try {
|
|
55622
|
-
for (var _b = __values(this.options.subdomains), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
56456
|
+
for (var _b = __values$8(this.options.subdomains), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
55623
56457
|
var subdomain = _c.value;
|
|
55624
56458
|
urls.push(this.options.tileUrl.replace(/{subdomain}/g, subdomain));
|
|
55625
56459
|
}
|
|
@@ -55651,7 +56485,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
55651
56485
|
};
|
|
55652
56486
|
}
|
|
55653
56487
|
}
|
|
55654
|
-
return __assign({ type: "raster", bounds: this.options.bounds, maxzoom: this.options.maxSourceZoom, minzoom: this.options.minSourceZoom, scheme: this.options.isTMS ? "tms" : "xyz", tileSize: this.options.tileSize }, (tiles && { tiles: tiles }));
|
|
56488
|
+
return __assign$3({ type: "raster", bounds: this.options.bounds, maxzoom: this.options.maxSourceZoom, minzoom: this.options.minSourceZoom, scheme: this.options.isTMS ? "tms" : "xyz", tileSize: this.options.tileSize }, (tiles && { tiles: tiles }));
|
|
55655
56489
|
};
|
|
55656
56490
|
/**
|
|
55657
56491
|
* Gets the id of the source to be paired with this layer.
|
|
@@ -55663,11 +56497,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
55663
56497
|
return TileLayer;
|
|
55664
56498
|
}(SourceBuildingLayer));
|
|
55665
56499
|
|
|
56500
|
+
var __extends$L = (window && window.__extends) || (function () {
|
|
56501
|
+
var extendStatics = function (d, b) {
|
|
56502
|
+
extendStatics = Object.setPrototypeOf ||
|
|
56503
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
56504
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
56505
|
+
return extendStatics(d, b);
|
|
56506
|
+
};
|
|
56507
|
+
return function (d, b) {
|
|
56508
|
+
if (typeof b !== "function" && b !== null)
|
|
56509
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
56510
|
+
extendStatics(d, b);
|
|
56511
|
+
function __() { this.constructor = d; }
|
|
56512
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
56513
|
+
};
|
|
56514
|
+
})();
|
|
55666
56515
|
/**
|
|
55667
56516
|
* Options used to render graphics in a WebGLLayer.
|
|
55668
56517
|
*/
|
|
55669
56518
|
var WebGLLayerOptions = /** @class */ (function (_super) {
|
|
55670
|
-
__extends(WebGLLayerOptions, _super);
|
|
56519
|
+
__extends$L(WebGLLayerOptions, _super);
|
|
55671
56520
|
function WebGLLayerOptions() {
|
|
55672
56521
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
55673
56522
|
/**
|
|
@@ -55679,11 +56528,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
55679
56528
|
return WebGLLayerOptions;
|
|
55680
56529
|
}(LayerOptions));
|
|
55681
56530
|
|
|
56531
|
+
var __extends$M = (window && window.__extends) || (function () {
|
|
56532
|
+
var extendStatics = function (d, b) {
|
|
56533
|
+
extendStatics = Object.setPrototypeOf ||
|
|
56534
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
56535
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
56536
|
+
return extendStatics(d, b);
|
|
56537
|
+
};
|
|
56538
|
+
return function (d, b) {
|
|
56539
|
+
if (typeof b !== "function" && b !== null)
|
|
56540
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
56541
|
+
extendStatics(d, b);
|
|
56542
|
+
function __() { this.constructor = d; }
|
|
56543
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
56544
|
+
};
|
|
56545
|
+
})();
|
|
55682
56546
|
/**
|
|
55683
56547
|
* Enables custom rendering logic with access to the WebGL context of the map.
|
|
55684
56548
|
*/
|
|
55685
56549
|
var WebGLLayer = /** @class */ (function (_super) {
|
|
55686
|
-
__extends(WebGLLayer, _super);
|
|
56550
|
+
__extends$M(WebGLLayer, _super);
|
|
55687
56551
|
/**
|
|
55688
56552
|
* Constructs a new WebGLLayer.
|
|
55689
56553
|
* @param id The id of the layer. If not specified a random one will be generated.
|
|
@@ -55701,9 +56565,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
55701
56565
|
// Add this layer again if the layer was removed by mapbox after a style change.
|
|
55702
56566
|
if (!_this.map._getMap().getLayer(_this.id)) {
|
|
55703
56567
|
var map = _this.map;
|
|
55704
|
-
var
|
|
56568
|
+
var before = (_a = _this.map.layers._getUserLayers().find(function (l) { return l.layer.getId() == _this.id; })) === null || _a === void 0 ? void 0 : _a.before;
|
|
55705
56569
|
map.layers.remove(_this);
|
|
55706
|
-
map.layers.add(_this,
|
|
56570
|
+
map.layers.add(_this, before);
|
|
55707
56571
|
}
|
|
55708
56572
|
};
|
|
55709
56573
|
_this.options = new WebGLLayerOptions().merge(cloneDeepWith_1(options, WebGLLayerOptions._cloneCustomizer));
|
|
@@ -55913,11 +56777,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
55913
56777
|
|
|
55914
56778
|
var isElement_1 = isElement;
|
|
55915
56779
|
|
|
56780
|
+
var __extends$N = (window && window.__extends) || (function () {
|
|
56781
|
+
var extendStatics = function (d, b) {
|
|
56782
|
+
extendStatics = Object.setPrototypeOf ||
|
|
56783
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
56784
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
56785
|
+
return extendStatics(d, b);
|
|
56786
|
+
};
|
|
56787
|
+
return function (d, b) {
|
|
56788
|
+
if (typeof b !== "function" && b !== null)
|
|
56789
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
56790
|
+
extendStatics(d, b);
|
|
56791
|
+
function __() { this.constructor = d; }
|
|
56792
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
56793
|
+
};
|
|
56794
|
+
})();
|
|
55916
56795
|
/**
|
|
55917
56796
|
* The options for a popup.
|
|
55918
56797
|
*/
|
|
55919
56798
|
var PopupOptions = /** @class */ (function (_super) {
|
|
55920
|
-
__extends(PopupOptions, _super);
|
|
56799
|
+
__extends$N(PopupOptions, _super);
|
|
55921
56800
|
function PopupOptions() {
|
|
55922
56801
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
55923
56802
|
/**
|
|
@@ -55986,11 +56865,42 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
55986
56865
|
return PopupOptions;
|
|
55987
56866
|
}(Options));
|
|
55988
56867
|
|
|
56868
|
+
var __extends$O = (window && window.__extends) || (function () {
|
|
56869
|
+
var extendStatics = function (d, b) {
|
|
56870
|
+
extendStatics = Object.setPrototypeOf ||
|
|
56871
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
56872
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
56873
|
+
return extendStatics(d, b);
|
|
56874
|
+
};
|
|
56875
|
+
return function (d, b) {
|
|
56876
|
+
if (typeof b !== "function" && b !== null)
|
|
56877
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
56878
|
+
extendStatics(d, b);
|
|
56879
|
+
function __() { this.constructor = d; }
|
|
56880
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
56881
|
+
};
|
|
56882
|
+
})();
|
|
56883
|
+
var __read$4 = (window && window.__read) || function (o, n) {
|
|
56884
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
56885
|
+
if (!m) return o;
|
|
56886
|
+
var i = m.call(o), r, ar = [], e;
|
|
56887
|
+
try {
|
|
56888
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
56889
|
+
}
|
|
56890
|
+
catch (error) { e = { error: error }; }
|
|
56891
|
+
finally {
|
|
56892
|
+
try {
|
|
56893
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
56894
|
+
}
|
|
56895
|
+
finally { if (e) throw e.error; }
|
|
56896
|
+
}
|
|
56897
|
+
return ar;
|
|
56898
|
+
};
|
|
55989
56899
|
/**
|
|
55990
56900
|
* An information window anchored at a specified position on a map.
|
|
55991
56901
|
*/
|
|
55992
56902
|
var Popup = /** @class */ (function (_super) {
|
|
55993
|
-
__extends(Popup, _super);
|
|
56903
|
+
__extends$O(Popup, _super);
|
|
55994
56904
|
/**
|
|
55995
56905
|
* Constructs a Popup object and initializes it with the specified options.
|
|
55996
56906
|
* @param options The options for the popup.
|
|
@@ -56082,7 +56992,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
56082
56992
|
*/
|
|
56083
56993
|
_this._onDown = function (event) {
|
|
56084
56994
|
_this.map.popups._addDraggedPopup(_this);
|
|
56085
|
-
var _a = __read(_this.map.positionsToPixels([_this.options.position]), 1), anchorPixel = _a[0];
|
|
56995
|
+
var _a = __read$4(_this.map.positionsToPixels([_this.options.position]), 1), anchorPixel = _a[0];
|
|
56086
56996
|
if (event.type === "mousedown") {
|
|
56087
56997
|
event = event;
|
|
56088
56998
|
_this.dragOffset = [
|
|
@@ -56246,7 +57156,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
56246
57156
|
pixel[0] + this.dragOffset[0],
|
|
56247
57157
|
pixel[1] + this.dragOffset[1]
|
|
56248
57158
|
];
|
|
56249
|
-
var _a = __read(this.map.pixelsToPositions([anchorPixel]), 1), anchorPos = _a[0];
|
|
57159
|
+
var _a = __read$4(this.map.pixelsToPositions([anchorPixel]), 1), anchorPos = _a[0];
|
|
56250
57160
|
this.options.position = anchorPos;
|
|
56251
57161
|
this.marker.setLngLat(this.options.position);
|
|
56252
57162
|
this._invokeEvent("drag", { type: "drag", target: this });
|
|
@@ -56400,7 +57310,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
56400
57310
|
posY = pt.y;
|
|
56401
57311
|
}
|
|
56402
57312
|
else {
|
|
56403
|
-
var _a = __read(map.positionsToPixels([options.position]), 1), _b = __read(_a[0], 2), x = _b[0], y = _b[1];
|
|
57313
|
+
var _a = __read$4(map.positionsToPixels([options.position]), 1), _b = __read$4(_a[0], 2), x = _b[0], y = _b[1];
|
|
56404
57314
|
posX = x;
|
|
56405
57315
|
posY = y;
|
|
56406
57316
|
}
|
|
@@ -56461,11 +57371,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
56461
57371
|
return Popup;
|
|
56462
57372
|
}(EventEmitter));
|
|
56463
57373
|
|
|
57374
|
+
var __extends$P = (window && window.__extends) || (function () {
|
|
57375
|
+
var extendStatics = function (d, b) {
|
|
57376
|
+
extendStatics = Object.setPrototypeOf ||
|
|
57377
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
57378
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
57379
|
+
return extendStatics(d, b);
|
|
57380
|
+
};
|
|
57381
|
+
return function (d, b) {
|
|
57382
|
+
if (typeof b !== "function" && b !== null)
|
|
57383
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
57384
|
+
extendStatics(d, b);
|
|
57385
|
+
function __() { this.constructor = d; }
|
|
57386
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
57387
|
+
};
|
|
57388
|
+
})();
|
|
56464
57389
|
/**
|
|
56465
57390
|
* Options for rendering an HtmlMarker object
|
|
56466
57391
|
*/
|
|
56467
57392
|
var HtmlMarkerOptions = /** @class */ (function (_super) {
|
|
56468
|
-
__extends(HtmlMarkerOptions, _super);
|
|
57393
|
+
__extends$P(HtmlMarkerOptions, _super);
|
|
56469
57394
|
function HtmlMarkerOptions() {
|
|
56470
57395
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
56471
57396
|
/**
|
|
@@ -56543,11 +57468,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
56543
57468
|
return HtmlMarkerOptions;
|
|
56544
57469
|
}(Options));
|
|
56545
57470
|
|
|
57471
|
+
var __extends$Q = (window && window.__extends) || (function () {
|
|
57472
|
+
var extendStatics = function (d, b) {
|
|
57473
|
+
extendStatics = Object.setPrototypeOf ||
|
|
57474
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
57475
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
57476
|
+
return extendStatics(d, b);
|
|
57477
|
+
};
|
|
57478
|
+
return function (d, b) {
|
|
57479
|
+
if (typeof b !== "function" && b !== null)
|
|
57480
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
57481
|
+
extendStatics(d, b);
|
|
57482
|
+
function __() { this.constructor = d; }
|
|
57483
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
57484
|
+
};
|
|
57485
|
+
})();
|
|
56546
57486
|
/**
|
|
56547
57487
|
* This class wraps an HTML element that can be displayed on the map.
|
|
56548
57488
|
*/
|
|
56549
57489
|
var HtmlMarker = /** @class */ (function (_super) {
|
|
56550
|
-
__extends(HtmlMarker, _super);
|
|
57490
|
+
__extends$Q(HtmlMarker, _super);
|
|
56551
57491
|
/**
|
|
56552
57492
|
* Constructs a new HtmlMarker.
|
|
56553
57493
|
* @param options The options for the HtmlMarker.
|
|
@@ -57239,6 +58179,42 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
57239
58179
|
return UserAgent;
|
|
57240
58180
|
}());
|
|
57241
58181
|
|
|
58182
|
+
var __extends$R = (window && window.__extends) || (function () {
|
|
58183
|
+
var extendStatics = function (d, b) {
|
|
58184
|
+
extendStatics = Object.setPrototypeOf ||
|
|
58185
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
58186
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
58187
|
+
return extendStatics(d, b);
|
|
58188
|
+
};
|
|
58189
|
+
return function (d, b) {
|
|
58190
|
+
if (typeof b !== "function" && b !== null)
|
|
58191
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
58192
|
+
extendStatics(d, b);
|
|
58193
|
+
function __() { this.constructor = d; }
|
|
58194
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
58195
|
+
};
|
|
58196
|
+
})();
|
|
58197
|
+
var __read$5 = (window && window.__read) || function (o, n) {
|
|
58198
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
58199
|
+
if (!m) return o;
|
|
58200
|
+
var i = m.call(o), r, ar = [], e;
|
|
58201
|
+
try {
|
|
58202
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
58203
|
+
}
|
|
58204
|
+
catch (error) { e = { error: error }; }
|
|
58205
|
+
finally {
|
|
58206
|
+
try {
|
|
58207
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
58208
|
+
}
|
|
58209
|
+
finally { if (e) throw e.error; }
|
|
58210
|
+
}
|
|
58211
|
+
return ar;
|
|
58212
|
+
};
|
|
58213
|
+
var __spreadArray$1 = (window && window.__spreadArray) || function (to, from) {
|
|
58214
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
58215
|
+
to[j] = from[i];
|
|
58216
|
+
return to;
|
|
58217
|
+
};
|
|
57242
58218
|
(function (AuthenticationType) {
|
|
57243
58219
|
/**
|
|
57244
58220
|
* The subscription key authentication mechanism.
|
|
@@ -57269,7 +58245,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
57269
58245
|
* Options for specifying how the map control should authenticate with the Azure Maps services.
|
|
57270
58246
|
*/
|
|
57271
58247
|
var AuthenticationOptions = /** @class */ (function (_super) {
|
|
57272
|
-
__extends(AuthenticationOptions, _super);
|
|
58248
|
+
__extends$R(AuthenticationOptions, _super);
|
|
57273
58249
|
function AuthenticationOptions() {
|
|
57274
58250
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
57275
58251
|
/**
|
|
@@ -57371,7 +58347,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
57371
58347
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
57372
58348
|
valueList[_i] = arguments[_i];
|
|
57373
58349
|
}
|
|
57374
|
-
var merged = _super.prototype.merge.apply(this,
|
|
58350
|
+
var merged = _super.prototype.merge.apply(this, __spreadArray$1([], __read$5(valueList)));
|
|
57375
58351
|
if (merged.authType === exports.AuthenticationType.subscriptionKey) {
|
|
57376
58352
|
merged.authContext = merged.aadAppId = merged.getToken = undefined;
|
|
57377
58353
|
}
|
|
@@ -68051,11 +69027,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
68051
69027
|
return Insights;
|
|
68052
69028
|
}());
|
|
68053
69029
|
|
|
69030
|
+
var __extends$S = (window && window.__extends) || (function () {
|
|
69031
|
+
var extendStatics = function (d, b) {
|
|
69032
|
+
extendStatics = Object.setPrototypeOf ||
|
|
69033
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
69034
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
69035
|
+
return extendStatics(d, b);
|
|
69036
|
+
};
|
|
69037
|
+
return function (d, b) {
|
|
69038
|
+
if (typeof b !== "function" && b !== null)
|
|
69039
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
69040
|
+
extendStatics(d, b);
|
|
69041
|
+
function __() { this.constructor = d; }
|
|
69042
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
69043
|
+
};
|
|
69044
|
+
})();
|
|
68054
69045
|
/**
|
|
68055
69046
|
* The options for a CopyrightControl object.
|
|
68056
69047
|
*/
|
|
68057
69048
|
var CopyrightControlOptions = /** @class */ (function (_super) {
|
|
68058
|
-
__extends(CopyrightControlOptions, _super);
|
|
69049
|
+
__extends$S(CopyrightControlOptions, _super);
|
|
68059
69050
|
function CopyrightControlOptions() {
|
|
68060
69051
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
68061
69052
|
/**
|
|
@@ -68084,11 +69075,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
68084
69075
|
return CopyrightControlOptions;
|
|
68085
69076
|
}(Options));
|
|
68086
69077
|
|
|
69078
|
+
var __extends$T = (window && window.__extends) || (function () {
|
|
69079
|
+
var extendStatics = function (d, b) {
|
|
69080
|
+
extendStatics = Object.setPrototypeOf ||
|
|
69081
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
69082
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
69083
|
+
return extendStatics(d, b);
|
|
69084
|
+
};
|
|
69085
|
+
return function (d, b) {
|
|
69086
|
+
if (typeof b !== "function" && b !== null)
|
|
69087
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
69088
|
+
extendStatics(d, b);
|
|
69089
|
+
function __() { this.constructor = d; }
|
|
69090
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
69091
|
+
};
|
|
69092
|
+
})();
|
|
68087
69093
|
/**
|
|
68088
69094
|
* @private
|
|
68089
69095
|
*/
|
|
68090
69096
|
var CopyrightControl = /** @class */ (function (_super) {
|
|
68091
|
-
__extends(CopyrightControl, _super);
|
|
69097
|
+
__extends$T(CopyrightControl, _super);
|
|
68092
69098
|
function CopyrightControl(options) {
|
|
68093
69099
|
var _this = _super.call(this) || this;
|
|
68094
69100
|
_this.textAttribution = function (options) {
|
|
@@ -68276,6 +69282,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
68276
69282
|
return ErrorHandler;
|
|
68277
69283
|
}());
|
|
68278
69284
|
|
|
69285
|
+
var __assign$4 = (window && window.__assign) || function () {
|
|
69286
|
+
__assign$4 = Object.assign || function(t) {
|
|
69287
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
69288
|
+
s = arguments[i];
|
|
69289
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
69290
|
+
t[p] = s[p];
|
|
69291
|
+
}
|
|
69292
|
+
return t;
|
|
69293
|
+
};
|
|
69294
|
+
return __assign$4.apply(this, arguments);
|
|
69295
|
+
};
|
|
68279
69296
|
/**
|
|
68280
69297
|
* @private
|
|
68281
69298
|
*/
|
|
@@ -68289,7 +69306,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
68289
69306
|
var urlOptions = {
|
|
68290
69307
|
domain: domain,
|
|
68291
69308
|
path: "search/address/reverse/json",
|
|
68292
|
-
queryParams: __assign({ "api-version": "1.0", "language": options.style.language, "limit": 1, "query": normalizeLatitude(options.position[1]) + "," + normalizeLongitude(options.position[0]) }, (options.style.view && { view: options.style.view }))
|
|
69309
|
+
queryParams: __assign$4({ "api-version": "1.0", "language": options.style.language, "limit": 1, "query": normalizeLatitude(options.position[1]) + "," + normalizeLongitude(options.position[0]) }, (options.style.view && { view: options.style.view }))
|
|
68293
69310
|
};
|
|
68294
69311
|
return new Url(((_a = this.map.authentication) === null || _a === void 0 ? void 0 : _a.signRequest(urlOptions)) || urlOptions).get();
|
|
68295
69312
|
};
|
|
@@ -68415,6 +69432,58 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
68415
69432
|
return MapLabelCache;
|
|
68416
69433
|
}());
|
|
68417
69434
|
|
|
69435
|
+
var __awaiter$1 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
69436
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
69437
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
69438
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
69439
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
69440
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
69441
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
69442
|
+
});
|
|
69443
|
+
};
|
|
69444
|
+
var __generator$1 = (window && window.__generator) || function (thisArg, body) {
|
|
69445
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
69446
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
69447
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
69448
|
+
function step(op) {
|
|
69449
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
69450
|
+
while (_) try {
|
|
69451
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
69452
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
69453
|
+
switch (op[0]) {
|
|
69454
|
+
case 0: case 1: t = op; break;
|
|
69455
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
69456
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
69457
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
69458
|
+
default:
|
|
69459
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
69460
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
69461
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
69462
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
69463
|
+
if (t[2]) _.ops.pop();
|
|
69464
|
+
_.trys.pop(); continue;
|
|
69465
|
+
}
|
|
69466
|
+
op = body.call(thisArg, _);
|
|
69467
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
69468
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
69469
|
+
}
|
|
69470
|
+
};
|
|
69471
|
+
var __read$6 = (window && window.__read) || function (o, n) {
|
|
69472
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
69473
|
+
if (!m) return o;
|
|
69474
|
+
var i = m.call(o), r, ar = [], e;
|
|
69475
|
+
try {
|
|
69476
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
69477
|
+
}
|
|
69478
|
+
catch (error) { e = { error: error }; }
|
|
69479
|
+
finally {
|
|
69480
|
+
try {
|
|
69481
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
69482
|
+
}
|
|
69483
|
+
finally { if (e) throw e.error; }
|
|
69484
|
+
}
|
|
69485
|
+
return ar;
|
|
69486
|
+
};
|
|
68418
69487
|
/**
|
|
68419
69488
|
* This class analyizes the current view of a map and provides a description for use by accessibilty tools.
|
|
68420
69489
|
* TODO: Use services when in GeoPol regions. (Kasmir) or when user region sensitive.
|
|
@@ -68653,9 +69722,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
68653
69722
|
// Flag indicating if detailed descriptions which include zoom, lat/lon information should be returned.
|
|
68654
69723
|
this._returnDetailedDescriptions = false;
|
|
68655
69724
|
/** Event handler for shortcuts. */
|
|
68656
|
-
this._shortcutListener = function (e) { return __awaiter(_this, void 0, void 0, function () {
|
|
69725
|
+
this._shortcutListener = function (e) { return __awaiter$1(_this, void 0, void 0, function () {
|
|
68657
69726
|
var cam, styleOps, lang, style, camDesc;
|
|
68658
|
-
return __generator(this, function (_a) {
|
|
69727
|
+
return __generator$1(this, function (_a) {
|
|
68659
69728
|
switch (_a.label) {
|
|
68660
69729
|
case 0:
|
|
68661
69730
|
if (!(e.altKey && e.ctrlKey && e.keyCode === 68)) return [3 /*break*/, 2];
|
|
@@ -68723,9 +69792,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
68723
69792
|
/** Event handler for when the mouse or touch goes down */
|
|
68724
69793
|
this._onPointerDown = function (event) {
|
|
68725
69794
|
_this._lastPointerPos = _this._getEventPos(event);
|
|
68726
|
-
_this._pointerTimeout = setTimeout(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
69795
|
+
_this._pointerTimeout = setTimeout(function () { return __awaiter$1(_this, void 0, void 0, function () {
|
|
68727
69796
|
var styleOps, lang, style, cam, loc;
|
|
68728
|
-
return __generator(this, function (_a) {
|
|
69797
|
+
return __generator$1(this, function (_a) {
|
|
68729
69798
|
switch (_a.label) {
|
|
68730
69799
|
case 0:
|
|
68731
69800
|
styleOps = this._map.getStyle();
|
|
@@ -68783,9 +69852,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
68783
69852
|
delete _this._rotateTimeout;
|
|
68784
69853
|
};
|
|
68785
69854
|
/** Called when the map has finished changing styles and is ready to create a new description */
|
|
68786
|
-
this._updateStyle = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
69855
|
+
this._updateStyle = function () { return __awaiter$1(_this, void 0, void 0, function () {
|
|
68787
69856
|
var cam, styleOps, lang, style, camDesc;
|
|
68788
|
-
return __generator(this, function (_a) {
|
|
69857
|
+
return __generator$1(this, function (_a) {
|
|
68789
69858
|
switch (_a.label) {
|
|
68790
69859
|
case 0:
|
|
68791
69860
|
cam = this._map.getCamera();
|
|
@@ -68837,9 +69906,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
68837
69906
|
delete _this._moveTimeout;
|
|
68838
69907
|
}
|
|
68839
69908
|
// Send the new description to the map.
|
|
68840
|
-
_this._moveTimeout = setTimeout(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
69909
|
+
_this._moveTimeout = setTimeout(function () { return __awaiter$1(_this, void 0, void 0, function () {
|
|
68841
69910
|
var loc;
|
|
68842
|
-
return __generator(this, function (_a) {
|
|
69911
|
+
return __generator$1(this, function (_a) {
|
|
68843
69912
|
switch (_a.label) {
|
|
68844
69913
|
case 0:
|
|
68845
69914
|
// Clear the rotate timeout as the move description will cover rotation.
|
|
@@ -68930,7 +69999,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
68930
69999
|
};
|
|
68931
70000
|
/** Checks if the location has changed enough to justify a new description */
|
|
68932
70001
|
MapViewDescriptor.prototype._checkLocThreshold = function (newCenter, lastCenter) {
|
|
68933
|
-
var _a = __read(this._map.positionsToPixels([lastCenter, newCenter]), 2), lastPixel = _a[0], newPixel = _a[1];
|
|
70002
|
+
var _a = __read$6(this._map.positionsToPixels([lastCenter, newCenter]), 2), lastPixel = _a[0], newPixel = _a[1];
|
|
68934
70003
|
return Pixel.getDistance(lastPixel, newPixel) >= this._moveThreshold;
|
|
68935
70004
|
};
|
|
68936
70005
|
/** Checks if the heading has changed enough to justify a new description */
|
|
@@ -68955,10 +70024,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
68955
70024
|
* @param cam The map camera informaiton.
|
|
68956
70025
|
*/
|
|
68957
70026
|
MapViewDescriptor.prototype._getLocDesc = function (cam, lang, style) {
|
|
68958
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
70027
|
+
return __awaiter$1(this, void 0, void 0, function () {
|
|
68959
70028
|
var info_1, cPx_1, intersects_1, intersectingPolygon, intersectingType_1, i, cnt, layerInfo, cl_1;
|
|
68960
70029
|
var _this = this;
|
|
68961
|
-
return __generator(this, function (_a) {
|
|
70030
|
+
return __generator$1(this, function (_a) {
|
|
68962
70031
|
switch (_a.label) {
|
|
68963
70032
|
case 0:
|
|
68964
70033
|
if (!(style !== "blank")) return [3 /*break*/, 3];
|
|
@@ -69653,11 +70722,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
69653
70722
|
return FlowServiceDelegate;
|
|
69654
70723
|
}());
|
|
69655
70724
|
|
|
70725
|
+
var __extends$U = (window && window.__extends) || (function () {
|
|
70726
|
+
var extendStatics = function (d, b) {
|
|
70727
|
+
extendStatics = Object.setPrototypeOf ||
|
|
70728
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
70729
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
70730
|
+
return extendStatics(d, b);
|
|
70731
|
+
};
|
|
70732
|
+
return function (d, b) {
|
|
70733
|
+
if (typeof b !== "function" && b !== null)
|
|
70734
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
70735
|
+
extendStatics(d, b);
|
|
70736
|
+
function __() { this.constructor = d; }
|
|
70737
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
70738
|
+
};
|
|
70739
|
+
})();
|
|
69656
70740
|
/**
|
|
69657
70741
|
* @private
|
|
69658
70742
|
*/
|
|
69659
70743
|
var Incident = /** @class */ (function (_super) {
|
|
69660
|
-
__extends(Incident, _super);
|
|
70744
|
+
__extends$U(Incident, _super);
|
|
69661
70745
|
function Incident(data, point, localizedStrings) {
|
|
69662
70746
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1;
|
|
69663
70747
|
var _this = this;
|
|
@@ -69872,6 +70956,42 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
69872
70956
|
return IncidentPopupFactory;
|
|
69873
70957
|
}());
|
|
69874
70958
|
|
|
70959
|
+
var __awaiter$2 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
70960
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
70961
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
70962
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
70963
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
70964
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
70965
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
70966
|
+
});
|
|
70967
|
+
};
|
|
70968
|
+
var __generator$2 = (window && window.__generator) || function (thisArg, body) {
|
|
70969
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
70970
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
70971
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
70972
|
+
function step(op) {
|
|
70973
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
70974
|
+
while (_) try {
|
|
70975
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
70976
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
70977
|
+
switch (op[0]) {
|
|
70978
|
+
case 0: case 1: t = op; break;
|
|
70979
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
70980
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
70981
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
70982
|
+
default:
|
|
70983
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
70984
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
70985
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
70986
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
70987
|
+
if (t[2]) _.ops.pop();
|
|
70988
|
+
_.trys.pop(); continue;
|
|
70989
|
+
}
|
|
70990
|
+
op = body.call(thisArg, _);
|
|
70991
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
70992
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
70993
|
+
}
|
|
70994
|
+
};
|
|
69875
70995
|
/**
|
|
69876
70996
|
* @private
|
|
69877
70997
|
*/
|
|
@@ -69899,10 +71019,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
69899
71019
|
_this.map.events.add('moveend', _this.setAccessiblePopups);
|
|
69900
71020
|
};
|
|
69901
71021
|
this.accessiblePopups = [];
|
|
69902
|
-
this.setAccessiblePopups = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
71022
|
+
this.setAccessiblePopups = function () { return __awaiter$2(_this, void 0, void 0, function () {
|
|
69903
71023
|
var features, localizedStrings, createPopup, insertHiddenBefore, insertHiddenInFront, addHidden;
|
|
69904
71024
|
var _this = this;
|
|
69905
|
-
return __generator(this, function (_a) {
|
|
71025
|
+
return __generator$2(this, function (_a) {
|
|
69906
71026
|
switch (_a.label) {
|
|
69907
71027
|
case 0:
|
|
69908
71028
|
this.accessiblePopups.forEach(function (popup) { return popup.remove(); });
|
|
@@ -70054,7 +71174,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
70054
71174
|
"red",
|
|
70055
71175
|
["==", ['var', 'magnitude'], 4],
|
|
70056
71176
|
"grey",
|
|
70057
|
-
"grey",
|
|
71177
|
+
"grey", // default.
|
|
70058
71178
|
],
|
|
70059
71179
|
];
|
|
70060
71180
|
// incident icon type name expression
|
|
@@ -70116,11 +71236,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
70116
71236
|
return IncidentServiceDelegate;
|
|
70117
71237
|
}());
|
|
70118
71238
|
|
|
71239
|
+
var __extends$V = (window && window.__extends) || (function () {
|
|
71240
|
+
var extendStatics = function (d, b) {
|
|
71241
|
+
extendStatics = Object.setPrototypeOf ||
|
|
71242
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
71243
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
71244
|
+
return extendStatics(d, b);
|
|
71245
|
+
};
|
|
71246
|
+
return function (d, b) {
|
|
71247
|
+
if (typeof b !== "function" && b !== null)
|
|
71248
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
71249
|
+
extendStatics(d, b);
|
|
71250
|
+
function __() { this.constructor = d; }
|
|
71251
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
71252
|
+
};
|
|
71253
|
+
})();
|
|
70119
71254
|
/**
|
|
70120
71255
|
* The options for enabling/disabling user interaction with the map.
|
|
70121
71256
|
*/
|
|
70122
71257
|
var UserInteractionOptions = /** @class */ (function (_super) {
|
|
70123
|
-
__extends(UserInteractionOptions, _super);
|
|
71258
|
+
__extends$V(UserInteractionOptions, _super);
|
|
70124
71259
|
function UserInteractionOptions() {
|
|
70125
71260
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
70126
71261
|
/**
|
|
@@ -73149,6 +74284,33 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
73149
74284
|
return descriptor;
|
|
73150
74285
|
}; };
|
|
73151
74286
|
|
|
74287
|
+
var __decorate = (window && window.__decorate) || function (decorators, target, key, desc) {
|
|
74288
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
74289
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
74290
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
74291
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
74292
|
+
};
|
|
74293
|
+
var __read$7 = (window && window.__read) || function (o, n) {
|
|
74294
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
74295
|
+
if (!m) return o;
|
|
74296
|
+
var i = m.call(o), r, ar = [], e;
|
|
74297
|
+
try {
|
|
74298
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
74299
|
+
}
|
|
74300
|
+
catch (error) { e = { error: error }; }
|
|
74301
|
+
finally {
|
|
74302
|
+
try {
|
|
74303
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
74304
|
+
}
|
|
74305
|
+
finally { if (e) throw e.error; }
|
|
74306
|
+
}
|
|
74307
|
+
return ar;
|
|
74308
|
+
};
|
|
74309
|
+
var __spreadArray$2 = (window && window.__spreadArray) || function (to, from) {
|
|
74310
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
74311
|
+
to[j] = from[i];
|
|
74312
|
+
return to;
|
|
74313
|
+
};
|
|
73152
74314
|
var allowedAttributionTags = [
|
|
73153
74315
|
'DIV',
|
|
73154
74316
|
'SPAN',
|
|
@@ -73162,9 +74324,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
73162
74324
|
'data-azure-maps-attribution-order',
|
|
73163
74325
|
'data-azure-maps-attribution-dynamic'
|
|
73164
74326
|
];
|
|
73165
|
-
var allowedAttributionAttributes =
|
|
74327
|
+
var allowedAttributionAttributes = __spreadArray$2([
|
|
73166
74328
|
'href'
|
|
73167
|
-
], attributionRuleAttributes);
|
|
74329
|
+
], __read$7(attributionRuleAttributes));
|
|
73168
74330
|
var AttributionRuleProxy = /** @class */ (function () {
|
|
73169
74331
|
function AttributionRuleProxy(element, attributionChangeCallback) {
|
|
73170
74332
|
var _this = this;
|
|
@@ -73387,7 +74549,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
73387
74549
|
};
|
|
73388
74550
|
AttributionRuleProxy.prototype.applyAttributionResponse = function (attributions) {
|
|
73389
74551
|
var _this = this;
|
|
73390
|
-
var copyrights = attributions.map(function (resp) { return resp.copyrights || []; }).reduce(function (flat, copyrights) { return
|
|
74552
|
+
var copyrights = attributions.map(function (resp) { return resp.copyrights || []; }).reduce(function (flat, copyrights) { return __spreadArray$2(__spreadArray$2([], __read$7(flat)), __read$7(copyrights)); }, []);
|
|
73391
74553
|
if (copyrights.length == 0) {
|
|
73392
74554
|
// no attribution for a provided tileset/bbox/z
|
|
73393
74555
|
return;
|
|
@@ -73436,6 +74598,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
73436
74598
|
return AttributionRuleProxy;
|
|
73437
74599
|
}());
|
|
73438
74600
|
|
|
74601
|
+
var __read$8 = (window && window.__read) || function (o, n) {
|
|
74602
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
74603
|
+
if (!m) return o;
|
|
74604
|
+
var i = m.call(o), r, ar = [], e;
|
|
74605
|
+
try {
|
|
74606
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
74607
|
+
}
|
|
74608
|
+
catch (error) { e = { error: error }; }
|
|
74609
|
+
finally {
|
|
74610
|
+
try {
|
|
74611
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
74612
|
+
}
|
|
74613
|
+
finally { if (e) throw e.error; }
|
|
74614
|
+
}
|
|
74615
|
+
return ar;
|
|
74616
|
+
};
|
|
74617
|
+
var __spreadArray$3 = (window && window.__spreadArray) || function (to, from) {
|
|
74618
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
74619
|
+
to[j] = from[i];
|
|
74620
|
+
return to;
|
|
74621
|
+
};
|
|
73439
74622
|
// contains phrases that should be filtered out from all attribution content
|
|
73440
74623
|
var attributionFilters = [
|
|
73441
74624
|
/all rights reserved/gi
|
|
@@ -73469,7 +74652,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
73469
74652
|
var style = map.getStyle();
|
|
73470
74653
|
return Object.entries(style.sources)
|
|
73471
74654
|
.filter(function (_a) {
|
|
73472
|
-
var _b = __read(_a, 1), key = _b[0];
|
|
74655
|
+
var _b = __read$8(_a, 1), key = _b[0];
|
|
73473
74656
|
return style.layers
|
|
73474
74657
|
.filter(function (layer) { return layer && layer['source'] == key; })
|
|
73475
74658
|
.reduce(function (isVisible, layer) {
|
|
@@ -73477,7 +74660,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
73477
74660
|
return !isLayerHidden || isVisible;
|
|
73478
74661
|
}, false);
|
|
73479
74662
|
}).map(function (_a) {
|
|
73480
|
-
var _b = __read(_a, 1), key = _b[0];
|
|
74663
|
+
var _b = __read$8(_a, 1), key = _b[0];
|
|
73481
74664
|
return map.getSource(key);
|
|
73482
74665
|
});
|
|
73483
74666
|
};
|
|
@@ -73552,10 +74735,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
73552
74735
|
}, function () { return document.createElement('span'); });
|
|
73553
74736
|
});
|
|
73554
74737
|
var registeredRuleSet = new Set(Object.values(registeredRules));
|
|
73555
|
-
var redundantRules = new Set(
|
|
73556
|
-
var redundantElements = new Set(
|
|
74738
|
+
var redundantRules = new Set(__spreadArray$3([], __read$8(allRules)).filter(function (rule) { return !registeredRuleSet.has(rule); }));
|
|
74739
|
+
var redundantElements = new Set(__spreadArray$3([], __read$8(redundantRules)).map(function (rule) { return rule.getElement(); }));
|
|
73557
74740
|
// eject redundant rules associated elements altogether
|
|
73558
|
-
|
|
74741
|
+
__spreadArray$3([], __read$8(redundantElements)).filter(function (elem) { return elem.parentElement !== null; })
|
|
73559
74742
|
.forEach(function (elem) { return elem.parentElement.removeChild(elem); });
|
|
73560
74743
|
_this.rules = Object.values(registeredRules);
|
|
73561
74744
|
var attributionsToApply = attributions
|
|
@@ -73591,7 +74774,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
73591
74774
|
var visibleTextNodes = function (elem) {
|
|
73592
74775
|
return Array.from(elem.style.display != 'none' ? elem.children : [])
|
|
73593
74776
|
.map(function (elem) { return visibleTextNodes(elem); })
|
|
73594
|
-
.reduce(function (flattened, nodes) { return
|
|
74777
|
+
.reduce(function (flattened, nodes) { return __spreadArray$3(__spreadArray$3([], __read$8(flattened)), __read$8(nodes)); }, Array.from(elem.style.display != 'none' ? elem.childNodes : []).filter(function (node) { return node.nodeType == node.TEXT_NODE; }));
|
|
73595
74778
|
};
|
|
73596
74779
|
var newRenderContext = _this.virtualContext.cloneNode(true);
|
|
73597
74780
|
var visibleNodes = visibleTextNodes(newRenderContext);
|
|
@@ -73606,7 +74789,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
73606
74789
|
// }
|
|
73607
74790
|
// });
|
|
73608
74791
|
// strip all predefined keywords
|
|
73609
|
-
visibleNodes.forEach(function (node) { return node.textContent =
|
|
74792
|
+
visibleNodes.forEach(function (node) { return node.textContent = __spreadArray$3([], __read$8(attributionFilters)).reduce(function (target, filter) { return target.replace(filter, '').trim(); }, node.textContent); });
|
|
73610
74793
|
// strip year from each node
|
|
73611
74794
|
// visibleNodes.forEach(node => node.textContent = node.textContent.replace(copyrightYearPattern, '').trim());
|
|
73612
74795
|
// deduplicate attribution text
|
|
@@ -76137,6 +77320,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
76137
77320
|
return AuthenticationManager;
|
|
76138
77321
|
}());
|
|
76139
77322
|
|
|
77323
|
+
var __values$9 = (window && window.__values) || function(o) {
|
|
77324
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
77325
|
+
if (m) return m.call(o);
|
|
77326
|
+
if (o && typeof o.length === "number") return {
|
|
77327
|
+
next: function () {
|
|
77328
|
+
if (o && i >= o.length) o = void 0;
|
|
77329
|
+
return { value: o && o[i++], done: !o };
|
|
77330
|
+
}
|
|
77331
|
+
};
|
|
77332
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
77333
|
+
};
|
|
76140
77334
|
/**
|
|
76141
77335
|
* A manager for the map control's controls.
|
|
76142
77336
|
* Exposed through the controls property of the atlas.Map class.
|
|
@@ -76171,7 +77365,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
76171
77365
|
var e_1, _a;
|
|
76172
77366
|
if (Array.isArray(control)) {
|
|
76173
77367
|
try {
|
|
76174
|
-
for (var control_1 = __values(control), control_1_1 = control_1.next(); !control_1_1.done; control_1_1 = control_1.next()) {
|
|
77368
|
+
for (var control_1 = __values$9(control), control_1_1 = control_1.next(); !control_1_1.done; control_1_1 = control_1.next()) {
|
|
76175
77369
|
var c = control_1_1.value;
|
|
76176
77370
|
this._add(c, options);
|
|
76177
77371
|
}
|
|
@@ -76202,7 +77396,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
76202
77396
|
var e_2, _a;
|
|
76203
77397
|
if (Array.isArray(control)) {
|
|
76204
77398
|
try {
|
|
76205
|
-
for (var control_2 = __values(control), control_2_1 = control_2.next(); !control_2_1.done; control_2_1 = control_2.next()) {
|
|
77399
|
+
for (var control_2 = __values$9(control), control_2_1 = control_2.next(); !control_2_1.done; control_2_1 = control_2.next()) {
|
|
76206
77400
|
var c = control_2_1.value;
|
|
76207
77401
|
this._remove(c);
|
|
76208
77402
|
}
|
|
@@ -76246,6 +77440,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
76246
77440
|
return ControlManager;
|
|
76247
77441
|
}());
|
|
76248
77442
|
|
|
77443
|
+
var __assign$5 = (window && window.__assign) || function () {
|
|
77444
|
+
__assign$5 = Object.assign || function(t) {
|
|
77445
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
77446
|
+
s = arguments[i];
|
|
77447
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
77448
|
+
t[p] = s[p];
|
|
77449
|
+
}
|
|
77450
|
+
return t;
|
|
77451
|
+
};
|
|
77452
|
+
return __assign$5.apply(this, arguments);
|
|
77453
|
+
};
|
|
76249
77454
|
/**
|
|
76250
77455
|
* @private
|
|
76251
77456
|
*/
|
|
@@ -76288,7 +77493,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
76288
77493
|
case "sourcedata":
|
|
76289
77494
|
case "styledata":
|
|
76290
77495
|
modifiedCallback = function (data) {
|
|
76291
|
-
var mapEventData = __assign(__assign({ dataType: data.dataType }, (data.dataType === "source" && __assign(__assign(__assign({ isSourceLoaded: data.isSourceLoaded }, (data.sourceDataType && { sourceDataType: data.sourceDataType })), { source: _this.map.sources.getById(data.sourceId) }), (data.tile && {
|
|
77496
|
+
var mapEventData = __assign$5(__assign$5({ dataType: data.dataType }, (data.dataType === "source" && __assign$5(__assign$5(__assign$5({ isSourceLoaded: data.isSourceLoaded }, (data.sourceDataType && { sourceDataType: data.sourceDataType })), { source: _this.map.sources.getById(data.sourceId) }), (data.tile && {
|
|
76292
77497
|
tile: {
|
|
76293
77498
|
id: {
|
|
76294
77499
|
x: data.tile.tileID.canonical.x,
|
|
@@ -76529,6 +77734,33 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
76529
77734
|
return MapCallbackHandler;
|
|
76530
77735
|
}());
|
|
76531
77736
|
|
|
77737
|
+
var __values$a = (window && window.__values) || function(o) {
|
|
77738
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
77739
|
+
if (m) return m.call(o);
|
|
77740
|
+
if (o && typeof o.length === "number") return {
|
|
77741
|
+
next: function () {
|
|
77742
|
+
if (o && i >= o.length) o = void 0;
|
|
77743
|
+
return { value: o && o[i++], done: !o };
|
|
77744
|
+
}
|
|
77745
|
+
};
|
|
77746
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
77747
|
+
};
|
|
77748
|
+
var __read$9 = (window && window.__read) || function (o, n) {
|
|
77749
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
77750
|
+
if (!m) return o;
|
|
77751
|
+
var i = m.call(o), r, ar = [], e;
|
|
77752
|
+
try {
|
|
77753
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
77754
|
+
}
|
|
77755
|
+
catch (error) { e = { error: error }; }
|
|
77756
|
+
finally {
|
|
77757
|
+
try {
|
|
77758
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
77759
|
+
}
|
|
77760
|
+
finally { if (e) throw e.error; }
|
|
77761
|
+
}
|
|
77762
|
+
return ar;
|
|
77763
|
+
};
|
|
76532
77764
|
// Disable unified signatures linter rule so we can generate separate docs for function overloads.
|
|
76533
77765
|
// tslint:disable:unified-signatures
|
|
76534
77766
|
var MAP_CLIENT_EVENTS = ['maxzoomchanged', 'minzoomchanged', 'mapconfigurationchanged'];
|
|
@@ -76553,7 +77785,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
76553
77785
|
else {
|
|
76554
77786
|
targetOrCallback = Array.isArray(targetOrCallback) ? targetOrCallback : [targetOrCallback];
|
|
76555
77787
|
try {
|
|
76556
|
-
for (var targetOrCallback_1 = __values(targetOrCallback), targetOrCallback_1_1 = targetOrCallback_1.next(); !targetOrCallback_1_1.done; targetOrCallback_1_1 = targetOrCallback_1.next()) {
|
|
77788
|
+
for (var targetOrCallback_1 = __values$a(targetOrCallback), targetOrCallback_1_1 = targetOrCallback_1.next(); !targetOrCallback_1_1.done; targetOrCallback_1_1 = targetOrCallback_1.next()) {
|
|
76557
77789
|
var target = targetOrCallback_1_1.value;
|
|
76558
77790
|
if (target instanceof Layer && Layer._isMBoxEvent(eventType)) {
|
|
76559
77791
|
this._addLayerListener(eventType, target, callback, false, false);
|
|
@@ -76604,7 +77836,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
76604
77836
|
// Must disable it on every Mapbox layer our layer builds.
|
|
76605
77837
|
if (modifiedCallback && layer) {
|
|
76606
77838
|
try {
|
|
76607
|
-
for (var _c = __values(layer._getLayerIds()), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
77839
|
+
for (var _c = __values$a(layer._getLayerIds()), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
76608
77840
|
var id = _d.value;
|
|
76609
77841
|
this.map._getMap().off(eventType, id, modifiedCallback);
|
|
76610
77842
|
}
|
|
@@ -76624,7 +77856,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
76624
77856
|
if (layer) {
|
|
76625
77857
|
modifiedCallback = this.mapCallbackHandler.getModifiedCallback(eventType, layerId, callback);
|
|
76626
77858
|
try {
|
|
76627
|
-
for (var _e = __values(layer._getLayerIds()), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
77859
|
+
for (var _e = __values$a(layer._getLayerIds()), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
76628
77860
|
var id = _f.value;
|
|
76629
77861
|
this.map._getMap().on(eventType, id, modifiedCallback);
|
|
76630
77862
|
}
|
|
@@ -76711,7 +77943,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
76711
77943
|
var callbacks = new Dictionary(this.mapCallbackHandler.getEventCallbacks(eventType, layer));
|
|
76712
77944
|
if (callbacks) {
|
|
76713
77945
|
callbacks.forEach(function (_a, callback) {
|
|
76714
|
-
var _b = __read(_a, 2), _ = _b[0], once = _b[1];
|
|
77946
|
+
var _b = __read$9(_a, 2), _ = _b[0], once = _b[1];
|
|
76715
77947
|
// Invoking a listener this way circumvents the fire once logic in the modified callback.
|
|
76716
77948
|
// So we check if the callback was added as a fire once and if so remove it here.
|
|
76717
77949
|
if (once) {
|
|
@@ -76734,7 +77966,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
76734
77966
|
else {
|
|
76735
77967
|
targetOrCallback = Array.isArray(targetOrCallback) ? targetOrCallback : [targetOrCallback];
|
|
76736
77968
|
try {
|
|
76737
|
-
for (var targetOrCallback_2 = __values(targetOrCallback), targetOrCallback_2_1 = targetOrCallback_2.next(); !targetOrCallback_2_1.done; targetOrCallback_2_1 = targetOrCallback_2.next()) {
|
|
77969
|
+
for (var targetOrCallback_2 = __values$a(targetOrCallback), targetOrCallback_2_1 = targetOrCallback_2.next(); !targetOrCallback_2_1.done; targetOrCallback_2_1 = targetOrCallback_2.next()) {
|
|
76738
77970
|
var target = targetOrCallback_2_1.value;
|
|
76739
77971
|
if (target instanceof Layer && Layer._isMBoxEvent(eventType)) {
|
|
76740
77972
|
this._removeListener(eventType, target, callback);
|
|
@@ -76784,7 +78016,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
76784
78016
|
var layer = this.map.layers.getLayerById(layerId);
|
|
76785
78017
|
if (layer) {
|
|
76786
78018
|
try {
|
|
76787
|
-
for (var _b = __values(layer._getLayerIds()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
78019
|
+
for (var _b = __values$a(layer._getLayerIds()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
76788
78020
|
var id = _c.value;
|
|
76789
78021
|
this.map._getMap().off(eventType, id, modifiedCallback);
|
|
76790
78022
|
}
|
|
@@ -76819,9 +78051,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
76819
78051
|
eventDict.forEach(function (callbackDict, eventType) {
|
|
76820
78052
|
callbackDict.forEach(function (_a) {
|
|
76821
78053
|
var e_6, _b;
|
|
76822
|
-
var _c = __read(_a, 1), modifiedCallback = _c[0];
|
|
78054
|
+
var _c = __read$9(_a, 1), modifiedCallback = _c[0];
|
|
76823
78055
|
try {
|
|
76824
|
-
for (var _d = __values(layer._getLayerIds()), _e = _d.next(); !_e.done; _e = _d.next()) {
|
|
78056
|
+
for (var _d = __values$a(layer._getLayerIds()), _e = _d.next(); !_e.done; _e = _d.next()) {
|
|
76825
78057
|
var mbLayerId = _e.value;
|
|
76826
78058
|
_this.map._getMap().on(eventType, mbLayerId, modifiedCallback);
|
|
76827
78059
|
}
|
|
@@ -76852,9 +78084,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
76852
78084
|
eventDict.forEach(function (callbackDict, eventType) {
|
|
76853
78085
|
callbackDict.forEach(function (_a) {
|
|
76854
78086
|
var e_7, _b;
|
|
76855
|
-
var _c = __read(_a, 1), modifiedCallback = _c[0];
|
|
78087
|
+
var _c = __read$9(_a, 1), modifiedCallback = _c[0];
|
|
76856
78088
|
try {
|
|
76857
|
-
for (var _d = __values(layer._getLayerIds()), _e = _d.next(); !_e.done; _e = _d.next()) {
|
|
78089
|
+
for (var _d = __values$a(layer._getLayerIds()), _e = _d.next(); !_e.done; _e = _d.next()) {
|
|
76858
78090
|
var mbLayerId = _e.value;
|
|
76859
78091
|
_this.map._getMap().off(eventType, mbLayerId, modifiedCallback);
|
|
76860
78092
|
}
|
|
@@ -76873,6 +78105,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
76873
78105
|
return EventManager;
|
|
76874
78106
|
}());
|
|
76875
78107
|
|
|
78108
|
+
var __values$b = (window && window.__values) || function(o) {
|
|
78109
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
78110
|
+
if (m) return m.call(o);
|
|
78111
|
+
if (o && typeof o.length === "number") return {
|
|
78112
|
+
next: function () {
|
|
78113
|
+
if (o && i >= o.length) o = void 0;
|
|
78114
|
+
return { value: o && o[i++], done: !o };
|
|
78115
|
+
}
|
|
78116
|
+
};
|
|
78117
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
78118
|
+
};
|
|
76876
78119
|
/**
|
|
76877
78120
|
* A manager for the map control's HTML markers.
|
|
76878
78121
|
* Exposed through the markers property of the atlas.Map class.
|
|
@@ -76892,7 +78135,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
76892
78135
|
var e_1, _a;
|
|
76893
78136
|
if (Array.isArray(element)) {
|
|
76894
78137
|
try {
|
|
76895
|
-
for (var element_1 = __values(element), element_1_1 = element_1.next(); !element_1_1.done; element_1_1 = element_1.next()) {
|
|
78138
|
+
for (var element_1 = __values$b(element), element_1_1 = element_1.next(); !element_1_1.done; element_1_1 = element_1.next()) {
|
|
76896
78139
|
var marker = element_1_1.value;
|
|
76897
78140
|
this._addMarker(marker, position);
|
|
76898
78141
|
}
|
|
@@ -76930,7 +78173,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
76930
78173
|
var e_2, _a;
|
|
76931
78174
|
if (Array.isArray(marker)) {
|
|
76932
78175
|
try {
|
|
76933
|
-
for (var marker_1 = __values(marker), marker_1_1 = marker_1.next(); !marker_1_1.done; marker_1_1 = marker_1.next()) {
|
|
78176
|
+
for (var marker_1 = __values$b(marker), marker_1_1 = marker_1.next(); !marker_1_1.done; marker_1_1 = marker_1.next()) {
|
|
76934
78177
|
var singleMarker = marker_1_1.value;
|
|
76935
78178
|
this._removeMarker(singleMarker);
|
|
76936
78179
|
}
|
|
@@ -77135,13 +78378,39 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
77135
78378
|
return ImageSpriteManager;
|
|
77136
78379
|
}());
|
|
77137
78380
|
|
|
78381
|
+
var __extends$W = (window && window.__extends) || (function () {
|
|
78382
|
+
var extendStatics = function (d, b) {
|
|
78383
|
+
extendStatics = Object.setPrototypeOf ||
|
|
78384
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
78385
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
78386
|
+
return extendStatics(d, b);
|
|
78387
|
+
};
|
|
78388
|
+
return function (d, b) {
|
|
78389
|
+
if (typeof b !== "function" && b !== null)
|
|
78390
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
78391
|
+
extendStatics(d, b);
|
|
78392
|
+
function __() { this.constructor = d; }
|
|
78393
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
78394
|
+
};
|
|
78395
|
+
})();
|
|
78396
|
+
var __values$c = (window && window.__values) || function(o) {
|
|
78397
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
78398
|
+
if (m) return m.call(o);
|
|
78399
|
+
if (o && typeof o.length === "number") return {
|
|
78400
|
+
next: function () {
|
|
78401
|
+
if (o && i >= o.length) o = void 0;
|
|
78402
|
+
return { value: o && o[i++], done: !o };
|
|
78403
|
+
}
|
|
78404
|
+
};
|
|
78405
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
78406
|
+
};
|
|
77138
78407
|
/**
|
|
77139
78408
|
* Used to represent the layer described by a resource files.
|
|
77140
78409
|
* Serves primarily as a wrapper for multiple Mapbox layers in LayerManger.
|
|
77141
78410
|
* @private
|
|
77142
78411
|
*/
|
|
77143
78412
|
var FundamentalMapLayer = /** @class */ (function (_super) {
|
|
77144
|
-
__extends(FundamentalMapLayer, _super);
|
|
78413
|
+
__extends$W(FundamentalMapLayer, _super);
|
|
77145
78414
|
/**
|
|
77146
78415
|
* Constructs a base layer used to represent the base, transit, and labels layers.
|
|
77147
78416
|
* @param mbLayers The stylesheet used to define the style sources and style layers.
|
|
@@ -77171,7 +78440,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
77171
78440
|
var e_1, _a;
|
|
77172
78441
|
var ids = new Set();
|
|
77173
78442
|
try {
|
|
77174
|
-
for (var _b = __values(this.layers), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
78443
|
+
for (var _b = __values$c(this.layers), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
77175
78444
|
var layer = _c.value;
|
|
77176
78445
|
if (typeof layer.source === "string") {
|
|
77177
78446
|
// If the layer's source is just a string id use that.
|
|
@@ -77203,6 +78472,38 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
77203
78472
|
return FundamentalMapLayer;
|
|
77204
78473
|
}(Layer));
|
|
77205
78474
|
|
|
78475
|
+
var __values$d = (window && window.__values) || function(o) {
|
|
78476
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
78477
|
+
if (m) return m.call(o);
|
|
78478
|
+
if (o && typeof o.length === "number") return {
|
|
78479
|
+
next: function () {
|
|
78480
|
+
if (o && i >= o.length) o = void 0;
|
|
78481
|
+
return { value: o && o[i++], done: !o };
|
|
78482
|
+
}
|
|
78483
|
+
};
|
|
78484
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
78485
|
+
};
|
|
78486
|
+
var __read$a = (window && window.__read) || function (o, n) {
|
|
78487
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
78488
|
+
if (!m) return o;
|
|
78489
|
+
var i = m.call(o), r, ar = [], e;
|
|
78490
|
+
try {
|
|
78491
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
78492
|
+
}
|
|
78493
|
+
catch (error) { e = { error: error }; }
|
|
78494
|
+
finally {
|
|
78495
|
+
try {
|
|
78496
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
78497
|
+
}
|
|
78498
|
+
finally { if (e) throw e.error; }
|
|
78499
|
+
}
|
|
78500
|
+
return ar;
|
|
78501
|
+
};
|
|
78502
|
+
var __spreadArray$4 = (window && window.__spreadArray) || function (to, from) {
|
|
78503
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
78504
|
+
to[j] = from[i];
|
|
78505
|
+
return to;
|
|
78506
|
+
};
|
|
77206
78507
|
/**
|
|
77207
78508
|
* A manager for the map control's layers.
|
|
77208
78509
|
* Exposed through the layers property of the atlas.Map class.
|
|
@@ -77226,7 +78527,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
77226
78527
|
before;
|
|
77227
78528
|
if (Array.isArray(layer)) {
|
|
77228
78529
|
try {
|
|
77229
|
-
for (var layer_1 = __values(layer), layer_1_1 = layer_1.next(); !layer_1_1.done; layer_1_1 = layer_1.next()) {
|
|
78530
|
+
for (var layer_1 = __values$d(layer), layer_1_1 = layer_1.next(); !layer_1_1.done; layer_1_1 = layer_1.next()) {
|
|
77230
78531
|
var singleLayer = layer_1_1.value;
|
|
77231
78532
|
this._addLayer(singleLayer, beforeId);
|
|
77232
78533
|
}
|
|
@@ -77258,6 +78559,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
77258
78559
|
// Replace the existing layer with the new one.
|
|
77259
78560
|
// Place the new layer behind the specified before layer.
|
|
77260
78561
|
var layerIndex = this.layerIndex.findIndex(function (l) { return l.getId() === layer.getId(); });
|
|
78562
|
+
var userLayerIndex = this.userLayers.findIndex(function (ul) { return ul.layer.getId() === layer.getId(); });
|
|
77261
78563
|
var tempLayer = this.layerIndex[layerIndex];
|
|
77262
78564
|
this._removeMapboxLayers(layer);
|
|
77263
78565
|
this._addMapboxLayers(layer, before);
|
|
@@ -77266,8 +78568,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
77266
78568
|
this.layerIndex.splice(layerIndex, 1);
|
|
77267
78569
|
var beforeIndex = this.layerIndex.findIndex(function (l) { return l.getId() === before; });
|
|
77268
78570
|
this.layerIndex.splice(beforeIndex, 0, layer);
|
|
77269
|
-
if (!(layer instanceof FundamentalMapLayer))
|
|
77270
|
-
this.userLayers
|
|
78571
|
+
if (!(layer instanceof FundamentalMapLayer)) {
|
|
78572
|
+
this.userLayers[userLayerIndex] = { layer: layer, before: before };
|
|
78573
|
+
}
|
|
77271
78574
|
tempLayer.onRemove();
|
|
77272
78575
|
layer.onAdd(this.map);
|
|
77273
78576
|
}
|
|
@@ -77277,14 +78580,16 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
77277
78580
|
this.map.events._enableLayerEvents(layer);
|
|
77278
78581
|
var beforeIndex = this.layerIndex.findIndex(function (l) { return l.getId() === before; });
|
|
77279
78582
|
this.layerIndex.splice(beforeIndex, 0, layer);
|
|
77280
|
-
if (!(layer instanceof FundamentalMapLayer))
|
|
78583
|
+
if (!(layer instanceof FundamentalMapLayer)) {
|
|
77281
78584
|
this.userLayers.push({ layer: layer, before: before });
|
|
78585
|
+
}
|
|
77282
78586
|
layer.onAdd(this.map);
|
|
77283
78587
|
}
|
|
77284
78588
|
}
|
|
77285
78589
|
else {
|
|
77286
78590
|
var layerIndex = this.layerIndex.findIndex(function (l) { return l.getId() === layer.getId(); });
|
|
77287
|
-
|
|
78591
|
+
var userLayerIndex = this.userLayers.findIndex(function (ul) { return ul.layer.getId() === layer.getId(); });
|
|
78592
|
+
if (layerIndex >= 0 && userLayerIndex >= 0) {
|
|
77288
78593
|
// Replace the existing layer with the new one.
|
|
77289
78594
|
var tempLayer = this.layerIndex[layerIndex];
|
|
77290
78595
|
this._removeMapboxLayers(tempLayer);
|
|
@@ -77292,6 +78597,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
77292
78597
|
this.map.events._disableLayerEvents(tempLayer);
|
|
77293
78598
|
this.map.events._enableLayerEvents(layer);
|
|
77294
78599
|
this.layerIndex[layerIndex] = layer;
|
|
78600
|
+
if (!(layer instanceof FundamentalMapLayer)) {
|
|
78601
|
+
this.userLayers[userLayerIndex] = { layer: layer, before: undefined };
|
|
78602
|
+
}
|
|
77295
78603
|
tempLayer.onRemove();
|
|
77296
78604
|
layer.onAdd(this.map);
|
|
77297
78605
|
}
|
|
@@ -77300,8 +78608,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
77300
78608
|
this._addMapboxLayers(layer);
|
|
77301
78609
|
this.map.events._enableLayerEvents(layer);
|
|
77302
78610
|
this.layerIndex.push(layer);
|
|
77303
|
-
if (!(layer instanceof FundamentalMapLayer))
|
|
78611
|
+
if (!(layer instanceof FundamentalMapLayer)) {
|
|
77304
78612
|
this.userLayers.push({ layer: layer, before: before });
|
|
78613
|
+
}
|
|
77305
78614
|
layer.onAdd(this.map);
|
|
77306
78615
|
}
|
|
77307
78616
|
}
|
|
@@ -77331,7 +78640,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
77331
78640
|
}
|
|
77332
78641
|
var mbBefore = this._getMapboxBefore(before);
|
|
77333
78642
|
try {
|
|
77334
|
-
for (var _b = __values(layer._buildLayers()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
78643
|
+
for (var _b = __values$d(layer._buildLayers()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
77335
78644
|
var mbLayer = _c.value;
|
|
77336
78645
|
this.map._getMap().addLayer(mbLayer, mbBefore);
|
|
77337
78646
|
}
|
|
@@ -77360,7 +78669,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
77360
78669
|
return;
|
|
77361
78670
|
}
|
|
77362
78671
|
try {
|
|
77363
|
-
for (var _b = __values(layer._getLayerIds()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
78672
|
+
for (var _b = __values$d(layer._getLayerIds()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
77364
78673
|
var mbLayerId = _c.value;
|
|
77365
78674
|
// Check if the layer does exist.
|
|
77366
78675
|
if (this.map._getMap().getLayer(mbLayerId)) {
|
|
@@ -77419,7 +78728,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
77419
78728
|
// it would build until a layer exists on the mapbox map.
|
|
77420
78729
|
if (beforeLayer) {
|
|
77421
78730
|
try {
|
|
77422
|
-
for (var _c = __values(beforeLayer._getLayerIds()), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
78731
|
+
for (var _c = __values$d(beforeLayer._getLayerIds()), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
77423
78732
|
var layerId = _d.value;
|
|
77424
78733
|
if (this.map._getMap().getLayer(layerId)) {
|
|
77425
78734
|
return layerId;
|
|
@@ -77449,7 +78758,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
77449
78758
|
// the mapbox layers built by an atlas layer exists in the mapbox map.
|
|
77450
78759
|
for (var i = before; i < this.layerIndex.length; i++) {
|
|
77451
78760
|
try {
|
|
77452
|
-
for (var _e = (e_5 = void 0, __values(this.layerIndex[i]._getLayerIds())), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
78761
|
+
for (var _e = (e_5 = void 0, __values$d(this.layerIndex[i]._getLayerIds())), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
77453
78762
|
var layerId = _f.value;
|
|
77454
78763
|
if (this.map._getMap().getLayer(layerId)) {
|
|
77455
78764
|
return layerId;
|
|
@@ -77503,7 +78812,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
77503
78812
|
var e_6, _a;
|
|
77504
78813
|
var ids = new Set();
|
|
77505
78814
|
try {
|
|
77506
|
-
for (var _b = __values(this.layerIndex), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
78815
|
+
for (var _b = __values$d(this.layerIndex), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
77507
78816
|
var layer = _c.value;
|
|
77508
78817
|
layer._getSourceIds().forEach(function (id) { return ids.add(id); });
|
|
77509
78818
|
}
|
|
@@ -77547,12 +78856,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
77547
78856
|
else {
|
|
77548
78857
|
this.layerIndex.push(layer);
|
|
77549
78858
|
}
|
|
78859
|
+
// Update before property of the user layer
|
|
78860
|
+
var userLayer = this.userLayers.find(function (ul) { return ul.layer.getId() === layerId; });
|
|
78861
|
+
if (userLayer) {
|
|
78862
|
+
userLayer.before = beforeId;
|
|
78863
|
+
}
|
|
77550
78864
|
};
|
|
77551
78865
|
LayerManager.prototype._moveMapboxLayers = function (layer, before) {
|
|
77552
78866
|
var e_7, _a;
|
|
77553
78867
|
var mbBefore = this._getMapboxBefore(before);
|
|
77554
78868
|
try {
|
|
77555
|
-
for (var _b = __values(layer._getLayerIds()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
78869
|
+
for (var _b = __values$d(layer._getLayerIds()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
77556
78870
|
var mbLayerId = _c.value;
|
|
77557
78871
|
this.map._getMap().moveLayer(mbLayerId, mbBefore);
|
|
77558
78872
|
}
|
|
@@ -77621,8 +78935,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
77621
78935
|
// If a specified layer hasn't been added to the map throw an error.
|
|
77622
78936
|
var index = this_1.layerIndex.findIndex(function (l) { return l.getId() === layerId; });
|
|
77623
78937
|
if (index > -1) {
|
|
77624
|
-
layerIds.push.apply(layerIds,
|
|
77625
|
-
.filter(function (id) { return !!_this.map._getMap().getLayer(id); })));
|
|
78938
|
+
layerIds.push.apply(layerIds, __spreadArray$4([], __read$a(this_1.layerIndex[index]._getLayerIds()
|
|
78939
|
+
.filter(function (id) { return !!_this.map._getMap().getLayer(id); }))));
|
|
77626
78940
|
}
|
|
77627
78941
|
else {
|
|
77628
78942
|
throw new Error("The layer '" + layerId + "' has not been added to the map " +
|
|
@@ -77631,7 +78945,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
77631
78945
|
};
|
|
77632
78946
|
var this_1 = this;
|
|
77633
78947
|
try {
|
|
77634
|
-
for (var layers_1 = __values(layers), layers_1_1 = layers_1.next(); !layers_1_1.done; layers_1_1 = layers_1.next()) {
|
|
78948
|
+
for (var layers_1 = __values$d(layers), layers_1_1 = layers_1.next(); !layers_1_1.done; layers_1_1 = layers_1.next()) {
|
|
77635
78949
|
var layer = layers_1_1.value;
|
|
77636
78950
|
_loop_1(layer);
|
|
77637
78951
|
}
|
|
@@ -77657,7 +78971,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
77657
78971
|
var e_9, _a;
|
|
77658
78972
|
if (Array.isArray(layer)) {
|
|
77659
78973
|
try {
|
|
77660
|
-
for (var layer_2 = __values(layer), layer_2_1 = layer_2.next(); !layer_2_1.done; layer_2_1 = layer_2.next()) {
|
|
78974
|
+
for (var layer_2 = __values$d(layer), layer_2_1 = layer_2.next(); !layer_2_1.done; layer_2_1 = layer_2.next()) {
|
|
77661
78975
|
var singleLayer = layer_2_1.value;
|
|
77662
78976
|
this._removeLayer(singleLayer);
|
|
77663
78977
|
}
|
|
@@ -77696,6 +79010,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
77696
79010
|
return LayerManager;
|
|
77697
79011
|
}());
|
|
77698
79012
|
|
|
79013
|
+
var __values$e = (window && window.__values) || function(o) {
|
|
79014
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
79015
|
+
if (m) return m.call(o);
|
|
79016
|
+
if (o && typeof o.length === "number") return {
|
|
79017
|
+
next: function () {
|
|
79018
|
+
if (o && i >= o.length) o = void 0;
|
|
79019
|
+
return { value: o && o[i++], done: !o };
|
|
79020
|
+
}
|
|
79021
|
+
};
|
|
79022
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
79023
|
+
};
|
|
77699
79024
|
/**
|
|
77700
79025
|
* A manager for the map control's popups.
|
|
77701
79026
|
* Exposed through the `popups` property of the `atlas.Map` class.
|
|
@@ -77756,7 +79081,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
77756
79081
|
var e_1, _a;
|
|
77757
79082
|
popup = Array.isArray(popup) ? popup : [popup];
|
|
77758
79083
|
try {
|
|
77759
|
-
for (var popup_1 = __values(popup), popup_1_1 = popup_1.next(); !popup_1_1.done; popup_1_1 = popup_1.next()) {
|
|
79084
|
+
for (var popup_1 = __values$e(popup), popup_1_1 = popup_1.next(); !popup_1_1.done; popup_1_1 = popup_1.next()) {
|
|
77760
79085
|
var p = popup_1_1.value;
|
|
77761
79086
|
if (!this.popups.has(p)) {
|
|
77762
79087
|
this.popups.add(p);
|
|
@@ -77790,7 +79115,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
77790
79115
|
var e_2, _a;
|
|
77791
79116
|
popup = Array.isArray(popup) ? popup : [popup];
|
|
77792
79117
|
try {
|
|
77793
|
-
for (var popup_2 = __values(popup), popup_2_1 = popup_2.next(); !popup_2_1.done; popup_2_1 = popup_2.next()) {
|
|
79118
|
+
for (var popup_2 = __values$e(popup), popup_2_1 = popup_2.next(); !popup_2_1.done; popup_2_1 = popup_2.next()) {
|
|
77794
79119
|
var p = popup_2_1.value;
|
|
77795
79120
|
if (this.popups.has(p)) {
|
|
77796
79121
|
this.popups.delete(p);
|
|
@@ -77850,12 +79175,38 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
77850
79175
|
return PopupManager;
|
|
77851
79176
|
}());
|
|
77852
79177
|
|
|
79178
|
+
var __extends$X = (window && window.__extends) || (function () {
|
|
79179
|
+
var extendStatics = function (d, b) {
|
|
79180
|
+
extendStatics = Object.setPrototypeOf ||
|
|
79181
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
79182
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
79183
|
+
return extendStatics(d, b);
|
|
79184
|
+
};
|
|
79185
|
+
return function (d, b) {
|
|
79186
|
+
if (typeof b !== "function" && b !== null)
|
|
79187
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
79188
|
+
extendStatics(d, b);
|
|
79189
|
+
function __() { this.constructor = d; }
|
|
79190
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
79191
|
+
};
|
|
79192
|
+
})();
|
|
79193
|
+
var __assign$6 = (window && window.__assign) || function () {
|
|
79194
|
+
__assign$6 = Object.assign || function(t) {
|
|
79195
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
79196
|
+
s = arguments[i];
|
|
79197
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
79198
|
+
t[p] = s[p];
|
|
79199
|
+
}
|
|
79200
|
+
return t;
|
|
79201
|
+
};
|
|
79202
|
+
return __assign$6.apply(this, arguments);
|
|
79203
|
+
};
|
|
77853
79204
|
/**
|
|
77854
79205
|
* Used to represent the fundamental map source.
|
|
77855
79206
|
* @private
|
|
77856
79207
|
*/
|
|
77857
79208
|
var FundamentalMapSource = /** @class */ (function (_super) {
|
|
77858
|
-
__extends(FundamentalMapSource, _super);
|
|
79209
|
+
__extends$X(FundamentalMapSource, _super);
|
|
77859
79210
|
/**
|
|
77860
79211
|
* Constructs a source from the contents of a layer resource file.
|
|
77861
79212
|
* @param id The source's id.
|
|
@@ -77887,7 +79238,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
77887
79238
|
var tileUrl = new Url({
|
|
77888
79239
|
domain: constants.domainPlaceHolder,
|
|
77889
79240
|
path: tile.path,
|
|
77890
|
-
queryParams: __assign(__assign({}, options), tile.queryParams)
|
|
79241
|
+
queryParams: __assign$6(__assign$6({}, options), tile.queryParams)
|
|
77891
79242
|
});
|
|
77892
79243
|
return tileUrl.toString();
|
|
77893
79244
|
});
|
|
@@ -77899,7 +79250,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
77899
79250
|
new Url({
|
|
77900
79251
|
domain: constants.domainPlaceHolder,
|
|
77901
79252
|
path: sourceDef.url.path,
|
|
77902
|
-
queryParams: __assign(__assign({}, options), sourceDef.url.queryParams)
|
|
79253
|
+
queryParams: __assign$6(__assign$6({}, options), sourceDef.url.queryParams)
|
|
77903
79254
|
}).toString();
|
|
77904
79255
|
}
|
|
77905
79256
|
else {
|
|
@@ -77910,6 +79261,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
77910
79261
|
return FundamentalMapSource;
|
|
77911
79262
|
}(Source));
|
|
77912
79263
|
|
|
79264
|
+
var __values$f = (window && window.__values) || function(o) {
|
|
79265
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
79266
|
+
if (m) return m.call(o);
|
|
79267
|
+
if (o && typeof o.length === "number") return {
|
|
79268
|
+
next: function () {
|
|
79269
|
+
if (o && i >= o.length) o = void 0;
|
|
79270
|
+
return { value: o && o[i++], done: !o };
|
|
79271
|
+
}
|
|
79272
|
+
};
|
|
79273
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
79274
|
+
};
|
|
77913
79275
|
/**
|
|
77914
79276
|
* A manager for the map control's sources.
|
|
77915
79277
|
* Exposed through the sources property of the atlas.Map class.
|
|
@@ -77928,7 +79290,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
77928
79290
|
if (update === void 0) { update = true; }
|
|
77929
79291
|
if (Array.isArray(source)) {
|
|
77930
79292
|
try {
|
|
77931
|
-
for (var source_1 = __values(source), source_1_1 = source_1.next(); !source_1_1.done; source_1_1 = source_1.next()) {
|
|
79293
|
+
for (var source_1 = __values$f(source), source_1_1 = source_1.next(); !source_1_1.done; source_1_1 = source_1.next()) {
|
|
77932
79294
|
var singleSource = source_1_1.value;
|
|
77933
79295
|
this._addSource(singleSource, update);
|
|
77934
79296
|
}
|
|
@@ -78054,7 +79416,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
78054
79416
|
if (update === void 0) { update = true; }
|
|
78055
79417
|
if (Array.isArray(source)) {
|
|
78056
79418
|
try {
|
|
78057
|
-
for (var source_2 = __values(source), source_2_1 = source_2.next(); !source_2_1.done; source_2_1 = source_2.next()) {
|
|
79419
|
+
for (var source_2 = __values$f(source), source_2_1 = source_2.next(); !source_2_1.done; source_2_1 = source_2.next()) {
|
|
78058
79420
|
var singleSource = source_2_1.value;
|
|
78059
79421
|
this._removeSource(singleSource, update);
|
|
78060
79422
|
}
|
|
@@ -78121,7 +79483,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
78121
79483
|
var e_3, _a;
|
|
78122
79484
|
var shapesOrFeatures = [];
|
|
78123
79485
|
try {
|
|
78124
|
-
for (var features_1 = __values(features), features_1_1 = features_1.next(); !features_1_1.done; features_1_1 = features_1.next()) {
|
|
79486
|
+
for (var features_1 = __values$f(features), features_1_1 = features_1.next(); !features_1_1.done; features_1_1 = features_1.next()) {
|
|
78125
79487
|
var feature = features_1_1.value;
|
|
78126
79488
|
if ((dataSource || typeof feature["source"] === "string") &&
|
|
78127
79489
|
typeof feature.properties[Shape._shapeIdPropName] === "string") {
|
|
@@ -78196,11 +79558,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
78196
79558
|
return SourceManager;
|
|
78197
79559
|
}());
|
|
78198
79560
|
|
|
79561
|
+
var __extends$Y = (window && window.__extends) || (function () {
|
|
79562
|
+
var extendStatics = function (d, b) {
|
|
79563
|
+
extendStatics = Object.setPrototypeOf ||
|
|
79564
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
79565
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
79566
|
+
return extendStatics(d, b);
|
|
79567
|
+
};
|
|
79568
|
+
return function (d, b) {
|
|
79569
|
+
if (typeof b !== "function" && b !== null)
|
|
79570
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
79571
|
+
extendStatics(d, b);
|
|
79572
|
+
function __() { this.constructor = d; }
|
|
79573
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
79574
|
+
};
|
|
79575
|
+
})();
|
|
78199
79576
|
/**
|
|
78200
79577
|
* The options for animating changes to the map control's camera.
|
|
78201
79578
|
*/
|
|
78202
79579
|
var AnimationOptions = /** @class */ (function (_super) {
|
|
78203
|
-
__extends(AnimationOptions, _super);
|
|
79580
|
+
__extends$Y(AnimationOptions, _super);
|
|
78204
79581
|
function AnimationOptions() {
|
|
78205
79582
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
78206
79583
|
/**
|
|
@@ -78224,11 +79601,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
78224
79601
|
return AnimationOptions;
|
|
78225
79602
|
}(Options));
|
|
78226
79603
|
|
|
79604
|
+
var __extends$Z = (window && window.__extends) || (function () {
|
|
79605
|
+
var extendStatics = function (d, b) {
|
|
79606
|
+
extendStatics = Object.setPrototypeOf ||
|
|
79607
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
79608
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
79609
|
+
return extendStatics(d, b);
|
|
79610
|
+
};
|
|
79611
|
+
return function (d, b) {
|
|
79612
|
+
if (typeof b !== "function" && b !== null)
|
|
79613
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
79614
|
+
extendStatics(d, b);
|
|
79615
|
+
function __() { this.constructor = d; }
|
|
79616
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
79617
|
+
};
|
|
79618
|
+
})();
|
|
78227
79619
|
/**
|
|
78228
79620
|
* Represent the amount of padding in pixels to add to the side of a BoundingBox when setting the camera of a map.
|
|
78229
79621
|
*/
|
|
78230
79622
|
var Padding = /** @class */ (function (_super) {
|
|
78231
|
-
__extends(Padding, _super);
|
|
79623
|
+
__extends$Z(Padding, _super);
|
|
78232
79624
|
function Padding() {
|
|
78233
79625
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
78234
79626
|
/**
|
|
@@ -78260,11 +79652,58 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
78260
79652
|
return Padding;
|
|
78261
79653
|
}(Options));
|
|
78262
79654
|
|
|
79655
|
+
var __extends$_ = (window && window.__extends) || (function () {
|
|
79656
|
+
var extendStatics = function (d, b) {
|
|
79657
|
+
extendStatics = Object.setPrototypeOf ||
|
|
79658
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
79659
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
79660
|
+
return extendStatics(d, b);
|
|
79661
|
+
};
|
|
79662
|
+
return function (d, b) {
|
|
79663
|
+
if (typeof b !== "function" && b !== null)
|
|
79664
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
79665
|
+
extendStatics(d, b);
|
|
79666
|
+
function __() { this.constructor = d; }
|
|
79667
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
79668
|
+
};
|
|
79669
|
+
})();
|
|
79670
|
+
var __values$g = (window && window.__values) || function(o) {
|
|
79671
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
79672
|
+
if (m) return m.call(o);
|
|
79673
|
+
if (o && typeof o.length === "number") return {
|
|
79674
|
+
next: function () {
|
|
79675
|
+
if (o && i >= o.length) o = void 0;
|
|
79676
|
+
return { value: o && o[i++], done: !o };
|
|
79677
|
+
}
|
|
79678
|
+
};
|
|
79679
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
79680
|
+
};
|
|
79681
|
+
var __read$b = (window && window.__read) || function (o, n) {
|
|
79682
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
79683
|
+
if (!m) return o;
|
|
79684
|
+
var i = m.call(o), r, ar = [], e;
|
|
79685
|
+
try {
|
|
79686
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
79687
|
+
}
|
|
79688
|
+
catch (error) { e = { error: error }; }
|
|
79689
|
+
finally {
|
|
79690
|
+
try {
|
|
79691
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
79692
|
+
}
|
|
79693
|
+
finally { if (e) throw e.error; }
|
|
79694
|
+
}
|
|
79695
|
+
return ar;
|
|
79696
|
+
};
|
|
79697
|
+
var __spreadArray$5 = (window && window.__spreadArray) || function (to, from) {
|
|
79698
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
79699
|
+
to[j] = from[i];
|
|
79700
|
+
return to;
|
|
79701
|
+
};
|
|
78263
79702
|
/**
|
|
78264
79703
|
* The options for setting the bounds of the map control's camera.
|
|
78265
79704
|
*/
|
|
78266
79705
|
var CameraBoundsOptions = /** @class */ (function (_super) {
|
|
78267
|
-
__extends(CameraBoundsOptions, _super);
|
|
79706
|
+
__extends$_(CameraBoundsOptions, _super);
|
|
78268
79707
|
function CameraBoundsOptions() {
|
|
78269
79708
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
78270
79709
|
/**
|
|
@@ -78311,7 +79750,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
78311
79750
|
valuesList[_i] = arguments[_i];
|
|
78312
79751
|
}
|
|
78313
79752
|
try {
|
|
78314
|
-
for (var valuesList_1 = __values(valuesList), valuesList_1_1 = valuesList_1.next(); !valuesList_1_1.done; valuesList_1_1 = valuesList_1.next()) {
|
|
79753
|
+
for (var valuesList_1 = __values$g(valuesList), valuesList_1_1 = valuesList_1.next(); !valuesList_1_1.done; valuesList_1_1 = valuesList_1.next()) {
|
|
78315
79754
|
var value = valuesList_1_1.value;
|
|
78316
79755
|
if (value && typeof value.padding === "number") {
|
|
78317
79756
|
value.padding = {
|
|
@@ -78330,16 +79769,31 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
78330
79769
|
}
|
|
78331
79770
|
finally { if (e_1) throw e_1.error; }
|
|
78332
79771
|
}
|
|
78333
|
-
return _super.prototype.merge.apply(this,
|
|
79772
|
+
return _super.prototype.merge.apply(this, __spreadArray$5([], __read$b(valuesList)));
|
|
78334
79773
|
};
|
|
78335
79774
|
return CameraBoundsOptions;
|
|
78336
79775
|
}(Options));
|
|
78337
79776
|
|
|
79777
|
+
var __extends$$ = (window && window.__extends) || (function () {
|
|
79778
|
+
var extendStatics = function (d, b) {
|
|
79779
|
+
extendStatics = Object.setPrototypeOf ||
|
|
79780
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
79781
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
79782
|
+
return extendStatics(d, b);
|
|
79783
|
+
};
|
|
79784
|
+
return function (d, b) {
|
|
79785
|
+
if (typeof b !== "function" && b !== null)
|
|
79786
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
79787
|
+
extendStatics(d, b);
|
|
79788
|
+
function __() { this.constructor = d; }
|
|
79789
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
79790
|
+
};
|
|
79791
|
+
})();
|
|
78338
79792
|
/**
|
|
78339
79793
|
* The options for setting the map control's camera.
|
|
78340
79794
|
*/
|
|
78341
79795
|
var CameraOptions = /** @class */ (function (_super) {
|
|
78342
|
-
__extends(CameraOptions, _super);
|
|
79796
|
+
__extends$$(CameraOptions, _super);
|
|
78343
79797
|
function CameraOptions() {
|
|
78344
79798
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
78345
79799
|
/**
|
|
@@ -78398,11 +79852,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
78398
79852
|
return CameraOptions;
|
|
78399
79853
|
}(Options));
|
|
78400
79854
|
|
|
79855
|
+
var __extends$10 = (window && window.__extends) || (function () {
|
|
79856
|
+
var extendStatics = function (d, b) {
|
|
79857
|
+
extendStatics = Object.setPrototypeOf ||
|
|
79858
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
79859
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
79860
|
+
return extendStatics(d, b);
|
|
79861
|
+
};
|
|
79862
|
+
return function (d, b) {
|
|
79863
|
+
if (typeof b !== "function" && b !== null)
|
|
79864
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
79865
|
+
extendStatics(d, b);
|
|
79866
|
+
function __() { this.constructor = d; }
|
|
79867
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
79868
|
+
};
|
|
79869
|
+
})();
|
|
78401
79870
|
/**
|
|
78402
79871
|
* The options for a layer of the map.
|
|
78403
79872
|
*/
|
|
78404
79873
|
var LayerOptions$1 = /** @class */ (function (_super) {
|
|
78405
|
-
__extends(LayerOptions, _super);
|
|
79874
|
+
__extends$10(LayerOptions, _super);
|
|
78406
79875
|
function LayerOptions() {
|
|
78407
79876
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
78408
79877
|
/**
|
|
@@ -78435,12 +79904,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
78435
79904
|
return LayerOptions;
|
|
78436
79905
|
}(Options));
|
|
78437
79906
|
|
|
79907
|
+
var __extends$11 = (window && window.__extends) || (function () {
|
|
79908
|
+
var extendStatics = function (d, b) {
|
|
79909
|
+
extendStatics = Object.setPrototypeOf ||
|
|
79910
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
79911
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
79912
|
+
return extendStatics(d, b);
|
|
79913
|
+
};
|
|
79914
|
+
return function (d, b) {
|
|
79915
|
+
if (typeof b !== "function" && b !== null)
|
|
79916
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
79917
|
+
extendStatics(d, b);
|
|
79918
|
+
function __() { this.constructor = d; }
|
|
79919
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
79920
|
+
};
|
|
79921
|
+
})();
|
|
78438
79922
|
/**
|
|
78439
79923
|
* The options for a circle layer.
|
|
78440
79924
|
* @deprecated Use BubbleLayerOptions with atlas.layer.BubbleLayer instead.
|
|
78441
79925
|
*/
|
|
78442
79926
|
var CircleLayerOptions = /** @class */ (function (_super) {
|
|
78443
|
-
__extends(CircleLayerOptions, _super);
|
|
79927
|
+
__extends$11(CircleLayerOptions, _super);
|
|
78444
79928
|
function CircleLayerOptions() {
|
|
78445
79929
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
78446
79930
|
/**
|
|
@@ -78472,12 +79956,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
78472
79956
|
return CircleLayerOptions;
|
|
78473
79957
|
}(LayerOptions$1));
|
|
78474
79958
|
|
|
79959
|
+
var __extends$12 = (window && window.__extends) || (function () {
|
|
79960
|
+
var extendStatics = function (d, b) {
|
|
79961
|
+
extendStatics = Object.setPrototypeOf ||
|
|
79962
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
79963
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
79964
|
+
return extendStatics(d, b);
|
|
79965
|
+
};
|
|
79966
|
+
return function (d, b) {
|
|
79967
|
+
if (typeof b !== "function" && b !== null)
|
|
79968
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
79969
|
+
extendStatics(d, b);
|
|
79970
|
+
function __() { this.constructor = d; }
|
|
79971
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
79972
|
+
};
|
|
79973
|
+
})();
|
|
78475
79974
|
/**
|
|
78476
79975
|
* The options for a linestring layer.
|
|
78477
79976
|
* @deprecated Use LineLayerOptions with atlas.layer.LineLayer instead.
|
|
78478
79977
|
*/
|
|
78479
79978
|
var LinestringLayerOptions = /** @class */ (function (_super) {
|
|
78480
|
-
__extends(LinestringLayerOptions, _super);
|
|
79979
|
+
__extends$12(LinestringLayerOptions, _super);
|
|
78481
79980
|
function LinestringLayerOptions() {
|
|
78482
79981
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
78483
79982
|
/**
|
|
@@ -78513,12 +80012,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
78513
80012
|
return LinestringLayerOptions;
|
|
78514
80013
|
}(LayerOptions$1));
|
|
78515
80014
|
|
|
80015
|
+
var __extends$13 = (window && window.__extends) || (function () {
|
|
80016
|
+
var extendStatics = function (d, b) {
|
|
80017
|
+
extendStatics = Object.setPrototypeOf ||
|
|
80018
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
80019
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
80020
|
+
return extendStatics(d, b);
|
|
80021
|
+
};
|
|
80022
|
+
return function (d, b) {
|
|
80023
|
+
if (typeof b !== "function" && b !== null)
|
|
80024
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
80025
|
+
extendStatics(d, b);
|
|
80026
|
+
function __() { this.constructor = d; }
|
|
80027
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
80028
|
+
};
|
|
80029
|
+
})();
|
|
78516
80030
|
/**
|
|
78517
80031
|
* The options for a pin layer.
|
|
78518
80032
|
* @deprecated Use SymbolLayerOptions with atlas.layer.SymbolLayer instead.
|
|
78519
80033
|
*/
|
|
78520
80034
|
var PinLayerOptions = /** @class */ (function (_super) {
|
|
78521
|
-
__extends(PinLayerOptions, _super);
|
|
80035
|
+
__extends$13(PinLayerOptions, _super);
|
|
78522
80036
|
function PinLayerOptions() {
|
|
78523
80037
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
78524
80038
|
/**
|
|
@@ -78568,12 +80082,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
78568
80082
|
return PinLayerOptions;
|
|
78569
80083
|
}(LayerOptions$1));
|
|
78570
80084
|
|
|
80085
|
+
var __extends$14 = (window && window.__extends) || (function () {
|
|
80086
|
+
var extendStatics = function (d, b) {
|
|
80087
|
+
extendStatics = Object.setPrototypeOf ||
|
|
80088
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
80089
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
80090
|
+
return extendStatics(d, b);
|
|
80091
|
+
};
|
|
80092
|
+
return function (d, b) {
|
|
80093
|
+
if (typeof b !== "function" && b !== null)
|
|
80094
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
80095
|
+
extendStatics(d, b);
|
|
80096
|
+
function __() { this.constructor = d; }
|
|
80097
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
80098
|
+
};
|
|
80099
|
+
})();
|
|
78571
80100
|
/**
|
|
78572
80101
|
* The options for a polygon layer.
|
|
78573
80102
|
* @deprecated Use new PolygonLayerOptions with atlas.layer.PolygonLayer instead.
|
|
78574
80103
|
*/
|
|
78575
80104
|
var PolygonLayerOptions$1 = /** @class */ (function (_super) {
|
|
78576
|
-
__extends(PolygonLayerOptions, _super);
|
|
80105
|
+
__extends$14(PolygonLayerOptions, _super);
|
|
78577
80106
|
function PolygonLayerOptions() {
|
|
78578
80107
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
78579
80108
|
/**
|
|
@@ -78596,12 +80125,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
78596
80125
|
return PolygonLayerOptions;
|
|
78597
80126
|
}(LayerOptions$1));
|
|
78598
80127
|
|
|
80128
|
+
var __extends$15 = (window && window.__extends) || (function () {
|
|
80129
|
+
var extendStatics = function (d, b) {
|
|
80130
|
+
extendStatics = Object.setPrototypeOf ||
|
|
80131
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
80132
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
80133
|
+
return extendStatics(d, b);
|
|
80134
|
+
};
|
|
80135
|
+
return function (d, b) {
|
|
80136
|
+
if (typeof b !== "function" && b !== null)
|
|
80137
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
80138
|
+
extendStatics(d, b);
|
|
80139
|
+
function __() { this.constructor = d; }
|
|
80140
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
80141
|
+
};
|
|
80142
|
+
})();
|
|
78599
80143
|
/**
|
|
78600
80144
|
* The options for a raster layer.
|
|
78601
80145
|
* @deprecated Use TileLayerOptions with atlas.layer.TileLayer instead.
|
|
78602
80146
|
*/
|
|
78603
80147
|
var RasterLayerOptions = /** @class */ (function (_super) {
|
|
78604
|
-
__extends(RasterLayerOptions, _super);
|
|
80148
|
+
__extends$15(RasterLayerOptions, _super);
|
|
78605
80149
|
function RasterLayerOptions() {
|
|
78606
80150
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
78607
80151
|
/**
|
|
@@ -78613,11 +80157,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
78613
80157
|
return RasterLayerOptions;
|
|
78614
80158
|
}(LayerOptions$1));
|
|
78615
80159
|
|
|
80160
|
+
var __extends$16 = (window && window.__extends) || (function () {
|
|
80161
|
+
var extendStatics = function (d, b) {
|
|
80162
|
+
extendStatics = Object.setPrototypeOf ||
|
|
80163
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
80164
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
80165
|
+
return extendStatics(d, b);
|
|
80166
|
+
};
|
|
80167
|
+
return function (d, b) {
|
|
80168
|
+
if (typeof b !== "function" && b !== null)
|
|
80169
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
80170
|
+
extendStatics(d, b);
|
|
80171
|
+
function __() { this.constructor = d; }
|
|
80172
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
80173
|
+
};
|
|
80174
|
+
})();
|
|
78616
80175
|
/**
|
|
78617
80176
|
* The options for the map's lighting.
|
|
78618
80177
|
*/
|
|
78619
80178
|
var LightOptions = /** @class */ (function (_super) {
|
|
78620
|
-
__extends(LightOptions, _super);
|
|
80179
|
+
__extends$16(LightOptions, _super);
|
|
78621
80180
|
function LightOptions() {
|
|
78622
80181
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
78623
80182
|
/**
|
|
@@ -78657,11 +80216,58 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
78657
80216
|
return LightOptions;
|
|
78658
80217
|
}(Options));
|
|
78659
80218
|
|
|
80219
|
+
var __extends$17 = (window && window.__extends) || (function () {
|
|
80220
|
+
var extendStatics = function (d, b) {
|
|
80221
|
+
extendStatics = Object.setPrototypeOf ||
|
|
80222
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
80223
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
80224
|
+
return extendStatics(d, b);
|
|
80225
|
+
};
|
|
80226
|
+
return function (d, b) {
|
|
80227
|
+
if (typeof b !== "function" && b !== null)
|
|
80228
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
80229
|
+
extendStatics(d, b);
|
|
80230
|
+
function __() { this.constructor = d; }
|
|
80231
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
80232
|
+
};
|
|
80233
|
+
})();
|
|
80234
|
+
var __values$h = (window && window.__values) || function(o) {
|
|
80235
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
80236
|
+
if (m) return m.call(o);
|
|
80237
|
+
if (o && typeof o.length === "number") return {
|
|
80238
|
+
next: function () {
|
|
80239
|
+
if (o && i >= o.length) o = void 0;
|
|
80240
|
+
return { value: o && o[i++], done: !o };
|
|
80241
|
+
}
|
|
80242
|
+
};
|
|
80243
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
80244
|
+
};
|
|
80245
|
+
var __read$c = (window && window.__read) || function (o, n) {
|
|
80246
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
80247
|
+
if (!m) return o;
|
|
80248
|
+
var i = m.call(o), r, ar = [], e;
|
|
80249
|
+
try {
|
|
80250
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
80251
|
+
}
|
|
80252
|
+
catch (error) { e = { error: error }; }
|
|
80253
|
+
finally {
|
|
80254
|
+
try {
|
|
80255
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
80256
|
+
}
|
|
80257
|
+
finally { if (e) throw e.error; }
|
|
80258
|
+
}
|
|
80259
|
+
return ar;
|
|
80260
|
+
};
|
|
80261
|
+
var __spreadArray$6 = (window && window.__spreadArray) || function (to, from) {
|
|
80262
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
80263
|
+
to[j] = from[i];
|
|
80264
|
+
return to;
|
|
80265
|
+
};
|
|
78660
80266
|
/**
|
|
78661
80267
|
* The options for the map's style.
|
|
78662
80268
|
*/
|
|
78663
80269
|
var StyleOptions = /** @class */ (function (_super) {
|
|
78664
|
-
__extends(StyleOptions, _super);
|
|
80270
|
+
__extends$17(StyleOptions, _super);
|
|
78665
80271
|
function StyleOptions() {
|
|
78666
80272
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
78667
80273
|
/**
|
|
@@ -78693,6 +80299,20 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
78693
80299
|
* @default false
|
|
78694
80300
|
*/
|
|
78695
80301
|
_this.preserveDrawingBuffer = false;
|
|
80302
|
+
/**
|
|
80303
|
+
* If true, the map will try to defer non-essential map layers and show essential layers as early as possible.
|
|
80304
|
+
* This option may only be set when initializing the map.
|
|
80305
|
+
* Default `false`
|
|
80306
|
+
* @default false
|
|
80307
|
+
*/
|
|
80308
|
+
_this.progressiveLoading = false;
|
|
80309
|
+
/**
|
|
80310
|
+
* The list of layer groups to be loaded at the initial stage. Passing an empty array will disable the progressive loading.
|
|
80311
|
+
* This option may only be set when initializing the map.
|
|
80312
|
+
* Default `['base']`
|
|
80313
|
+
* @default ['base']
|
|
80314
|
+
*/
|
|
80315
|
+
_this.progressiveLoadingInitialLayerGroups = ['base'];
|
|
78696
80316
|
/**
|
|
78697
80317
|
* Specifies if multiple copies of the world should be rendered when zoomed out.
|
|
78698
80318
|
* Default `true`
|
|
@@ -78772,7 +80392,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
78772
80392
|
valueList[_i] = arguments[_i];
|
|
78773
80393
|
}
|
|
78774
80394
|
try {
|
|
78775
|
-
for (var valueList_1 = __values(valueList), valueList_1_1 = valueList_1.next(); !valueList_1_1.done; valueList_1_1 = valueList_1.next()) {
|
|
80395
|
+
for (var valueList_1 = __values$h(valueList), valueList_1_1 = valueList_1.next(); !valueList_1_1.done; valueList_1_1 = valueList_1.next()) {
|
|
78776
80396
|
var value = valueList_1_1.value;
|
|
78777
80397
|
if (value) {
|
|
78778
80398
|
// Make sure both view and userRegion properties exist. Prefer view's value.
|
|
@@ -78797,24 +80417,82 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
78797
80417
|
finally { if (e_1) throw e_1.error; }
|
|
78798
80418
|
}
|
|
78799
80419
|
// Then execute the standard merge behavior.
|
|
78800
|
-
return _super.prototype.merge.apply(this,
|
|
80420
|
+
return _super.prototype.merge.apply(this, __spreadArray$6([], __read$c(valueList)));
|
|
78801
80421
|
};
|
|
78802
80422
|
return StyleOptions;
|
|
78803
80423
|
}(Options));
|
|
78804
80424
|
|
|
80425
|
+
var __extends$18 = (window && window.__extends) || (function () {
|
|
80426
|
+
var extendStatics = function (d, b) {
|
|
80427
|
+
extendStatics = Object.setPrototypeOf ||
|
|
80428
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
80429
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
80430
|
+
return extendStatics(d, b);
|
|
80431
|
+
};
|
|
80432
|
+
return function (d, b) {
|
|
80433
|
+
if (typeof b !== "function" && b !== null)
|
|
80434
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
80435
|
+
extendStatics(d, b);
|
|
80436
|
+
function __() { this.constructor = d; }
|
|
80437
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
80438
|
+
};
|
|
80439
|
+
})();
|
|
80440
|
+
var __assign$7 = (window && window.__assign) || function () {
|
|
80441
|
+
__assign$7 = Object.assign || function(t) {
|
|
80442
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
80443
|
+
s = arguments[i];
|
|
80444
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
80445
|
+
t[p] = s[p];
|
|
80446
|
+
}
|
|
80447
|
+
return t;
|
|
80448
|
+
};
|
|
80449
|
+
return __assign$7.apply(this, arguments);
|
|
80450
|
+
};
|
|
80451
|
+
var __values$i = (window && window.__values) || function(o) {
|
|
80452
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
80453
|
+
if (m) return m.call(o);
|
|
80454
|
+
if (o && typeof o.length === "number") return {
|
|
80455
|
+
next: function () {
|
|
80456
|
+
if (o && i >= o.length) o = void 0;
|
|
80457
|
+
return { value: o && o[i++], done: !o };
|
|
80458
|
+
}
|
|
80459
|
+
};
|
|
80460
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
80461
|
+
};
|
|
80462
|
+
var __read$d = (window && window.__read) || function (o, n) {
|
|
80463
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
80464
|
+
if (!m) return o;
|
|
80465
|
+
var i = m.call(o), r, ar = [], e;
|
|
80466
|
+
try {
|
|
80467
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
80468
|
+
}
|
|
80469
|
+
catch (error) { e = { error: error }; }
|
|
80470
|
+
finally {
|
|
80471
|
+
try {
|
|
80472
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
80473
|
+
}
|
|
80474
|
+
finally { if (e) throw e.error; }
|
|
80475
|
+
}
|
|
80476
|
+
return ar;
|
|
80477
|
+
};
|
|
80478
|
+
var __spreadArray$7 = (window && window.__spreadArray) || function (to, from) {
|
|
80479
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
80480
|
+
to[j] = from[i];
|
|
80481
|
+
return to;
|
|
80482
|
+
};
|
|
78805
80483
|
var composeTransformers = function (transformers) { return transformers.length == 0
|
|
78806
80484
|
? undefined
|
|
78807
80485
|
: transformers.slice(1).reduce(function (chained, transform) {
|
|
78808
80486
|
return function (url, resourceType) {
|
|
78809
80487
|
var resourceParams = chained(url, resourceType);
|
|
78810
|
-
return __assign(__assign({}, resourceParams), transform(resourceParams.url, resourceType));
|
|
80488
|
+
return __assign$7(__assign$7({}, resourceParams), transform(resourceParams.url, resourceType));
|
|
78811
80489
|
};
|
|
78812
80490
|
}, transformers[0]); };
|
|
78813
80491
|
/**
|
|
78814
80492
|
* Global properties used in all atlas service requests.
|
|
78815
80493
|
*/
|
|
78816
80494
|
var ServiceOptions = /** @class */ (function (_super) {
|
|
78817
|
-
__extends(ServiceOptions, _super);
|
|
80495
|
+
__extends$18(ServiceOptions, _super);
|
|
78818
80496
|
function ServiceOptions() {
|
|
78819
80497
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
78820
80498
|
/**
|
|
@@ -78973,7 +80651,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
78973
80651
|
}
|
|
78974
80652
|
try {
|
|
78975
80653
|
// Make sure both camel and dash case properties exist. Prefer the camel case ones.
|
|
78976
|
-
for (var valueList_1 = __values(valueList), valueList_1_1 = valueList_1.next(); !valueList_1_1.done; valueList_1_1 = valueList_1.next()) {
|
|
80654
|
+
for (var valueList_1 = __values$i(valueList), valueList_1_1 = valueList_1.next(); !valueList_1_1.done; valueList_1_1 = valueList_1.next()) {
|
|
78977
80655
|
var value = valueList_1_1.value;
|
|
78978
80656
|
if (value) {
|
|
78979
80657
|
// authOptions can also have a subscription key so check for that first.
|
|
@@ -79032,10 +80710,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
79032
80710
|
// won't change default behavior in Options as usually that's what desired
|
|
79033
80711
|
// instead capture it here and reassign.
|
|
79034
80712
|
var currentTransforms = this._transformers;
|
|
79035
|
-
var transformersToMerge = valueList ? valueList.filter(function (value) { return value !== undefined; }).reduce(function (flattened, value) { return
|
|
80713
|
+
var transformersToMerge = valueList ? valueList.filter(function (value) { return value !== undefined; }).reduce(function (flattened, value) { return __spreadArray$7(__spreadArray$7([], __read$d(flattened)), __read$d(value._transformers || [])); }, []) : [];
|
|
79036
80714
|
// Then execute the standard merge behavior.
|
|
79037
80715
|
// If subscription key auth method isn't being used then the subscription key property should be undefined.
|
|
79038
|
-
var merged = _super.prototype.merge.apply(this,
|
|
80716
|
+
var merged = _super.prototype.merge.apply(this, __spreadArray$7([], __read$d(valueList)));
|
|
79039
80717
|
if (merged.authOptions.authType !== exports.AuthenticationType.subscriptionKey) {
|
|
79040
80718
|
merged["subscription-key"] = merged.subscriptionKey = undefined;
|
|
79041
80719
|
}
|
|
@@ -79045,9 +80723,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
79045
80723
|
}
|
|
79046
80724
|
// reassign properties from legacy mapConfiguration to new structure if needed
|
|
79047
80725
|
if (merged.mapConfiguration && typeof merged.mapConfiguration !== 'string') {
|
|
79048
|
-
merged.mapConfiguration = __assign(__assign({}, merged.mapConfiguration), { defaultConfiguration: merged.mapConfiguration.defaultConfiguration || merged.mapConfiguration['defaultStyle'], configurations: merged.mapConfiguration.configurations || merged.mapConfiguration['styles'] });
|
|
80726
|
+
merged.mapConfiguration = __assign$7(__assign$7({}, merged.mapConfiguration), { defaultConfiguration: merged.mapConfiguration.defaultConfiguration || merged.mapConfiguration['defaultStyle'], configurations: merged.mapConfiguration.configurations || merged.mapConfiguration['styles'] });
|
|
79049
80727
|
}
|
|
79050
|
-
this._transformers =
|
|
80728
|
+
this._transformers = __spreadArray$7(__spreadArray$7([], __read$d(currentTransforms || [])), __read$d(transformersToMerge.filter(function (toMerge) { return !currentTransforms.includes(toMerge); })));
|
|
79051
80729
|
if (this.transformRequest && !this._transformers.includes(this.transformRequest)) {
|
|
79052
80730
|
this._transformers.push(this.transformRequest);
|
|
79053
80731
|
}
|
|
@@ -79232,6 +80910,74 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
79232
80910
|
high_contrast_light: "High contrast (Light)"
|
|
79233
80911
|
};
|
|
79234
80912
|
|
|
80913
|
+
var __assign$8 = (window && window.__assign) || function () {
|
|
80914
|
+
__assign$8 = Object.assign || function(t) {
|
|
80915
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
80916
|
+
s = arguments[i];
|
|
80917
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
80918
|
+
t[p] = s[p];
|
|
80919
|
+
}
|
|
80920
|
+
return t;
|
|
80921
|
+
};
|
|
80922
|
+
return __assign$8.apply(this, arguments);
|
|
80923
|
+
};
|
|
80924
|
+
var __awaiter$3 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
80925
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
80926
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
80927
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
80928
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
80929
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
80930
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
80931
|
+
});
|
|
80932
|
+
};
|
|
80933
|
+
var __generator$3 = (window && window.__generator) || function (thisArg, body) {
|
|
80934
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
80935
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
80936
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
80937
|
+
function step(op) {
|
|
80938
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
80939
|
+
while (_) try {
|
|
80940
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
80941
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
80942
|
+
switch (op[0]) {
|
|
80943
|
+
case 0: case 1: t = op; break;
|
|
80944
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
80945
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
80946
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
80947
|
+
default:
|
|
80948
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
80949
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
80950
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
80951
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
80952
|
+
if (t[2]) _.ops.pop();
|
|
80953
|
+
_.trys.pop(); continue;
|
|
80954
|
+
}
|
|
80955
|
+
op = body.call(thisArg, _);
|
|
80956
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
80957
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
80958
|
+
}
|
|
80959
|
+
};
|
|
80960
|
+
var __read$e = (window && window.__read) || function (o, n) {
|
|
80961
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
80962
|
+
if (!m) return o;
|
|
80963
|
+
var i = m.call(o), r, ar = [], e;
|
|
80964
|
+
try {
|
|
80965
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
80966
|
+
}
|
|
80967
|
+
catch (error) { e = { error: error }; }
|
|
80968
|
+
finally {
|
|
80969
|
+
try {
|
|
80970
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
80971
|
+
}
|
|
80972
|
+
finally { if (e) throw e.error; }
|
|
80973
|
+
}
|
|
80974
|
+
return ar;
|
|
80975
|
+
};
|
|
80976
|
+
var __spreadArray$8 = (window && window.__spreadArray) || function (to, from) {
|
|
80977
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
80978
|
+
to[j] = from[i];
|
|
80979
|
+
return to;
|
|
80980
|
+
};
|
|
79235
80981
|
/**
|
|
79236
80982
|
* @private
|
|
79237
80983
|
*/
|
|
@@ -79254,6 +81000,57 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
79254
81000
|
* Preserve the map configuration that was used before the indoor map configuration was set
|
|
79255
81001
|
*/
|
|
79256
81002
|
this.preservedPreindoorMapConfiguration = undefined;
|
|
81003
|
+
this._deferLayerGroupVisibilities = function (layerGroupLayers, initLayerGroups) {
|
|
81004
|
+
var validInitLayerGroups = initLayerGroups.filter(function (groupName) { return groupName in layerGroupLayers; });
|
|
81005
|
+
// If the initial layer groups are invalid, skip the progressive loading.
|
|
81006
|
+
if (validInitLayerGroups.length === 0)
|
|
81007
|
+
return;
|
|
81008
|
+
var map = _this.map._getMap();
|
|
81009
|
+
var currentZoomLevel = map.getZoom();
|
|
81010
|
+
// Select the layers to be deferred
|
|
81011
|
+
var deferredLayers = Object.entries(layerGroupLayers).reduce(function (deferred, _a) {
|
|
81012
|
+
var _b = __read$e(_a, 2), groupName = _b[0], layers = _b[1];
|
|
81013
|
+
var isInInitialLayerGroup = validInitLayerGroups.includes(groupName);
|
|
81014
|
+
return __spreadArray$8(__spreadArray$8([], __read$e(deferred)), __read$e(layers.filter(function (layer) {
|
|
81015
|
+
var _a;
|
|
81016
|
+
// Exclude custom layers
|
|
81017
|
+
if (layer.type === 'custom')
|
|
81018
|
+
return false;
|
|
81019
|
+
// Exclude visible layers from initial layer groups
|
|
81020
|
+
if (isInInitialLayerGroup) {
|
|
81021
|
+
if (typeof layer.maxzoom === 'number' && typeof layer.minzoom === 'number') {
|
|
81022
|
+
if (currentZoomLevel <= layer.maxzoom && currentZoomLevel >= layer.minzoom)
|
|
81023
|
+
return false;
|
|
81024
|
+
}
|
|
81025
|
+
else if (typeof layer.minzoom === 'number') {
|
|
81026
|
+
if (currentZoomLevel >= layer.minzoom)
|
|
81027
|
+
return false;
|
|
81028
|
+
}
|
|
81029
|
+
else if (typeof layer.maxzoom === 'number') {
|
|
81030
|
+
if (currentZoomLevel <= layer.maxzoom)
|
|
81031
|
+
return false;
|
|
81032
|
+
}
|
|
81033
|
+
else {
|
|
81034
|
+
return false;
|
|
81035
|
+
}
|
|
81036
|
+
}
|
|
81037
|
+
// Defer visible layers only.
|
|
81038
|
+
return ((_a = layer.layout) === null || _a === void 0 ? void 0 : _a.visibility) !== 'none';
|
|
81039
|
+
})));
|
|
81040
|
+
}, []);
|
|
81041
|
+
// Hide the deferred layers at initial load, therefore we can save the render time.
|
|
81042
|
+
deferredLayers.forEach(function (layer) {
|
|
81043
|
+
layer.layout = layer.layout || {};
|
|
81044
|
+
layer.layout.visibility = 'none';
|
|
81045
|
+
});
|
|
81046
|
+
// Make the deferred layers visible once the map instance is fully loaded
|
|
81047
|
+
_this.map.events.addOnce('load', function () {
|
|
81048
|
+
deferredLayers.forEach(function (layer) {
|
|
81049
|
+
layer.layout.visibility = 'visible';
|
|
81050
|
+
map.setLayoutProperty(layer.id, 'visibility', 'visible');
|
|
81051
|
+
});
|
|
81052
|
+
});
|
|
81053
|
+
};
|
|
79257
81054
|
this._onStyleData = function () {
|
|
79258
81055
|
_this._lookUpAsync(_this.map.getStyle()).then(function (style) {
|
|
79259
81056
|
_this.map.events.invoke("stylechanged", {
|
|
@@ -79283,9 +81080,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
79283
81080
|
|| definitions.configurations[0];
|
|
79284
81081
|
}
|
|
79285
81082
|
};
|
|
79286
|
-
this._lookUpAsync = function (options) { return __awaiter(_this, void 0, void 0, function () {
|
|
81083
|
+
this._lookUpAsync = function (options) { return __awaiter$3(_this, void 0, void 0, function () {
|
|
79287
81084
|
var definitions, result;
|
|
79288
|
-
return __generator(this, function (_a) {
|
|
81085
|
+
return __generator$3(this, function (_a) {
|
|
79289
81086
|
switch (_a.label) {
|
|
79290
81087
|
case 0: return [4 /*yield*/, this.definitions()];
|
|
79291
81088
|
case 1:
|
|
@@ -79395,6 +81192,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
79395
81192
|
path: constants.stylePath + "/" + constants.styleResourcePath + "/" + style.name,
|
|
79396
81193
|
queryParams: {
|
|
79397
81194
|
styleVersion: _this.serviceOptions.styleDefinitionsVersion,
|
|
81195
|
+
// thus far we don't need to differentiate based on parameter here, as stylePatch will be called on cached styles as well
|
|
81196
|
+
//language: styleOptions.language
|
|
79398
81197
|
},
|
|
79399
81198
|
protocol: "https"
|
|
79400
81199
|
}).toString(),
|
|
@@ -79404,7 +81203,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
79404
81203
|
else if (typeof this.serviceOptions.mapConfiguration === 'string') {
|
|
79405
81204
|
newPromise = new HijackablePromise(this._request(this.serviceOptions.domain, constants.styleResourcePath + "/mapconfigurations/metadata/" + this.serviceOptions.mapConfiguration, "StyleDefinitions"
|
|
79406
81205
|
// reassign properties from legacy mapConfiguration to new structure if needed
|
|
79407
|
-
).then(function (definitions) { return (__assign(__assign({}, definitions), { defaultConfiguration: definitions.defaultConfiguration || definitions['defaultStyle'], configurations: definitions.configurations || definitions['styles'] })); }));
|
|
81206
|
+
).then(function (definitions) { return (__assign$8(__assign$8({}, definitions), { defaultConfiguration: definitions.defaultConfiguration || definitions['defaultStyle'], configurations: definitions.configurations || definitions['styles'] })); }));
|
|
79408
81207
|
}
|
|
79409
81208
|
else {
|
|
79410
81209
|
newPromise = HijackablePromise.resolve(this.serviceOptions.mapConfiguration);
|
|
@@ -79464,8 +81263,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
79464
81263
|
return style.theme.toLowerCase();
|
|
79465
81264
|
};
|
|
79466
81265
|
StyleManager.prototype.getThemeAsync = function (styleOptions) {
|
|
79467
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
79468
|
-
return __generator(this, function (_a) {
|
|
81266
|
+
return __awaiter$3(this, void 0, void 0, function () {
|
|
81267
|
+
return __generator$3(this, function (_a) {
|
|
79469
81268
|
switch (_a.label) {
|
|
79470
81269
|
case 0: return [4 /*yield*/, this._lookUpAsync(styleOptions)];
|
|
79471
81270
|
case 1: return [2 /*return*/, (_a.sent()).theme];
|
|
@@ -79534,8 +81333,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
79534
81333
|
var trafficOptions = this.map.getTraffic();
|
|
79535
81334
|
// force a replacement of language placeholder in the tileset url to avoid resolution to a same cache with placeholders on language change
|
|
79536
81335
|
nextStyle.sources = Object.entries(nextStyle.sources).reduce(function (newSources, _a) {
|
|
79537
|
-
var _b = __read(_a, 2), sourceKey = _b[0], source = _b[1];
|
|
79538
|
-
var newSource = __assign({}, source);
|
|
81336
|
+
var _b = __read$e(_a, 2), sourceKey = _b[0], source = _b[1];
|
|
81337
|
+
var newSource = __assign$8({}, source);
|
|
79539
81338
|
if ('url' in newSource && typeof newSource.url === 'string') {
|
|
79540
81339
|
if (newSource.url.includes(constants.languagePlaceHolder)) {
|
|
79541
81340
|
newSource.url = newSource.url.replace(constants.languagePlaceHolder, styleOptions.language);
|
|
@@ -79544,46 +81343,39 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
79544
81343
|
newSources[sourceKey] = newSource;
|
|
79545
81344
|
return newSources;
|
|
79546
81345
|
}, {});
|
|
79547
|
-
|
|
79548
|
-
|
|
79549
|
-
|
|
81346
|
+
var shouldProgressiveLoading = (styleOptions.progressiveLoading &&
|
|
81347
|
+
// The feature only effective at the initial load.
|
|
81348
|
+
!this.map._isLoaded());
|
|
81349
|
+
var setLayerVisibility = function (layer, visibility) {
|
|
81350
|
+
var _a;
|
|
81351
|
+
if (!shouldProgressiveLoading) {
|
|
81352
|
+
// No need to apply the visibility change to maplibre while progressive loading is enabled.
|
|
81353
|
+
// This can save a lot of CPU time.
|
|
81354
|
+
updateLayoutProperty(layer.id, 'visibility', visibility);
|
|
81355
|
+
}
|
|
81356
|
+
layer.layout = (_a = layer.layout) !== null && _a !== void 0 ? _a : {};
|
|
81357
|
+
layer.layout.visibility = visibility;
|
|
81358
|
+
};
|
|
79550
81359
|
var layerGroupLayers = {};
|
|
79551
81360
|
nextStyle.layers.forEach(function (nextLayer) {
|
|
79552
|
-
var _a
|
|
81361
|
+
var _a;
|
|
79553
81362
|
var layerGroup = LayerGroupComparator.getLayerGroup(nextLayer);
|
|
79554
81363
|
if (layerGroup) {
|
|
79555
|
-
// Set
|
|
79556
|
-
if (
|
|
79557
|
-
|
|
79558
|
-
nextLayer.layout = (_a = nextLayer.layout) !== null && _a !== void 0 ? _a : {};
|
|
79559
|
-
nextLayer.layout.visibility = "none";
|
|
79560
|
-
}
|
|
79561
|
-
else if (nextLayer.type === "fill-extrusion") {
|
|
79562
|
-
updateLayoutProperty(nextLayer.id, "visibility", "visible");
|
|
79563
|
-
nextLayer.layout = (_b = nextLayer.layout) !== null && _b !== void 0 ? _b : {};
|
|
79564
|
-
nextLayer.layout.visibility = "visible";
|
|
81364
|
+
// Set visibility of fill-extrusion layers according to StyleOptions.showBuildingModels
|
|
81365
|
+
if (nextLayer.type === 'fill-extrusion') {
|
|
81366
|
+
setLayerVisibility(nextLayer, styleOptions.showBuildingModels ? 'visible' : 'none');
|
|
79565
81367
|
}
|
|
79566
81368
|
// Set visibility of traffic layers depending on traffic settings.
|
|
79567
|
-
if (trafficOptions.flow !==
|
|
79568
|
-
|
|
79569
|
-
|
|
79570
|
-
|
|
79571
|
-
nextLayer.layout.visibility = "visible";
|
|
79572
|
-
}
|
|
81369
|
+
if (trafficOptions.flow !== 'none' &&
|
|
81370
|
+
layerGroup === "traffic_" + trafficOptions.flow &&
|
|
81371
|
+
nextLayer.type == 'line') {
|
|
81372
|
+
setLayerVisibility(nextLayer, 'visible');
|
|
79573
81373
|
}
|
|
79574
81374
|
// Set visibility of labels
|
|
79575
81375
|
var isLabelLayerGroup = layerGroup === 'labels' || layerGroup === 'labels_places' || layerGroup === 'labels_indoor';
|
|
79576
81376
|
if (isLabelLayerGroup && nextLayer.type === 'symbol') {
|
|
79577
|
-
|
|
79578
|
-
|
|
79579
|
-
nextLayer.layout = (_d = nextLayer.layout) !== null && _d !== void 0 ? _d : {};
|
|
79580
|
-
nextLayer.layout.visibility = "visible";
|
|
79581
|
-
}
|
|
79582
|
-
else {
|
|
79583
|
-
updateLayoutProperty(nextLayer.id, "visibility", "none");
|
|
79584
|
-
nextLayer.layout = (_e = nextLayer.layout) !== null && _e !== void 0 ? _e : {};
|
|
79585
|
-
nextLayer.layout.visibility = "none";
|
|
79586
|
-
}
|
|
81377
|
+
var isLayerVisible = ((_a = nextLayer.layout) === null || _a === void 0 ? void 0 : _a.visibility) !== 'none';
|
|
81378
|
+
setLayerVisibility(nextLayer, isLayerVisible && styleOptions.showLabels ? 'visible' : 'none');
|
|
79587
81379
|
}
|
|
79588
81380
|
// Once this _stylePatch returns control to maplibre the next style will be applied immediately in the same context.
|
|
79589
81381
|
// To avoid potential data races update LayerManager with new a new set of FundamentalMapLayers from here instead of
|
|
@@ -79596,13 +81388,20 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
79596
81388
|
}
|
|
79597
81389
|
}
|
|
79598
81390
|
});
|
|
79599
|
-
|
|
79600
|
-
var
|
|
79601
|
-
|
|
81391
|
+
if (shouldProgressiveLoading) {
|
|
81392
|
+
var initLayerGroups = styleOptions.progressiveLoadingInitialLayerGroups;
|
|
81393
|
+
if (Array.isArray(initLayerGroups) && initLayerGroups.length > 0) {
|
|
81394
|
+
this._deferLayerGroupVisibilities(layerGroupLayers, initLayerGroups);
|
|
81395
|
+
}
|
|
81396
|
+
}
|
|
81397
|
+
// A FundamentalMapLayer (grouped layer) representation of the next style must be built.
|
|
81398
|
+
var previousLayers = this.map.layers.getLayers();
|
|
81399
|
+
var nextLayers = Object.entries(layerGroupLayers).map(function (_a) {
|
|
81400
|
+
var _b = __read$e(_a, 2), layerGroupName = _b[0], layerGroupMapboxLayers = _b[1];
|
|
81401
|
+
return _this._buildFundamentalLayerFrom(layerGroupMapboxLayers, layerGroupName);
|
|
79602
81402
|
});
|
|
79603
81403
|
// Update FundamentalMapLayers in LayerManager
|
|
79604
81404
|
var userLayers = this.map.layers._getUserLayers();
|
|
79605
|
-
var firstUserLayer = userLayers[0];
|
|
79606
81405
|
var layersToRemove = previousLayers.filter(function (c) {
|
|
79607
81406
|
return (nextLayers.findIndex(function (n) { return c.getId() === n.getId(); }) < 0 &&
|
|
79608
81407
|
userLayers.findIndex(function (n) { return c.getId() === n.layer.getId(); }) < 0);
|
|
@@ -79624,8 +81423,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
79624
81423
|
_this.map.layers.add(newFundamentalLayer, replace.value[1]);
|
|
79625
81424
|
}
|
|
79626
81425
|
else {
|
|
79627
|
-
|
|
79628
|
-
_this.map.layers.add(newFundamentalLayer, firstUserLayer === null || firstUserLayer === void 0 ? void 0 : firstUserLayer.layer);
|
|
81426
|
+
_this.map.layers.add(newFundamentalLayer);
|
|
79629
81427
|
}
|
|
79630
81428
|
}
|
|
79631
81429
|
});
|
|
@@ -79646,6 +81444,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
79646
81444
|
before = (beforeCandidates.length > 0) ? beforeCandidates[0] : undefined;
|
|
79647
81445
|
}
|
|
79648
81446
|
preserveLayer(userLayer.layer.getId(), before === null || before === void 0 ? void 0 : before.id);
|
|
81447
|
+
_this.map.layers.move(userLayer.layer, userLayer.before);
|
|
79649
81448
|
});
|
|
79650
81449
|
this.map.sources._syncSources(nextStyle.sources);
|
|
79651
81450
|
// If there was a previous styledata change event attached, remove it.
|
|
@@ -79697,10 +81496,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
79697
81496
|
StyleManager.prototype._request = function (domain, path, resourceType, customQueryParams) {
|
|
79698
81497
|
var _a;
|
|
79699
81498
|
if (customQueryParams === void 0) { customQueryParams = {}; }
|
|
79700
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
81499
|
+
return __awaiter$3(this, void 0, void 0, function () {
|
|
79701
81500
|
var requestParams, fetchOptions;
|
|
79702
81501
|
var _b;
|
|
79703
|
-
return __generator(this, function (_c) {
|
|
81502
|
+
return __generator$3(this, function (_c) {
|
|
79704
81503
|
switch (_c.label) {
|
|
79705
81504
|
case 0:
|
|
79706
81505
|
requestParams = {
|
|
@@ -79708,7 +81507,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
79708
81507
|
protocol: "https",
|
|
79709
81508
|
domain: domain,
|
|
79710
81509
|
path: path,
|
|
79711
|
-
queryParams: __assign((_b = {}, _b[constants.apiVersionQueryParameter] = this.serviceOptions.styleAPIVersion, _b), customQueryParams)
|
|
81510
|
+
queryParams: __assign$8((_b = {}, _b[constants.apiVersionQueryParameter] = this.serviceOptions.styleAPIVersion, _b), customQueryParams)
|
|
79712
81511
|
}).toString()
|
|
79713
81512
|
};
|
|
79714
81513
|
if (typeof this.serviceOptions.transformRequest === "function" && resourceType) {
|
|
@@ -79745,11 +81544,105 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
79745
81544
|
*/
|
|
79746
81545
|
var isHMREnabled = function () { return 'ENVIRONMENT' in window && !!window['ENVIRONMENT']['hmr']; };
|
|
79747
81546
|
|
|
81547
|
+
var __extends$19 = (window && window.__extends) || (function () {
|
|
81548
|
+
var extendStatics = function (d, b) {
|
|
81549
|
+
extendStatics = Object.setPrototypeOf ||
|
|
81550
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
81551
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
81552
|
+
return extendStatics(d, b);
|
|
81553
|
+
};
|
|
81554
|
+
return function (d, b) {
|
|
81555
|
+
if (typeof b !== "function" && b !== null)
|
|
81556
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
81557
|
+
extendStatics(d, b);
|
|
81558
|
+
function __() { this.constructor = d; }
|
|
81559
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
81560
|
+
};
|
|
81561
|
+
})();
|
|
81562
|
+
var __assign$9 = (window && window.__assign) || function () {
|
|
81563
|
+
__assign$9 = Object.assign || function(t) {
|
|
81564
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
81565
|
+
s = arguments[i];
|
|
81566
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
81567
|
+
t[p] = s[p];
|
|
81568
|
+
}
|
|
81569
|
+
return t;
|
|
81570
|
+
};
|
|
81571
|
+
return __assign$9.apply(this, arguments);
|
|
81572
|
+
};
|
|
81573
|
+
var __awaiter$4 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
81574
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
81575
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
81576
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
81577
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
81578
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
81579
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
81580
|
+
});
|
|
81581
|
+
};
|
|
81582
|
+
var __generator$4 = (window && window.__generator) || function (thisArg, body) {
|
|
81583
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
81584
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
81585
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
81586
|
+
function step(op) {
|
|
81587
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
81588
|
+
while (_) try {
|
|
81589
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
81590
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
81591
|
+
switch (op[0]) {
|
|
81592
|
+
case 0: case 1: t = op; break;
|
|
81593
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
81594
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
81595
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
81596
|
+
default:
|
|
81597
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
81598
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
81599
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
81600
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
81601
|
+
if (t[2]) _.ops.pop();
|
|
81602
|
+
_.trys.pop(); continue;
|
|
81603
|
+
}
|
|
81604
|
+
op = body.call(thisArg, _);
|
|
81605
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
81606
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
81607
|
+
}
|
|
81608
|
+
};
|
|
81609
|
+
var __read$f = (window && window.__read) || function (o, n) {
|
|
81610
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
81611
|
+
if (!m) return o;
|
|
81612
|
+
var i = m.call(o), r, ar = [], e;
|
|
81613
|
+
try {
|
|
81614
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
81615
|
+
}
|
|
81616
|
+
catch (error) { e = { error: error }; }
|
|
81617
|
+
finally {
|
|
81618
|
+
try {
|
|
81619
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
81620
|
+
}
|
|
81621
|
+
finally { if (e) throw e.error; }
|
|
81622
|
+
}
|
|
81623
|
+
return ar;
|
|
81624
|
+
};
|
|
81625
|
+
var __spreadArray$9 = (window && window.__spreadArray) || function (to, from) {
|
|
81626
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
81627
|
+
to[j] = from[i];
|
|
81628
|
+
return to;
|
|
81629
|
+
};
|
|
81630
|
+
var __values$j = (window && window.__values) || function(o) {
|
|
81631
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
81632
|
+
if (m) return m.call(o);
|
|
81633
|
+
if (o && typeof o.length === "number") return {
|
|
81634
|
+
next: function () {
|
|
81635
|
+
if (o && i >= o.length) o = void 0;
|
|
81636
|
+
return { value: o && o[i++], done: !o };
|
|
81637
|
+
}
|
|
81638
|
+
};
|
|
81639
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
81640
|
+
};
|
|
79748
81641
|
/**
|
|
79749
81642
|
* The control for a visual and interactive web map.
|
|
79750
81643
|
*/
|
|
79751
81644
|
var Map$2 = /** @class */ (function (_super) {
|
|
79752
|
-
__extends(Map, _super);
|
|
81645
|
+
__extends$19(Map, _super);
|
|
79753
81646
|
/**
|
|
79754
81647
|
* Displays a map in the specified container.
|
|
79755
81648
|
* @param container The id of the element where the map should be displayed.
|
|
@@ -79889,7 +81782,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
79889
81782
|
_this.localizedStringsPromise = Localizer.getStrings(_this.styleOptions.language);
|
|
79890
81783
|
var stylesInit = _this.styles.initStyleset();
|
|
79891
81784
|
Promise.all([authManInit, stylesInit]).then(function (_a) {
|
|
79892
|
-
var _b = __read(_a, 2), _ = _b[0], definitions = _b[1];
|
|
81785
|
+
var _b = __read$f(_a, 2), _ = _b[0], definitions = _b[1];
|
|
79893
81786
|
// Check that the map hasn't been removed for any reason.
|
|
79894
81787
|
// If so no need to finish styling the map.
|
|
79895
81788
|
if (_this.removed) {
|
|
@@ -79919,7 +81812,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
79919
81812
|
_this.events.invoke("error", errorData);
|
|
79920
81813
|
});
|
|
79921
81814
|
// --> Set initial camera state of map
|
|
79922
|
-
_this.setCamera(__assign(__assign({}, options), { type: "jump", duration: 0 }));
|
|
81815
|
+
_this.setCamera(__assign$9(__assign$9({}, options), { type: "jump", duration: 0 }));
|
|
79923
81816
|
// Add delegates to map
|
|
79924
81817
|
{
|
|
79925
81818
|
_this.incidentDelegate = new IncidentServiceDelegate(_this);
|
|
@@ -80064,10 +81957,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
80064
81957
|
this.map.jumpTo(mapboxCameraOptions, eventData);
|
|
80065
81958
|
}
|
|
80066
81959
|
else if (animOptions.type === "ease") {
|
|
80067
|
-
this.map.easeTo(__assign(__assign({}, mapboxCameraOptions), mapboxAnimationOptions), eventData);
|
|
81960
|
+
this.map.easeTo(__assign$9(__assign$9({}, mapboxCameraOptions), mapboxAnimationOptions), eventData);
|
|
80068
81961
|
}
|
|
80069
81962
|
else if (animOptions.type === "fly") {
|
|
80070
|
-
this.map.flyTo(__assign(__assign({}, mapboxCameraOptions), mapboxAnimationOptions), eventData);
|
|
81963
|
+
this.map.flyTo(__assign$9(__assign$9({}, mapboxCameraOptions), mapboxAnimationOptions), eventData);
|
|
80071
81964
|
}
|
|
80072
81965
|
};
|
|
80073
81966
|
/**
|
|
@@ -80530,7 +82423,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
80530
82423
|
urls = layer.getOptions().subdomains || [];
|
|
80531
82424
|
}
|
|
80532
82425
|
// Add the tile urls to the layer, but don't update the map yet.
|
|
80533
|
-
urls.push.apply(urls,
|
|
82426
|
+
urls.push.apply(urls, __spreadArray$9([], __read$f(tileSources)));
|
|
80534
82427
|
layer._setOptionsNoUpdate({
|
|
80535
82428
|
subdomains: urls
|
|
80536
82429
|
});
|
|
@@ -80552,7 +82445,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
80552
82445
|
Map.prototype.removeLayers = function (layerNames) {
|
|
80553
82446
|
var e_1, _a;
|
|
80554
82447
|
try {
|
|
80555
|
-
for (var layerNames_1 = __values(layerNames), layerNames_1_1 = layerNames_1.next(); !layerNames_1_1.done; layerNames_1_1 = layerNames_1.next()) {
|
|
82448
|
+
for (var layerNames_1 = __values$j(layerNames), layerNames_1_1 = layerNames_1.next(); !layerNames_1_1.done; layerNames_1_1 = layerNames_1.next()) {
|
|
80556
82449
|
var layerName = layerNames_1_1.value;
|
|
80557
82450
|
// Previously calling removeLayers for layers that didn't exist in the map just did nothing.
|
|
80558
82451
|
// Now, LayerManager will throw an error, so we need to check if the layer exists before calling remove.
|
|
@@ -80742,7 +82635,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
80742
82635
|
var e_2, _a;
|
|
80743
82636
|
var positions = [];
|
|
80744
82637
|
try {
|
|
80745
|
-
for (var pixels_1 = __values(pixels), pixels_1_1 = pixels_1.next(); !pixels_1_1.done; pixels_1_1 = pixels_1.next()) {
|
|
82638
|
+
for (var pixels_1 = __values$j(pixels), pixels_1_1 = pixels_1.next(); !pixels_1_1.done; pixels_1_1 = pixels_1.next()) {
|
|
80746
82639
|
var pixel = pixels_1_1.value;
|
|
80747
82640
|
var lngLat = this.map.unproject(pixel);
|
|
80748
82641
|
positions.push(new Position(lngLat.lng, lngLat.lat));
|
|
@@ -80765,7 +82658,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
80765
82658
|
var e_3, _a;
|
|
80766
82659
|
var pixels = [];
|
|
80767
82660
|
try {
|
|
80768
|
-
for (var positions_1 = __values(positions), positions_1_1 = positions_1.next(); !positions_1_1.done; positions_1_1 = positions_1.next()) {
|
|
82661
|
+
for (var positions_1 = __values$j(positions), positions_1_1 = positions_1.next(); !positions_1_1.done; positions_1_1 = positions_1.next()) {
|
|
80769
82662
|
var position = positions_1_1.value;
|
|
80770
82663
|
var point = this.map.project(position);
|
|
80771
82664
|
pixels.push(new Pixel(point.x, point.y));
|
|
@@ -80813,8 +82706,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
80813
82706
|
*/
|
|
80814
82707
|
Map.prototype._rebuildStyle = function (diff) {
|
|
80815
82708
|
if (diff === void 0) { diff = true; }
|
|
80816
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
80817
|
-
return __generator(this, function (_a) {
|
|
82709
|
+
return __awaiter$4(this, void 0, void 0, function () {
|
|
82710
|
+
return __generator$4(this, function (_a) {
|
|
80818
82711
|
this.styles.setStyle(this.styleOptions, diff);
|
|
80819
82712
|
this.imageSprite._restoreImages();
|
|
80820
82713
|
return [2 /*return*/];
|
|
@@ -80859,7 +82752,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
80859
82752
|
// Send the fetch using the transformed parameters.
|
|
80860
82753
|
return fetch(requestParams.url || url, {
|
|
80861
82754
|
credentials: requestParams.credentials,
|
|
80862
|
-
headers: __assign(__assign({}, headers), requestParams.headers),
|
|
82755
|
+
headers: __assign$9(__assign$9({}, headers), requestParams.headers),
|
|
80863
82756
|
method: "GET",
|
|
80864
82757
|
mode: "cors",
|
|
80865
82758
|
});
|
|
@@ -81030,6 +82923,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
81030
82923
|
return Map;
|
|
81031
82924
|
}(EventEmitter));
|
|
81032
82925
|
|
|
82926
|
+
var __read$g = (window && window.__read) || function (o, n) {
|
|
82927
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
82928
|
+
if (!m) return o;
|
|
82929
|
+
var i = m.call(o), r, ar = [], e;
|
|
82930
|
+
try {
|
|
82931
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
82932
|
+
}
|
|
82933
|
+
catch (error) { e = { error: error }; }
|
|
82934
|
+
finally {
|
|
82935
|
+
try {
|
|
82936
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
82937
|
+
}
|
|
82938
|
+
finally { if (e) throw e.error; }
|
|
82939
|
+
}
|
|
82940
|
+
return ar;
|
|
82941
|
+
};
|
|
82942
|
+
var __spreadArray$a = (window && window.__spreadArray) || function (to, from) {
|
|
82943
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
82944
|
+
to[j] = from[i];
|
|
82945
|
+
return to;
|
|
82946
|
+
};
|
|
81033
82947
|
/** A layout template for a popup. */
|
|
81034
82948
|
var PopupTemplate = /** @class */ (function () {
|
|
81035
82949
|
function PopupTemplate() {
|
|
@@ -81171,7 +83085,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
81171
83085
|
lineLength = 50;
|
|
81172
83086
|
}
|
|
81173
83087
|
var lines = c.split(/<(tr|div|br|li|h[0-9]|p>)/);
|
|
81174
|
-
longestStringLength = Math.max.apply(Math,
|
|
83088
|
+
longestStringLength = Math.max.apply(Math, __spreadArray$a([], __read$g((lines.map(function (el) { return el.replace(/<[a-zA-Z0-9\s=\/]+>/g, "").length; }))))) - 1;
|
|
81175
83089
|
var w = Math.ceil(longestStringLength * 3.5);
|
|
81176
83090
|
if (w < width) {
|
|
81177
83091
|
width = w;
|