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-core-bare.js
CHANGED
|
@@ -61,12 +61,12 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
61
61
|
var mapboxgl__default = 'default' in mapboxgl ? mapboxgl['default'] : mapboxgl;
|
|
62
62
|
|
|
63
63
|
var env = {
|
|
64
|
-
domain: "
|
|
65
|
-
staticAssetsDomain: "
|
|
64
|
+
domain: "t-azmaps.azurelbs.com",
|
|
65
|
+
staticAssetsDomain: "t-azmaps.azurelbs.com",
|
|
66
66
|
stylePath: "styling",
|
|
67
67
|
styleDefinitionsVersion: "2022-08-05",
|
|
68
|
-
appInsightsKey: "
|
|
69
|
-
aadInstance: "https://login.
|
|
68
|
+
appInsightsKey: "",
|
|
69
|
+
aadInstance: "https://login.windows-ppe.net/"
|
|
70
70
|
};
|
|
71
71
|
var constants = {
|
|
72
72
|
apiVersionQueryParameter: "api-version",
|
|
@@ -91,126 +91,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
91
91
|
sessionIdHeaderName: "Session-Id"
|
|
92
92
|
};
|
|
93
93
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
106
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
107
|
-
***************************************************************************** */
|
|
108
|
-
/* global Reflect, Promise */
|
|
109
|
-
|
|
110
|
-
var extendStatics = function(d, b) {
|
|
111
|
-
extendStatics = Object.setPrototypeOf ||
|
|
112
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
113
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
114
|
-
return extendStatics(d, b);
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
function __extends(d, b) {
|
|
118
|
-
extendStatics(d, b);
|
|
119
|
-
function __() { this.constructor = d; }
|
|
120
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
var __assign = function() {
|
|
124
|
-
__assign = Object.assign || function __assign(t) {
|
|
125
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
126
|
-
s = arguments[i];
|
|
127
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
128
|
-
}
|
|
129
|
-
return t;
|
|
130
|
-
};
|
|
131
|
-
return __assign.apply(this, arguments);
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
function __decorate(decorators, target, key, desc) {
|
|
135
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
136
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
137
|
-
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;
|
|
138
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
142
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
143
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
144
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
145
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
146
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
147
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
function __generator(thisArg, body) {
|
|
152
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
153
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
154
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
155
|
-
function step(op) {
|
|
156
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
157
|
-
while (_) try {
|
|
158
|
-
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;
|
|
159
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
160
|
-
switch (op[0]) {
|
|
161
|
-
case 0: case 1: t = op; break;
|
|
162
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
163
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
164
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
165
|
-
default:
|
|
166
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
167
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
168
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
169
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
170
|
-
if (t[2]) _.ops.pop();
|
|
171
|
-
_.trys.pop(); continue;
|
|
172
|
-
}
|
|
173
|
-
op = body.call(thisArg, _);
|
|
174
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
175
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
function __values(o) {
|
|
180
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
181
|
-
if (m) return m.call(o);
|
|
182
|
-
if (o && typeof o.length === "number") return {
|
|
183
|
-
next: function () {
|
|
184
|
-
if (o && i >= o.length) o = void 0;
|
|
185
|
-
return { value: o && o[i++], done: !o };
|
|
186
|
-
}
|
|
187
|
-
};
|
|
188
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
function __read(o, n) {
|
|
192
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
193
|
-
if (!m) return o;
|
|
194
|
-
var i = m.call(o), r, ar = [], e;
|
|
195
|
-
try {
|
|
196
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
197
|
-
}
|
|
198
|
-
catch (error) { e = { error: error }; }
|
|
199
|
-
finally {
|
|
200
|
-
try {
|
|
201
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
202
|
-
}
|
|
203
|
-
finally { if (e) throw e.error; }
|
|
204
|
-
}
|
|
205
|
-
return ar;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
function __spread() {
|
|
209
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
210
|
-
ar = ar.concat(__read(arguments[i]));
|
|
211
|
-
return ar;
|
|
212
|
-
}
|
|
213
|
-
|
|
94
|
+
var __values = (window && window.__values) || function(o) {
|
|
95
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
96
|
+
if (m) return m.call(o);
|
|
97
|
+
if (o && typeof o.length === "number") return {
|
|
98
|
+
next: function () {
|
|
99
|
+
if (o && i >= o.length) o = void 0;
|
|
100
|
+
return { value: o && o[i++], done: !o };
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
104
|
+
};
|
|
214
105
|
/**
|
|
215
106
|
* @private
|
|
216
107
|
*/
|
|
@@ -268,6 +159,37 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
268
159
|
return Options;
|
|
269
160
|
}());
|
|
270
161
|
|
|
162
|
+
var __extends = (window && window.__extends) || (function () {
|
|
163
|
+
var extendStatics = function (d, b) {
|
|
164
|
+
extendStatics = Object.setPrototypeOf ||
|
|
165
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
166
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
167
|
+
return extendStatics(d, b);
|
|
168
|
+
};
|
|
169
|
+
return function (d, b) {
|
|
170
|
+
if (typeof b !== "function" && b !== null)
|
|
171
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
172
|
+
extendStatics(d, b);
|
|
173
|
+
function __() { this.constructor = d; }
|
|
174
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
175
|
+
};
|
|
176
|
+
})();
|
|
177
|
+
var __read = (window && window.__read) || function (o, n) {
|
|
178
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
179
|
+
if (!m) return o;
|
|
180
|
+
var i = m.call(o), r, ar = [], e;
|
|
181
|
+
try {
|
|
182
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
183
|
+
}
|
|
184
|
+
catch (error) { e = { error: error }; }
|
|
185
|
+
finally {
|
|
186
|
+
try {
|
|
187
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
188
|
+
}
|
|
189
|
+
finally { if (e) throw e.error; }
|
|
190
|
+
}
|
|
191
|
+
return ar;
|
|
192
|
+
};
|
|
271
193
|
/**
|
|
272
194
|
* @private
|
|
273
195
|
*/
|
|
@@ -343,7 +265,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
343
265
|
return Url;
|
|
344
266
|
}());
|
|
345
267
|
|
|
346
|
-
var version = "2.2.
|
|
268
|
+
var version = "2.2.1";
|
|
347
269
|
|
|
348
270
|
/**
|
|
349
271
|
* A helper class that provides methods for getting various forms of the map controls current version.
|
|
@@ -465,6 +387,21 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
465
387
|
eventTarget.addEventListener("focusin", positionTooltip);
|
|
466
388
|
};
|
|
467
389
|
|
|
390
|
+
var __extends$1 = (window && window.__extends) || (function () {
|
|
391
|
+
var extendStatics = function (d, b) {
|
|
392
|
+
extendStatics = Object.setPrototypeOf ||
|
|
393
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
394
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
395
|
+
return extendStatics(d, b);
|
|
396
|
+
};
|
|
397
|
+
return function (d, b) {
|
|
398
|
+
if (typeof b !== "function" && b !== null)
|
|
399
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
400
|
+
extendStatics(d, b);
|
|
401
|
+
function __() { this.constructor = d; }
|
|
402
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
403
|
+
};
|
|
404
|
+
})();
|
|
468
405
|
(function (ControlPosition) {
|
|
469
406
|
/**
|
|
470
407
|
* Places the control in the top left of the map.
|
|
@@ -496,7 +433,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
496
433
|
* The options for adding a control to the map.
|
|
497
434
|
*/
|
|
498
435
|
var ControlOptions = /** @class */ (function (_super) {
|
|
499
|
-
__extends(ControlOptions, _super);
|
|
436
|
+
__extends$1(ControlOptions, _super);
|
|
500
437
|
function ControlOptions() {
|
|
501
438
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
502
439
|
/**
|
|
@@ -641,12 +578,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
641
578
|
EventEmitter: EventEmitter
|
|
642
579
|
});
|
|
643
580
|
|
|
581
|
+
var __extends$2 = (window && window.__extends) || (function () {
|
|
582
|
+
var extendStatics = function (d, b) {
|
|
583
|
+
extendStatics = Object.setPrototypeOf ||
|
|
584
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
585
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
586
|
+
return extendStatics(d, b);
|
|
587
|
+
};
|
|
588
|
+
return function (d, b) {
|
|
589
|
+
if (typeof b !== "function" && b !== null)
|
|
590
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
591
|
+
extendStatics(d, b);
|
|
592
|
+
function __() { this.constructor = d; }
|
|
593
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
594
|
+
};
|
|
595
|
+
})();
|
|
644
596
|
/**
|
|
645
597
|
* For internal use only.
|
|
646
598
|
* Implements control interface and provides support for automatic styling based on the map style.
|
|
647
599
|
*/
|
|
648
600
|
var ControlBase = /** @class */ (function (_super) {
|
|
649
|
-
__extends(ControlBase, _super);
|
|
601
|
+
__extends$2(ControlBase, _super);
|
|
650
602
|
function ControlBase() {
|
|
651
603
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
652
604
|
/**
|
|
@@ -751,11 +703,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
751
703
|
return ControlBase;
|
|
752
704
|
}(EventEmitter));
|
|
753
705
|
|
|
706
|
+
var __extends$3 = (window && window.__extends) || (function () {
|
|
707
|
+
var extendStatics = function (d, b) {
|
|
708
|
+
extendStatics = Object.setPrototypeOf ||
|
|
709
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
710
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
711
|
+
return extendStatics(d, b);
|
|
712
|
+
};
|
|
713
|
+
return function (d, b) {
|
|
714
|
+
if (typeof b !== "function" && b !== null)
|
|
715
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
716
|
+
extendStatics(d, b);
|
|
717
|
+
function __() { this.constructor = d; }
|
|
718
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
719
|
+
};
|
|
720
|
+
})();
|
|
754
721
|
/**
|
|
755
722
|
* The options for a CompassControl object.
|
|
756
723
|
*/
|
|
757
724
|
var CompassControlOptions = /** @class */ (function (_super) {
|
|
758
|
-
__extends(CompassControlOptions, _super);
|
|
725
|
+
__extends$3(CompassControlOptions, _super);
|
|
759
726
|
function CompassControlOptions() {
|
|
760
727
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
761
728
|
/**
|
|
@@ -780,11 +747,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
780
747
|
return CompassControlOptions;
|
|
781
748
|
}(Options));
|
|
782
749
|
|
|
750
|
+
var __extends$4 = (window && window.__extends) || (function () {
|
|
751
|
+
var extendStatics = function (d, b) {
|
|
752
|
+
extendStatics = Object.setPrototypeOf ||
|
|
753
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
754
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
755
|
+
return extendStatics(d, b);
|
|
756
|
+
};
|
|
757
|
+
return function (d, b) {
|
|
758
|
+
if (typeof b !== "function" && b !== null)
|
|
759
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
760
|
+
extendStatics(d, b);
|
|
761
|
+
function __() { this.constructor = d; }
|
|
762
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
763
|
+
};
|
|
764
|
+
})();
|
|
783
765
|
/**
|
|
784
766
|
* A control for changing the rotation of the map.
|
|
785
767
|
*/
|
|
786
768
|
var CompassControl = /** @class */ (function (_super) {
|
|
787
|
-
__extends(CompassControl, _super);
|
|
769
|
+
__extends$4(CompassControl, _super);
|
|
788
770
|
/**
|
|
789
771
|
* Constructs a CompassControl.
|
|
790
772
|
* @param options The options for the control.
|
|
@@ -952,11 +934,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
952
934
|
return CompassControl;
|
|
953
935
|
}(ControlBase));
|
|
954
936
|
|
|
937
|
+
var __extends$5 = (window && window.__extends) || (function () {
|
|
938
|
+
var extendStatics = function (d, b) {
|
|
939
|
+
extendStatics = Object.setPrototypeOf ||
|
|
940
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
941
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
942
|
+
return extendStatics(d, b);
|
|
943
|
+
};
|
|
944
|
+
return function (d, b) {
|
|
945
|
+
if (typeof b !== "function" && b !== null)
|
|
946
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
947
|
+
extendStatics(d, b);
|
|
948
|
+
function __() { this.constructor = d; }
|
|
949
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
950
|
+
};
|
|
951
|
+
})();
|
|
955
952
|
/**
|
|
956
953
|
* The options for a PitchControl object.
|
|
957
954
|
*/
|
|
958
955
|
var PitchControlOptions = /** @class */ (function (_super) {
|
|
959
|
-
__extends(PitchControlOptions, _super);
|
|
956
|
+
__extends$5(PitchControlOptions, _super);
|
|
960
957
|
function PitchControlOptions() {
|
|
961
958
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
962
959
|
/**
|
|
@@ -981,11 +978,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
981
978
|
return PitchControlOptions;
|
|
982
979
|
}(Options));
|
|
983
980
|
|
|
981
|
+
var __extends$6 = (window && window.__extends) || (function () {
|
|
982
|
+
var extendStatics = function (d, b) {
|
|
983
|
+
extendStatics = Object.setPrototypeOf ||
|
|
984
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
985
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
986
|
+
return extendStatics(d, b);
|
|
987
|
+
};
|
|
988
|
+
return function (d, b) {
|
|
989
|
+
if (typeof b !== "function" && b !== null)
|
|
990
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
991
|
+
extendStatics(d, b);
|
|
992
|
+
function __() { this.constructor = d; }
|
|
993
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
994
|
+
};
|
|
995
|
+
})();
|
|
984
996
|
/**
|
|
985
997
|
* A control for changing the pitch of the map.
|
|
986
998
|
*/
|
|
987
999
|
var PitchControl = /** @class */ (function (_super) {
|
|
988
|
-
__extends(PitchControl, _super);
|
|
1000
|
+
__extends$6(PitchControl, _super);
|
|
989
1001
|
/**
|
|
990
1002
|
* Constructs a PitchControl.
|
|
991
1003
|
* @param options The options for the control.
|
|
@@ -4298,11 +4310,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
4298
4310
|
|
|
4299
4311
|
var merge_1 = merge;
|
|
4300
4312
|
|
|
4313
|
+
var __extends$7 = (window && window.__extends) || (function () {
|
|
4314
|
+
var extendStatics = function (d, b) {
|
|
4315
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4316
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
4317
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
4318
|
+
return extendStatics(d, b);
|
|
4319
|
+
};
|
|
4320
|
+
return function (d, b) {
|
|
4321
|
+
if (typeof b !== "function" && b !== null)
|
|
4322
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
4323
|
+
extendStatics(d, b);
|
|
4324
|
+
function __() { this.constructor = d; }
|
|
4325
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
4326
|
+
};
|
|
4327
|
+
})();
|
|
4301
4328
|
/**
|
|
4302
4329
|
* The options for a StyleControl object.
|
|
4303
4330
|
*/
|
|
4304
4331
|
var StyleControlOptions = /** @class */ (function (_super) {
|
|
4305
|
-
__extends(StyleControlOptions, _super);
|
|
4332
|
+
__extends$7(StyleControlOptions, _super);
|
|
4306
4333
|
function StyleControlOptions() {
|
|
4307
4334
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
4308
4335
|
/**
|
|
@@ -4347,11 +4374,78 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
4347
4374
|
return StyleControlOptions;
|
|
4348
4375
|
}(Options));
|
|
4349
4376
|
|
|
4377
|
+
var __extends$8 = (window && window.__extends) || (function () {
|
|
4378
|
+
var extendStatics = function (d, b) {
|
|
4379
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4380
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
4381
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
4382
|
+
return extendStatics(d, b);
|
|
4383
|
+
};
|
|
4384
|
+
return function (d, b) {
|
|
4385
|
+
if (typeof b !== "function" && b !== null)
|
|
4386
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
4387
|
+
extendStatics(d, b);
|
|
4388
|
+
function __() { this.constructor = d; }
|
|
4389
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
4390
|
+
};
|
|
4391
|
+
})();
|
|
4392
|
+
var __awaiter = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
4393
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4394
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4395
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
4396
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
4397
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
4398
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
4399
|
+
});
|
|
4400
|
+
};
|
|
4401
|
+
var __generator = (window && window.__generator) || function (thisArg, body) {
|
|
4402
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
4403
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
4404
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
4405
|
+
function step(op) {
|
|
4406
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
4407
|
+
while (_) try {
|
|
4408
|
+
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;
|
|
4409
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
4410
|
+
switch (op[0]) {
|
|
4411
|
+
case 0: case 1: t = op; break;
|
|
4412
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
4413
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
4414
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
4415
|
+
default:
|
|
4416
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
4417
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
4418
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
4419
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
4420
|
+
if (t[2]) _.ops.pop();
|
|
4421
|
+
_.trys.pop(); continue;
|
|
4422
|
+
}
|
|
4423
|
+
op = body.call(thisArg, _);
|
|
4424
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
4425
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
4426
|
+
}
|
|
4427
|
+
};
|
|
4428
|
+
var __read$1 = (window && window.__read) || function (o, n) {
|
|
4429
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
4430
|
+
if (!m) return o;
|
|
4431
|
+
var i = m.call(o), r, ar = [], e;
|
|
4432
|
+
try {
|
|
4433
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
4434
|
+
}
|
|
4435
|
+
catch (error) { e = { error: error }; }
|
|
4436
|
+
finally {
|
|
4437
|
+
try {
|
|
4438
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
4439
|
+
}
|
|
4440
|
+
finally { if (e) throw e.error; }
|
|
4441
|
+
}
|
|
4442
|
+
return ar;
|
|
4443
|
+
};
|
|
4350
4444
|
/**
|
|
4351
4445
|
* A control for changing the style of the map.
|
|
4352
4446
|
*/
|
|
4353
4447
|
var StyleControl = /** @class */ (function (_super) {
|
|
4354
|
-
__extends(StyleControl, _super);
|
|
4448
|
+
__extends$8(StyleControl, _super);
|
|
4355
4449
|
/**
|
|
4356
4450
|
* Constructs a StyleControl.
|
|
4357
4451
|
* @param options The options for the control.
|
|
@@ -4493,7 +4587,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
4493
4587
|
image_1.src = newSrc;
|
|
4494
4588
|
}
|
|
4495
4589
|
Object.entries(this.styleButtons).forEach(function (_a) {
|
|
4496
|
-
var _b = __read(_a, 2), buttonStyleName = _b[0], button = _b[1];
|
|
4590
|
+
var _b = __read$1(_a, 2), buttonStyleName = _b[0], button = _b[1];
|
|
4497
4591
|
return button.setAttribute('aria-current', buttonStyleName === styleName ? 'true' : 'false');
|
|
4498
4592
|
});
|
|
4499
4593
|
this.map.styles.definitions().then(function (mapConfiguration) {
|
|
@@ -4571,7 +4665,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
4571
4665
|
_this.map.setStyle({ style: name });
|
|
4572
4666
|
}
|
|
4573
4667
|
Object.entries(_this.styleButtons).forEach(function (_a) {
|
|
4574
|
-
var _b = __read(_a, 2), styleName = _b[0], button = _b[1];
|
|
4668
|
+
var _b = __read$1(_a, 2), styleName = _b[0], button = _b[1];
|
|
4575
4669
|
return button.setAttribute('aria-current', styleName === name ? 'true' : 'false');
|
|
4576
4670
|
});
|
|
4577
4671
|
}
|
|
@@ -4656,7 +4750,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
4656
4750
|
});
|
|
4657
4751
|
var targetStyleName = this.map.getStyle().style;
|
|
4658
4752
|
Object.entries(this.styleButtons).forEach(function (_a) {
|
|
4659
|
-
var _b = __read(_a, 2), styleName = _b[0], button = _b[1];
|
|
4753
|
+
var _b = __read$1(_a, 2), styleName = _b[0], button = _b[1];
|
|
4660
4754
|
return button.setAttribute('aria-current', styleName === targetStyleName ? 'true' : 'false');
|
|
4661
4755
|
});
|
|
4662
4756
|
};
|
|
@@ -4673,11 +4767,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
4673
4767
|
return StyleControl;
|
|
4674
4768
|
}(ControlBase));
|
|
4675
4769
|
|
|
4770
|
+
var __extends$9 = (window && window.__extends) || (function () {
|
|
4771
|
+
var extendStatics = function (d, b) {
|
|
4772
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4773
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
4774
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
4775
|
+
return extendStatics(d, b);
|
|
4776
|
+
};
|
|
4777
|
+
return function (d, b) {
|
|
4778
|
+
if (typeof b !== "function" && b !== null)
|
|
4779
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
4780
|
+
extendStatics(d, b);
|
|
4781
|
+
function __() { this.constructor = d; }
|
|
4782
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
4783
|
+
};
|
|
4784
|
+
})();
|
|
4676
4785
|
/**
|
|
4677
4786
|
* The options for setting traffic on the map.
|
|
4678
4787
|
*/
|
|
4679
4788
|
var TrafficOptions = /** @class */ (function (_super) {
|
|
4680
|
-
__extends(TrafficOptions, _super);
|
|
4789
|
+
__extends$9(TrafficOptions, _super);
|
|
4681
4790
|
function TrafficOptions() {
|
|
4682
4791
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
4683
4792
|
/**
|
|
@@ -4702,11 +4811,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
4702
4811
|
return TrafficOptions;
|
|
4703
4812
|
}(Options));
|
|
4704
4813
|
|
|
4814
|
+
var __extends$a = (window && window.__extends) || (function () {
|
|
4815
|
+
var extendStatics = function (d, b) {
|
|
4816
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4817
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
4818
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
4819
|
+
return extendStatics(d, b);
|
|
4820
|
+
};
|
|
4821
|
+
return function (d, b) {
|
|
4822
|
+
if (typeof b !== "function" && b !== null)
|
|
4823
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
4824
|
+
extendStatics(d, b);
|
|
4825
|
+
function __() { this.constructor = d; }
|
|
4826
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
4827
|
+
};
|
|
4828
|
+
})();
|
|
4705
4829
|
/**
|
|
4706
4830
|
* The options for a TrafficControl object.
|
|
4707
4831
|
*/
|
|
4708
4832
|
var TrafficControlOptions = /** @class */ (function (_super) {
|
|
4709
|
-
__extends(TrafficControlOptions, _super);
|
|
4833
|
+
__extends$a(TrafficControlOptions, _super);
|
|
4710
4834
|
function TrafficControlOptions() {
|
|
4711
4835
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
4712
4836
|
/**
|
|
@@ -4726,16 +4850,32 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
4726
4850
|
return TrafficControlOptions;
|
|
4727
4851
|
}(TrafficOptions));
|
|
4728
4852
|
|
|
4853
|
+
var __extends$b = (window && window.__extends) || (function () {
|
|
4854
|
+
var extendStatics = function (d, b) {
|
|
4855
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4856
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
4857
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
4858
|
+
return extendStatics(d, b);
|
|
4859
|
+
};
|
|
4860
|
+
return function (d, b) {
|
|
4861
|
+
if (typeof b !== "function" && b !== null)
|
|
4862
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
4863
|
+
extendStatics(d, b);
|
|
4864
|
+
function __() { this.constructor = d; }
|
|
4865
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
4866
|
+
};
|
|
4867
|
+
})();
|
|
4729
4868
|
/**
|
|
4730
4869
|
* A control that toggles traffic data on the map.
|
|
4731
4870
|
*/
|
|
4732
4871
|
var TrafficControl = /** @class */ (function (_super) {
|
|
4733
|
-
__extends(TrafficControl, _super);
|
|
4872
|
+
__extends$b(TrafficControl, _super);
|
|
4734
4873
|
/**
|
|
4735
4874
|
* Constructs a TrafficControl
|
|
4736
4875
|
* @param options The options for the control.
|
|
4737
4876
|
*/
|
|
4738
4877
|
function TrafficControl(options) {
|
|
4878
|
+
var _a, _b;
|
|
4739
4879
|
var _this = _super.call(this) || this;
|
|
4740
4880
|
_this.hasMouse = false;
|
|
4741
4881
|
_this.hasFocus = false;
|
|
@@ -4749,9 +4889,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
4749
4889
|
_this.trafficButton = null;
|
|
4750
4890
|
_this.map = null;
|
|
4751
4891
|
if (options) {
|
|
4752
|
-
_this.initIsActive = options.isActive
|
|
4892
|
+
_this.initIsActive = (_a = options.isActive) !== null && _a !== void 0 ? _a : false;
|
|
4753
4893
|
_this.options.flow = options.flow || 'relative';
|
|
4754
|
-
_this.options.incidents = options.incidents
|
|
4894
|
+
_this.options.incidents = (_b = options.incidents) !== null && _b !== void 0 ? _b : true;
|
|
4755
4895
|
_this.style = options.style || exports.ControlStyle.light;
|
|
4756
4896
|
}
|
|
4757
4897
|
return _this;
|
|
@@ -4853,11 +4993,37 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
4853
4993
|
return TrafficControl;
|
|
4854
4994
|
}(ControlBase));
|
|
4855
4995
|
|
|
4996
|
+
var __extends$c = (window && window.__extends) || (function () {
|
|
4997
|
+
var extendStatics = function (d, b) {
|
|
4998
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4999
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5000
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
5001
|
+
return extendStatics(d, b);
|
|
5002
|
+
};
|
|
5003
|
+
return function (d, b) {
|
|
5004
|
+
if (typeof b !== "function" && b !== null)
|
|
5005
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
5006
|
+
extendStatics(d, b);
|
|
5007
|
+
function __() { this.constructor = d; }
|
|
5008
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
5009
|
+
};
|
|
5010
|
+
})();
|
|
5011
|
+
var __values$1 = (window && window.__values) || function(o) {
|
|
5012
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
5013
|
+
if (m) return m.call(o);
|
|
5014
|
+
if (o && typeof o.length === "number") return {
|
|
5015
|
+
next: function () {
|
|
5016
|
+
if (o && i >= o.length) o = void 0;
|
|
5017
|
+
return { value: o && o[i++], done: !o };
|
|
5018
|
+
}
|
|
5019
|
+
};
|
|
5020
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
5021
|
+
};
|
|
4856
5022
|
/**
|
|
4857
5023
|
* A control that display traffic legend on the map.
|
|
4858
5024
|
*/
|
|
4859
5025
|
var TrafficLegendControl = /** @class */ (function (_super) {
|
|
4860
|
-
__extends(TrafficLegendControl, _super);
|
|
5026
|
+
__extends$c(TrafficLegendControl, _super);
|
|
4861
5027
|
/**
|
|
4862
5028
|
* Construct a traffic legend control
|
|
4863
5029
|
*/
|
|
@@ -4913,7 +5079,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
4913
5079
|
// legend table contents
|
|
4914
5080
|
var tr2 = document.createElement("tr");
|
|
4915
5081
|
try {
|
|
4916
|
-
for (var _c = __values(this.table), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
5082
|
+
for (var _c = __values$1(this.table), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
4917
5083
|
var col = _d.value;
|
|
4918
5084
|
var data = document.createElement("td");
|
|
4919
5085
|
if (col === "Fast" || col === "Slow") {
|
|
@@ -4926,7 +5092,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
4926
5092
|
data.setAttribute("aria-label", "Traffic Legend");
|
|
4927
5093
|
data.setAttribute("role", "img");
|
|
4928
5094
|
try {
|
|
4929
|
-
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()) {
|
|
5095
|
+
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()) {
|
|
4930
5096
|
var color = col_1_1.value;
|
|
4931
5097
|
var div = document.createElement("div");
|
|
4932
5098
|
div.classList.add(color);
|
|
@@ -5677,11 +5843,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
5677
5843
|
return Feature;
|
|
5678
5844
|
}());
|
|
5679
5845
|
|
|
5846
|
+
var __extends$d = (window && window.__extends) || (function () {
|
|
5847
|
+
var extendStatics = function (d, b) {
|
|
5848
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5849
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5850
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
5851
|
+
return extendStatics(d, b);
|
|
5852
|
+
};
|
|
5853
|
+
return function (d, b) {
|
|
5854
|
+
if (typeof b !== "function" && b !== null)
|
|
5855
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
5856
|
+
extendStatics(d, b);
|
|
5857
|
+
function __() { this.constructor = d; }
|
|
5858
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
5859
|
+
};
|
|
5860
|
+
})();
|
|
5680
5861
|
/**
|
|
5681
5862
|
* Represent a pixel coordinate or offset. Extends an array of [x, y].
|
|
5682
5863
|
*/
|
|
5683
5864
|
var Pixel = /** @class */ (function (_super) {
|
|
5684
|
-
__extends(Pixel, _super);
|
|
5865
|
+
__extends$d(Pixel, _super);
|
|
5685
5866
|
/**
|
|
5686
5867
|
* Constructs a Pixel object and initializes it with the specified x and y coordinates.
|
|
5687
5868
|
* @param x The horizontal pixel offset.
|
|
@@ -5797,6 +5978,33 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
5797
5978
|
return Point;
|
|
5798
5979
|
}());
|
|
5799
5980
|
|
|
5981
|
+
var __read$2 = (window && window.__read) || function (o, n) {
|
|
5982
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
5983
|
+
if (!m) return o;
|
|
5984
|
+
var i = m.call(o), r, ar = [], e;
|
|
5985
|
+
try {
|
|
5986
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
5987
|
+
}
|
|
5988
|
+
catch (error) { e = { error: error }; }
|
|
5989
|
+
finally {
|
|
5990
|
+
try {
|
|
5991
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
5992
|
+
}
|
|
5993
|
+
finally { if (e) throw e.error; }
|
|
5994
|
+
}
|
|
5995
|
+
return ar;
|
|
5996
|
+
};
|
|
5997
|
+
var __values$2 = (window && window.__values) || function(o) {
|
|
5998
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
5999
|
+
if (m) return m.call(o);
|
|
6000
|
+
if (o && typeof o.length === "number") return {
|
|
6001
|
+
next: function () {
|
|
6002
|
+
if (o && i >= o.length) o = void 0;
|
|
6003
|
+
return { value: o && o[i++], done: !o };
|
|
6004
|
+
}
|
|
6005
|
+
};
|
|
6006
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
6007
|
+
};
|
|
5800
6008
|
//////////////////////
|
|
5801
6009
|
/// Constants
|
|
5802
6010
|
//////////////////////
|
|
@@ -6761,8 +6969,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
6761
6969
|
if (k + 1 >= coords.length) {
|
|
6762
6970
|
continue;
|
|
6763
6971
|
}
|
|
6764
|
-
var _a = __read(coords[k], 2), lon1 = _a[0], lat1 = _a[1];
|
|
6765
|
-
var _b = __read(coords[k + 1], 2), lon2 = _b[0], lat2 = _b[1];
|
|
6972
|
+
var _a = __read$2(coords[k], 2), lon1 = _a[0], lat1 = _a[1];
|
|
6973
|
+
var _b = __read$2(coords[k + 1], 2), lon2 = _b[0], lat2 = _b[1];
|
|
6766
6974
|
// split the line by antimeridian
|
|
6767
6975
|
// and break geodesic into two line segments
|
|
6768
6976
|
if (Math.abs(lon2 - lon1) > 180.0) {
|
|
@@ -6833,8 +7041,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
6833
7041
|
if (k + 1 >= geodesic.length) {
|
|
6834
7042
|
continue;
|
|
6835
7043
|
}
|
|
6836
|
-
var _a = __read(geodesic[k], 2), lon1 = _a[0], lat1 = _a[1];
|
|
6837
|
-
var _b = __read(geodesic[k + 1], 2), lon2 = _b[0], lat2 = _b[1];
|
|
7044
|
+
var _a = __read$2(geodesic[k], 2), lon1 = _a[0], lat1 = _a[1];
|
|
7045
|
+
var _b = __read$2(geodesic[k + 1], 2), lon2 = _b[0], lat2 = _b[1];
|
|
6838
7046
|
// split the line by antimeridian
|
|
6839
7047
|
// and break geodesic into two line segments
|
|
6840
7048
|
if (Math.abs(lon2 - lon1) > 180.0) {
|
|
@@ -7045,7 +7253,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
7045
7253
|
function getPixelHeading(origin, destination) {
|
|
7046
7254
|
origin = getPosition(origin);
|
|
7047
7255
|
destination = getPosition(destination);
|
|
7048
|
-
var _a = __read(mercatorPositionsToPixels([origin, destination], 21), 2), p1 = _a[0], p2 = _a[1];
|
|
7256
|
+
var _a = __read$2(mercatorPositionsToPixels([origin, destination], 21), 2), p1 = _a[0], p2 = _a[1];
|
|
7049
7257
|
var dx = (p2[0] - p1[0]);
|
|
7050
7258
|
var dy = (p1[1] - p2[1]);
|
|
7051
7259
|
var alpha = ((5 / 2 * Math.PI) - Math.atan2(dy, dx)) * INV_PI_BY_180 % 360;
|
|
@@ -7592,7 +7800,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
7592
7800
|
});
|
|
7593
7801
|
var lower = [];
|
|
7594
7802
|
try {
|
|
7595
|
-
for (var positions_1 = __values(positions), positions_1_1 = positions_1.next(); !positions_1_1.done; positions_1_1 = positions_1.next()) {
|
|
7803
|
+
for (var positions_1 = __values$2(positions), positions_1_1 = positions_1.next(); !positions_1_1.done; positions_1_1 = positions_1.next()) {
|
|
7596
7804
|
var position = positions_1_1.value;
|
|
7597
7805
|
while (lower.length >= 2 && _cross(lower[lower.length - 2], lower[lower.length - 1], position) <= 0) {
|
|
7598
7806
|
lower.pop();
|
|
@@ -7874,12 +8082,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
7874
8082
|
return result;
|
|
7875
8083
|
}
|
|
7876
8084
|
|
|
8085
|
+
var __extends$e = (window && window.__extends) || (function () {
|
|
8086
|
+
var extendStatics = function (d, b) {
|
|
8087
|
+
extendStatics = Object.setPrototypeOf ||
|
|
8088
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
8089
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
8090
|
+
return extendStatics(d, b);
|
|
8091
|
+
};
|
|
8092
|
+
return function (d, b) {
|
|
8093
|
+
if (typeof b !== "function" && b !== null)
|
|
8094
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
8095
|
+
extendStatics(d, b);
|
|
8096
|
+
function __() { this.constructor = d; }
|
|
8097
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
8098
|
+
};
|
|
8099
|
+
})();
|
|
7877
8100
|
/**
|
|
7878
8101
|
* A GeoJSON Position object - an array that specifies the longitude and latitude of a location. The
|
|
7879
8102
|
* full description is detailed in [RFC 7946]{@link https://tools.ietf.org/html/rfc7946#section-3.1.1}.
|
|
7880
8103
|
*/
|
|
7881
8104
|
var Position = /** @class */ (function (_super) {
|
|
7882
|
-
__extends(Position, _super);
|
|
8105
|
+
__extends$e(Position, _super);
|
|
7883
8106
|
/**
|
|
7884
8107
|
* Constructs a Position.
|
|
7885
8108
|
* @param longitude The position's longitude.
|
|
@@ -8071,11 +8294,37 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
8071
8294
|
return Polygon;
|
|
8072
8295
|
}());
|
|
8073
8296
|
|
|
8297
|
+
var __extends$f = (window && window.__extends) || (function () {
|
|
8298
|
+
var extendStatics = function (d, b) {
|
|
8299
|
+
extendStatics = Object.setPrototypeOf ||
|
|
8300
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
8301
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
8302
|
+
return extendStatics(d, b);
|
|
8303
|
+
};
|
|
8304
|
+
return function (d, b) {
|
|
8305
|
+
if (typeof b !== "function" && b !== null)
|
|
8306
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
8307
|
+
extendStatics(d, b);
|
|
8308
|
+
function __() { this.constructor = d; }
|
|
8309
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
8310
|
+
};
|
|
8311
|
+
})();
|
|
8312
|
+
var __values$3 = (window && window.__values) || function(o) {
|
|
8313
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
8314
|
+
if (m) return m.call(o);
|
|
8315
|
+
if (o && typeof o.length === "number") return {
|
|
8316
|
+
next: function () {
|
|
8317
|
+
if (o && i >= o.length) o = void 0;
|
|
8318
|
+
return { value: o && o[i++], done: !o };
|
|
8319
|
+
}
|
|
8320
|
+
};
|
|
8321
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
8322
|
+
};
|
|
8074
8323
|
/**
|
|
8075
8324
|
* A helper class that wraps a Geometry or Feature and makes it easy to update and maintain.
|
|
8076
8325
|
*/
|
|
8077
8326
|
var Shape = /** @class */ (function (_super) {
|
|
8078
|
-
__extends(Shape, _super);
|
|
8327
|
+
__extends$f(Shape, _super);
|
|
8079
8328
|
function Shape(data, id, properties) {
|
|
8080
8329
|
var _this = _super.call(this) || this;
|
|
8081
8330
|
var geometry;
|
|
@@ -8147,7 +8396,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
8147
8396
|
else if (geoType === "MultiLineString") {
|
|
8148
8397
|
var pos = positions;
|
|
8149
8398
|
try {
|
|
8150
|
-
for (var pos_1 = __values(pos), pos_1_1 = pos_1.next(); !pos_1_1.done; pos_1_1 = pos_1.next()) {
|
|
8399
|
+
for (var pos_1 = __values$3(pos), pos_1_1 = pos_1.next(); !pos_1_1.done; pos_1_1 = pos_1.next()) {
|
|
8151
8400
|
var p = pos_1_1.value;
|
|
8152
8401
|
bbox = BoundingBox.merge(bbox, BoundingBox.fromPositions(p));
|
|
8153
8402
|
}
|
|
@@ -8163,7 +8412,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
8163
8412
|
else if (geoType === "MultiPolygon") {
|
|
8164
8413
|
var pos = positions;
|
|
8165
8414
|
try {
|
|
8166
|
-
for (var pos_2 = __values(pos), pos_2_1 = pos_2.next(); !pos_2_1.done; pos_2_1 = pos_2.next()) {
|
|
8415
|
+
for (var pos_2 = __values$3(pos), pos_2_1 = pos_2.next(); !pos_2_1.done; pos_2_1 = pos_2.next()) {
|
|
8167
8416
|
var p1 = pos_2_1.value;
|
|
8168
8417
|
// only need to check the exterior ring of Polygon
|
|
8169
8418
|
bbox = BoundingBox.merge(bbox, BoundingBox.fromPositions(p1[0]));
|
|
@@ -8371,6 +8620,32 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
8371
8620
|
return Shape;
|
|
8372
8621
|
}(EventEmitter));
|
|
8373
8622
|
|
|
8623
|
+
var __extends$g = (window && window.__extends) || (function () {
|
|
8624
|
+
var extendStatics = function (d, b) {
|
|
8625
|
+
extendStatics = Object.setPrototypeOf ||
|
|
8626
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
8627
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
8628
|
+
return extendStatics(d, b);
|
|
8629
|
+
};
|
|
8630
|
+
return function (d, b) {
|
|
8631
|
+
if (typeof b !== "function" && b !== null)
|
|
8632
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
8633
|
+
extendStatics(d, b);
|
|
8634
|
+
function __() { this.constructor = d; }
|
|
8635
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
8636
|
+
};
|
|
8637
|
+
})();
|
|
8638
|
+
var __values$4 = (window && window.__values) || function(o) {
|
|
8639
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
8640
|
+
if (m) return m.call(o);
|
|
8641
|
+
if (o && typeof o.length === "number") return {
|
|
8642
|
+
next: function () {
|
|
8643
|
+
if (o && i >= o.length) o = void 0;
|
|
8644
|
+
return { value: o && o[i++], done: !o };
|
|
8645
|
+
}
|
|
8646
|
+
};
|
|
8647
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
8648
|
+
};
|
|
8374
8649
|
/**
|
|
8375
8650
|
* A GeoJSON BoundingBox object - an array that defines a shape whose edges follow lines of constant longitude,
|
|
8376
8651
|
* latitude, and elevation. All axes of the most southwesterly point are followed by all axes of the more northeasterly
|
|
@@ -8378,7 +8653,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
8378
8653
|
* [RFC 7946]{@link https://tools.ietf.org/html/rfc7946#section-5}.
|
|
8379
8654
|
*/
|
|
8380
8655
|
var BoundingBox = /** @class */ (function (_super) {
|
|
8381
|
-
__extends(BoundingBox, _super);
|
|
8656
|
+
__extends$g(BoundingBox, _super);
|
|
8382
8657
|
function BoundingBox(southwestPositionOrPositions, northeastPosition) {
|
|
8383
8658
|
var _this = this;
|
|
8384
8659
|
if (southwestPositionOrPositions && northeastPosition) {
|
|
@@ -8784,7 +9059,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
8784
9059
|
var bounds = null;
|
|
8785
9060
|
if (Array.isArray(data) && data.length > 0) {
|
|
8786
9061
|
try {
|
|
8787
|
-
for (var data_1 = __values(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {
|
|
9062
|
+
for (var data_1 = __values$4(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {
|
|
8788
9063
|
var datum = data_1_1.value;
|
|
8789
9064
|
tempBounds = BoundingBox.fromData(datum);
|
|
8790
9065
|
if (tempBounds != null) {
|
|
@@ -9095,6 +9370,21 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
9095
9370
|
return MultiPolygon;
|
|
9096
9371
|
}());
|
|
9097
9372
|
|
|
9373
|
+
var __extends$h = (window && window.__extends) || (function () {
|
|
9374
|
+
var extendStatics = function (d, b) {
|
|
9375
|
+
extendStatics = Object.setPrototypeOf ||
|
|
9376
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
9377
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
9378
|
+
return extendStatics(d, b);
|
|
9379
|
+
};
|
|
9380
|
+
return function (d, b) {
|
|
9381
|
+
if (typeof b !== "function" && b !== null)
|
|
9382
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9383
|
+
extendStatics(d, b);
|
|
9384
|
+
function __() { this.constructor = d; }
|
|
9385
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
9386
|
+
};
|
|
9387
|
+
})();
|
|
9098
9388
|
//Based on: https://github.com/mapbox/mapbox-gl-js/blob/main/src/geo/mercator_coordinate.js
|
|
9099
9389
|
/**
|
|
9100
9390
|
* A `MercatorPoint` object represents a projected three dimensional position.
|
|
@@ -9111,7 +9401,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
9111
9401
|
* The `z` dimension of `MercatorPoint` is conformal. A cube in the mercator coordinate space would be rendered as a cube.
|
|
9112
9402
|
*/
|
|
9113
9403
|
var MercatorPoint = /** @class */ (function (_super) {
|
|
9114
|
-
__extends(MercatorPoint, _super);
|
|
9404
|
+
__extends$h(MercatorPoint, _super);
|
|
9115
9405
|
/**
|
|
9116
9406
|
* Constructs a MercatorPoint.
|
|
9117
9407
|
* @param x A points x position in mercator units.
|
|
@@ -9350,6 +9640,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
9350
9640
|
return arrayPoints_1(points, tolerance, true);
|
|
9351
9641
|
}
|
|
9352
9642
|
|
|
9643
|
+
var __values$5 = (window && window.__values) || function(o) {
|
|
9644
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
9645
|
+
if (m) return m.call(o);
|
|
9646
|
+
if (o && typeof o.length === "number") return {
|
|
9647
|
+
next: function () {
|
|
9648
|
+
if (o && i >= o.length) o = void 0;
|
|
9649
|
+
return { value: o && o[i++], done: !o };
|
|
9650
|
+
}
|
|
9651
|
+
};
|
|
9652
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
9653
|
+
};
|
|
9353
9654
|
/**
|
|
9354
9655
|
* An Affine Transform class generated from a set of reference points.
|
|
9355
9656
|
*/
|
|
@@ -9399,7 +9700,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
9399
9700
|
if (points && Array.isArray(points) && Array.isArray(points[0])) {
|
|
9400
9701
|
var pos = [];
|
|
9401
9702
|
try {
|
|
9402
|
-
for (var points_1 = __values(points), points_1_1 = points_1.next(); !points_1_1.done; points_1_1 = points_1.next()) {
|
|
9703
|
+
for (var points_1 = __values$5(points), points_1_1 = points_1.next(); !points_1_1.done; points_1_1 = points_1.next()) {
|
|
9403
9704
|
var subPoints = points_1_1.value;
|
|
9404
9705
|
pos.push(this.transform(subPoints, transformMatrix, decimals));
|
|
9405
9706
|
}
|
|
@@ -9599,11 +9900,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
9599
9900
|
simplify: simplify
|
|
9600
9901
|
});
|
|
9601
9902
|
|
|
9903
|
+
var __extends$i = (window && window.__extends) || (function () {
|
|
9904
|
+
var extendStatics = function (d, b) {
|
|
9905
|
+
extendStatics = Object.setPrototypeOf ||
|
|
9906
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
9907
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
9908
|
+
return extendStatics(d, b);
|
|
9909
|
+
};
|
|
9910
|
+
return function (d, b) {
|
|
9911
|
+
if (typeof b !== "function" && b !== null)
|
|
9912
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9913
|
+
extendStatics(d, b);
|
|
9914
|
+
function __() { this.constructor = d; }
|
|
9915
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
9916
|
+
};
|
|
9917
|
+
})();
|
|
9602
9918
|
/**
|
|
9603
9919
|
* The options for a ZoomControl object.
|
|
9604
9920
|
*/
|
|
9605
9921
|
var ZoomControlOptions = /** @class */ (function (_super) {
|
|
9606
|
-
__extends(ZoomControlOptions, _super);
|
|
9922
|
+
__extends$i(ZoomControlOptions, _super);
|
|
9607
9923
|
function ZoomControlOptions() {
|
|
9608
9924
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
9609
9925
|
/**
|
|
@@ -9623,11 +9939,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
9623
9939
|
return ZoomControlOptions;
|
|
9624
9940
|
}(Options));
|
|
9625
9941
|
|
|
9942
|
+
var __extends$j = (window && window.__extends) || (function () {
|
|
9943
|
+
var extendStatics = function (d, b) {
|
|
9944
|
+
extendStatics = Object.setPrototypeOf ||
|
|
9945
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
9946
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
9947
|
+
return extendStatics(d, b);
|
|
9948
|
+
};
|
|
9949
|
+
return function (d, b) {
|
|
9950
|
+
if (typeof b !== "function" && b !== null)
|
|
9951
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9952
|
+
extendStatics(d, b);
|
|
9953
|
+
function __() { this.constructor = d; }
|
|
9954
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
9955
|
+
};
|
|
9956
|
+
})();
|
|
9626
9957
|
/**
|
|
9627
9958
|
* A control for changing the zoom of the map.
|
|
9628
9959
|
*/
|
|
9629
9960
|
var ZoomControl = /** @class */ (function (_super) {
|
|
9630
|
-
__extends(ZoomControl, _super);
|
|
9961
|
+
__extends$j(ZoomControl, _super);
|
|
9631
9962
|
/**
|
|
9632
9963
|
* Constructs a ZoomControl.
|
|
9633
9964
|
* @param options The options for the control.
|
|
@@ -9789,6 +10120,21 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
9789
10120
|
|
|
9790
10121
|
var cloneDeepWith_1 = cloneDeepWith;
|
|
9791
10122
|
|
|
10123
|
+
var __extends$k = (window && window.__extends) || (function () {
|
|
10124
|
+
var extendStatics = function (d, b) {
|
|
10125
|
+
extendStatics = Object.setPrototypeOf ||
|
|
10126
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
10127
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10128
|
+
return extendStatics(d, b);
|
|
10129
|
+
};
|
|
10130
|
+
return function (d, b) {
|
|
10131
|
+
if (typeof b !== "function" && b !== null)
|
|
10132
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10133
|
+
extendStatics(d, b);
|
|
10134
|
+
function __() { this.constructor = d; }
|
|
10135
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
10136
|
+
};
|
|
10137
|
+
})();
|
|
9792
10138
|
/**
|
|
9793
10139
|
* A data source for managing shape data that will be displayed on the map.
|
|
9794
10140
|
* A data source must be added to a layer before it is visible on the map.
|
|
@@ -9796,7 +10142,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
9796
10142
|
* @module Object Definitions
|
|
9797
10143
|
*/
|
|
9798
10144
|
var DataSourceOptions = /** @class */ (function (_super) {
|
|
9799
|
-
__extends(DataSourceOptions, _super);
|
|
10145
|
+
__extends$k(DataSourceOptions, _super);
|
|
9800
10146
|
function DataSourceOptions() {
|
|
9801
10147
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
9802
10148
|
/*
|
|
@@ -9851,12 +10197,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
9851
10197
|
return DataSourceOptions;
|
|
9852
10198
|
}(Options));
|
|
9853
10199
|
|
|
10200
|
+
var __extends$l = (window && window.__extends) || (function () {
|
|
10201
|
+
var extendStatics = function (d, b) {
|
|
10202
|
+
extendStatics = Object.setPrototypeOf ||
|
|
10203
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
10204
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10205
|
+
return extendStatics(d, b);
|
|
10206
|
+
};
|
|
10207
|
+
return function (d, b) {
|
|
10208
|
+
if (typeof b !== "function" && b !== null)
|
|
10209
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10210
|
+
extendStatics(d, b);
|
|
10211
|
+
function __() { this.constructor = d; }
|
|
10212
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
10213
|
+
};
|
|
10214
|
+
})();
|
|
9854
10215
|
/**
|
|
9855
10216
|
* A base abstract class in which all other source objects extend.
|
|
9856
10217
|
* A source must be added to a layer before it is visible on the map.
|
|
9857
10218
|
*/
|
|
9858
10219
|
var Source = /** @class */ (function (_super) {
|
|
9859
|
-
__extends(Source, _super);
|
|
10220
|
+
__extends$l(Source, _super);
|
|
9860
10221
|
function Source(id) {
|
|
9861
10222
|
var _this = _super.call(this) || this;
|
|
9862
10223
|
_this.id = id || uuidRandom();
|
|
@@ -9890,13 +10251,39 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
9890
10251
|
return Source;
|
|
9891
10252
|
}(EventEmitter));
|
|
9892
10253
|
|
|
10254
|
+
var __extends$m = (window && window.__extends) || (function () {
|
|
10255
|
+
var extendStatics = function (d, b) {
|
|
10256
|
+
extendStatics = Object.setPrototypeOf ||
|
|
10257
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
10258
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10259
|
+
return extendStatics(d, b);
|
|
10260
|
+
};
|
|
10261
|
+
return function (d, b) {
|
|
10262
|
+
if (typeof b !== "function" && b !== null)
|
|
10263
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10264
|
+
extendStatics(d, b);
|
|
10265
|
+
function __() { this.constructor = d; }
|
|
10266
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
10267
|
+
};
|
|
10268
|
+
})();
|
|
10269
|
+
var __values$6 = (window && window.__values) || function(o) {
|
|
10270
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
10271
|
+
if (m) return m.call(o);
|
|
10272
|
+
if (o && typeof o.length === "number") return {
|
|
10273
|
+
next: function () {
|
|
10274
|
+
if (o && i >= o.length) o = void 0;
|
|
10275
|
+
return { value: o && o[i++], done: !o };
|
|
10276
|
+
}
|
|
10277
|
+
};
|
|
10278
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
10279
|
+
};
|
|
9893
10280
|
/**
|
|
9894
10281
|
* A data source class that makes it easy to manage shapes data that will be displayed on the map.
|
|
9895
10282
|
* A data source must be added to a layer before it is visible on the map.
|
|
9896
10283
|
* The DataSource class may be used with the SymbolLayer, LineLayer, PolygonLayer, BubbleLayer, and HeatMapLayer.
|
|
9897
10284
|
*/
|
|
9898
10285
|
var DataSource = /** @class */ (function (_super) {
|
|
9899
|
-
__extends(DataSource, _super);
|
|
10286
|
+
__extends$m(DataSource, _super);
|
|
9900
10287
|
/**
|
|
9901
10288
|
* A data source class that makes it easy to manage shapes data that will be displayed on the map.
|
|
9902
10289
|
* A data source must be added to a layer before it is visible on the map.
|
|
@@ -10078,7 +10465,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10078
10465
|
var e_1, _a;
|
|
10079
10466
|
var shapes = Array.isArray(shape) ? shape : [shape];
|
|
10080
10467
|
try {
|
|
10081
|
-
for (var shapes_1 = __values(shapes), shapes_1_1 = shapes_1.next(); !shapes_1_1.done; shapes_1_1 = shapes_1.next()) {
|
|
10468
|
+
for (var shapes_1 = __values$6(shapes), shapes_1_1 = shapes_1.next(); !shapes_1_1.done; shapes_1_1 = shapes_1.next()) {
|
|
10082
10469
|
var s = shapes_1_1.value;
|
|
10083
10470
|
if (typeof s === "number") {
|
|
10084
10471
|
this._removeByIndex(s);
|
|
@@ -10105,7 +10492,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10105
10492
|
var e_2, _a;
|
|
10106
10493
|
var ids = Array.isArray(id) ? id : [id];
|
|
10107
10494
|
try {
|
|
10108
|
-
for (var ids_1 = __values(ids), ids_1_1 = ids_1.next(); !ids_1_1.done; ids_1_1 = ids_1.next()) {
|
|
10495
|
+
for (var ids_1 = __values$6(ids), ids_1_1 = ids_1.next(); !ids_1_1.done; ids_1_1 = ids_1.next()) {
|
|
10109
10496
|
var i = ids_1_1.value;
|
|
10110
10497
|
this._removeById(i);
|
|
10111
10498
|
}
|
|
@@ -10244,7 +10631,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10244
10631
|
data = Array.isArray(data) ? data : [data];
|
|
10245
10632
|
if (typeof index !== "number") {
|
|
10246
10633
|
try {
|
|
10247
|
-
for (var data_1 = __values(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {
|
|
10634
|
+
for (var data_1 = __values$6(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {
|
|
10248
10635
|
var d = data_1_1.value;
|
|
10249
10636
|
this.shapes.push(d);
|
|
10250
10637
|
this.shapesMap.set(d.getId(), this.shapes.length - 1);
|
|
@@ -10265,7 +10652,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10265
10652
|
}
|
|
10266
10653
|
}
|
|
10267
10654
|
try {
|
|
10268
|
-
for (var data_2 = __values(data), data_2_1 = data_2.next(); !data_2_1.done; data_2_1 = data_2.next()) {
|
|
10655
|
+
for (var data_2 = __values$6(data), data_2_1 = data_2.next(); !data_2_1.done; data_2_1 = data_2.next()) {
|
|
10269
10656
|
var d = data_2_1.value;
|
|
10270
10657
|
d._setDataSource(this);
|
|
10271
10658
|
}
|
|
@@ -10322,6 +10709,21 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10322
10709
|
return DataSource;
|
|
10323
10710
|
}(Source));
|
|
10324
10711
|
|
|
10712
|
+
var __extends$n = (window && window.__extends) || (function () {
|
|
10713
|
+
var extendStatics = function (d, b) {
|
|
10714
|
+
extendStatics = Object.setPrototypeOf ||
|
|
10715
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
10716
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10717
|
+
return extendStatics(d, b);
|
|
10718
|
+
};
|
|
10719
|
+
return function (d, b) {
|
|
10720
|
+
if (typeof b !== "function" && b !== null)
|
|
10721
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10722
|
+
extendStatics(d, b);
|
|
10723
|
+
function __() { this.constructor = d; }
|
|
10724
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
10725
|
+
};
|
|
10726
|
+
})();
|
|
10325
10727
|
/**
|
|
10326
10728
|
* A data source for managing shape data that will be displayed on the map.
|
|
10327
10729
|
* A data source must be added to a layer before it is visible on the map.
|
|
@@ -10329,7 +10731,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10329
10731
|
* @module Object Definitions
|
|
10330
10732
|
*/
|
|
10331
10733
|
var VectorTileSourceOptions = /** @class */ (function (_super) {
|
|
10332
|
-
__extends(VectorTileSourceOptions, _super);
|
|
10734
|
+
__extends$n(VectorTileSourceOptions, _super);
|
|
10333
10735
|
function VectorTileSourceOptions() {
|
|
10334
10736
|
/*
|
|
10335
10737
|
* TODO:
|
|
@@ -10382,12 +10784,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10382
10784
|
return VectorTileSourceOptions;
|
|
10383
10785
|
}(Options));
|
|
10384
10786
|
|
|
10787
|
+
var __extends$o = (window && window.__extends) || (function () {
|
|
10788
|
+
var extendStatics = function (d, b) {
|
|
10789
|
+
extendStatics = Object.setPrototypeOf ||
|
|
10790
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
10791
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10792
|
+
return extendStatics(d, b);
|
|
10793
|
+
};
|
|
10794
|
+
return function (d, b) {
|
|
10795
|
+
if (typeof b !== "function" && b !== null)
|
|
10796
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10797
|
+
extendStatics(d, b);
|
|
10798
|
+
function __() { this.constructor = d; }
|
|
10799
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
10800
|
+
};
|
|
10801
|
+
})();
|
|
10385
10802
|
/**
|
|
10386
10803
|
* A vector tile source describes how to access a vector tile layer.
|
|
10387
10804
|
* Vector tile sources can be used with; SymbolLayer, LineLayer, PolygonLayer, BubbleLayer, HeatmapLayer and VectorTileLayer.
|
|
10388
10805
|
*/
|
|
10389
10806
|
var VectorTileSource = /** @class */ (function (_super) {
|
|
10390
|
-
__extends(VectorTileSource, _super);
|
|
10807
|
+
__extends$o(VectorTileSource, _super);
|
|
10391
10808
|
function VectorTileSource(id, options) {
|
|
10392
10809
|
var _this = _super.call(this, id) || this;
|
|
10393
10810
|
_this.options = new VectorTileSourceOptions().merge(cloneDeep_1(options));
|
|
@@ -10442,11 +10859,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10442
10859
|
VectorTileSource: VectorTileSource
|
|
10443
10860
|
});
|
|
10444
10861
|
|
|
10862
|
+
var __extends$p = (window && window.__extends) || (function () {
|
|
10863
|
+
var extendStatics = function (d, b) {
|
|
10864
|
+
extendStatics = Object.setPrototypeOf ||
|
|
10865
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
10866
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10867
|
+
return extendStatics(d, b);
|
|
10868
|
+
};
|
|
10869
|
+
return function (d, b) {
|
|
10870
|
+
if (typeof b !== "function" && b !== null)
|
|
10871
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10872
|
+
extendStatics(d, b);
|
|
10873
|
+
function __() { this.constructor = d; }
|
|
10874
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
10875
|
+
};
|
|
10876
|
+
})();
|
|
10445
10877
|
/**
|
|
10446
10878
|
* Abstract class for other layer classes to extend.
|
|
10447
10879
|
*/
|
|
10448
10880
|
var Layer = /** @class */ (function (_super) {
|
|
10449
|
-
__extends(Layer, _super);
|
|
10881
|
+
__extends$p(Layer, _super);
|
|
10450
10882
|
function Layer(id) {
|
|
10451
10883
|
var _this =
|
|
10452
10884
|
// Assign an random id using a UUID if none was specified.
|
|
@@ -10551,11 +10983,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10551
10983
|
return Layer;
|
|
10552
10984
|
}(EventEmitter));
|
|
10553
10985
|
|
|
10986
|
+
var __extends$q = (window && window.__extends) || (function () {
|
|
10987
|
+
var extendStatics = function (d, b) {
|
|
10988
|
+
extendStatics = Object.setPrototypeOf ||
|
|
10989
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
10990
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10991
|
+
return extendStatics(d, b);
|
|
10992
|
+
};
|
|
10993
|
+
return function (d, b) {
|
|
10994
|
+
if (typeof b !== "function" && b !== null)
|
|
10995
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10996
|
+
extendStatics(d, b);
|
|
10997
|
+
function __() { this.constructor = d; }
|
|
10998
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
10999
|
+
};
|
|
11000
|
+
})();
|
|
10554
11001
|
/**
|
|
10555
11002
|
* A base class which all other layer options inherit from.
|
|
10556
11003
|
*/
|
|
10557
11004
|
var LayerOptions = /** @class */ (function (_super) {
|
|
10558
|
-
__extends(LayerOptions, _super);
|
|
11005
|
+
__extends$q(LayerOptions, _super);
|
|
10559
11006
|
function LayerOptions() {
|
|
10560
11007
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
10561
11008
|
/**
|
|
@@ -10602,11 +11049,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10602
11049
|
return LayerOptions;
|
|
10603
11050
|
}(Options));
|
|
10604
11051
|
|
|
11052
|
+
var __extends$r = (window && window.__extends) || (function () {
|
|
11053
|
+
var extendStatics = function (d, b) {
|
|
11054
|
+
extendStatics = Object.setPrototypeOf ||
|
|
11055
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11056
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
11057
|
+
return extendStatics(d, b);
|
|
11058
|
+
};
|
|
11059
|
+
return function (d, b) {
|
|
11060
|
+
if (typeof b !== "function" && b !== null)
|
|
11061
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11062
|
+
extendStatics(d, b);
|
|
11063
|
+
function __() { this.constructor = d; }
|
|
11064
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
11065
|
+
};
|
|
11066
|
+
})();
|
|
10605
11067
|
/**
|
|
10606
11068
|
* Options used when rendering Point objects in a BubbleLayer.
|
|
10607
11069
|
*/
|
|
10608
11070
|
var BubbleLayerOptions = /** @class */ (function (_super) {
|
|
10609
|
-
__extends(BubbleLayerOptions, _super);
|
|
11071
|
+
__extends$r(BubbleLayerOptions, _super);
|
|
10610
11072
|
function BubbleLayerOptions() {
|
|
10611
11073
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
10612
11074
|
/**
|
|
@@ -10676,11 +11138,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10676
11138
|
return BubbleLayerOptions;
|
|
10677
11139
|
}(LayerOptions));
|
|
10678
11140
|
|
|
11141
|
+
var __extends$s = (window && window.__extends) || (function () {
|
|
11142
|
+
var extendStatics = function (d, b) {
|
|
11143
|
+
extendStatics = Object.setPrototypeOf ||
|
|
11144
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11145
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
11146
|
+
return extendStatics(d, b);
|
|
11147
|
+
};
|
|
11148
|
+
return function (d, b) {
|
|
11149
|
+
if (typeof b !== "function" && b !== null)
|
|
11150
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11151
|
+
extendStatics(d, b);
|
|
11152
|
+
function __() { this.constructor = d; }
|
|
11153
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
11154
|
+
};
|
|
11155
|
+
})();
|
|
10679
11156
|
/**
|
|
10680
11157
|
* Renders Point objects as scalable circles (bubbles).
|
|
10681
11158
|
*/
|
|
10682
11159
|
var BubbleLayer = /** @class */ (function (_super) {
|
|
10683
|
-
__extends(BubbleLayer, _super);
|
|
11160
|
+
__extends$s(BubbleLayer, _super);
|
|
10684
11161
|
/**
|
|
10685
11162
|
* Constructs a new BubbleLayer.
|
|
10686
11163
|
* @param source The id or instance of a data source which the layer will render.
|
|
@@ -10790,11 +11267,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10790
11267
|
return BubbleLayer;
|
|
10791
11268
|
}(Layer));
|
|
10792
11269
|
|
|
11270
|
+
var __extends$t = (window && window.__extends) || (function () {
|
|
11271
|
+
var extendStatics = function (d, b) {
|
|
11272
|
+
extendStatics = Object.setPrototypeOf ||
|
|
11273
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11274
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
11275
|
+
return extendStatics(d, b);
|
|
11276
|
+
};
|
|
11277
|
+
return function (d, b) {
|
|
11278
|
+
if (typeof b !== "function" && b !== null)
|
|
11279
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11280
|
+
extendStatics(d, b);
|
|
11281
|
+
function __() { this.constructor = d; }
|
|
11282
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
11283
|
+
};
|
|
11284
|
+
})();
|
|
10793
11285
|
/**
|
|
10794
11286
|
* Options used when rendering Point objects in a HeatMapLayer.
|
|
10795
11287
|
*/
|
|
10796
11288
|
var HeatMapLayerOptions = /** @class */ (function (_super) {
|
|
10797
|
-
__extends(HeatMapLayerOptions, _super);
|
|
11289
|
+
__extends$t(HeatMapLayerOptions, _super);
|
|
10798
11290
|
function HeatMapLayerOptions() {
|
|
10799
11291
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
10800
11292
|
/**
|
|
@@ -10861,11 +11353,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10861
11353
|
return HeatMapLayerOptions;
|
|
10862
11354
|
}(LayerOptions));
|
|
10863
11355
|
|
|
11356
|
+
var __extends$u = (window && window.__extends) || (function () {
|
|
11357
|
+
var extendStatics = function (d, b) {
|
|
11358
|
+
extendStatics = Object.setPrototypeOf ||
|
|
11359
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11360
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
11361
|
+
return extendStatics(d, b);
|
|
11362
|
+
};
|
|
11363
|
+
return function (d, b) {
|
|
11364
|
+
if (typeof b !== "function" && b !== null)
|
|
11365
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11366
|
+
extendStatics(d, b);
|
|
11367
|
+
function __() { this.constructor = d; }
|
|
11368
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
11369
|
+
};
|
|
11370
|
+
})();
|
|
10864
11371
|
/**
|
|
10865
11372
|
* Represent the density of data using different colors (HeatMap).
|
|
10866
11373
|
*/
|
|
10867
11374
|
var HeatMapLayer = /** @class */ (function (_super) {
|
|
10868
|
-
__extends(HeatMapLayer, _super);
|
|
11375
|
+
__extends$u(HeatMapLayer, _super);
|
|
10869
11376
|
/**
|
|
10870
11377
|
* Constructs a new HeatMapLayer.
|
|
10871
11378
|
* @param source The id or instance of a data source which the layer will render.
|
|
@@ -10969,11 +11476,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10969
11476
|
return HeatMapLayer;
|
|
10970
11477
|
}(Layer));
|
|
10971
11478
|
|
|
11479
|
+
var __extends$v = (window && window.__extends) || (function () {
|
|
11480
|
+
var extendStatics = function (d, b) {
|
|
11481
|
+
extendStatics = Object.setPrototypeOf ||
|
|
11482
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11483
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
11484
|
+
return extendStatics(d, b);
|
|
11485
|
+
};
|
|
11486
|
+
return function (d, b) {
|
|
11487
|
+
if (typeof b !== "function" && b !== null)
|
|
11488
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11489
|
+
extendStatics(d, b);
|
|
11490
|
+
function __() { this.constructor = d; }
|
|
11491
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
11492
|
+
};
|
|
11493
|
+
})();
|
|
10972
11494
|
/**
|
|
10973
11495
|
* Options used when rendering canvas, image, raster tile, and video layers
|
|
10974
11496
|
*/
|
|
10975
11497
|
var MediaLayerOptions = /** @class */ (function (_super) {
|
|
10976
|
-
__extends(MediaLayerOptions, _super);
|
|
11498
|
+
__extends$v(MediaLayerOptions, _super);
|
|
10977
11499
|
function MediaLayerOptions() {
|
|
10978
11500
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
10979
11501
|
/**
|
|
@@ -11025,11 +11547,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11025
11547
|
return MediaLayerOptions;
|
|
11026
11548
|
}(LayerOptions));
|
|
11027
11549
|
|
|
11550
|
+
var __extends$w = (window && window.__extends) || (function () {
|
|
11551
|
+
var extendStatics = function (d, b) {
|
|
11552
|
+
extendStatics = Object.setPrototypeOf ||
|
|
11553
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11554
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
11555
|
+
return extendStatics(d, b);
|
|
11556
|
+
};
|
|
11557
|
+
return function (d, b) {
|
|
11558
|
+
if (typeof b !== "function" && b !== null)
|
|
11559
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11560
|
+
extendStatics(d, b);
|
|
11561
|
+
function __() { this.constructor = d; }
|
|
11562
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
11563
|
+
};
|
|
11564
|
+
})();
|
|
11028
11565
|
/**
|
|
11029
11566
|
* Options used when rendering Point objects in a ImageLayer.
|
|
11030
11567
|
*/
|
|
11031
11568
|
var ImageLayerOptions = /** @class */ (function (_super) {
|
|
11032
|
-
__extends(ImageLayerOptions, _super);
|
|
11569
|
+
__extends$w(ImageLayerOptions, _super);
|
|
11033
11570
|
function ImageLayerOptions() {
|
|
11034
11571
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
11035
11572
|
/**
|
|
@@ -11059,12 +11596,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11059
11596
|
return ImageLayerOptions;
|
|
11060
11597
|
}(MediaLayerOptions));
|
|
11061
11598
|
|
|
11599
|
+
var __extends$x = (window && window.__extends) || (function () {
|
|
11600
|
+
var extendStatics = function (d, b) {
|
|
11601
|
+
extendStatics = Object.setPrototypeOf ||
|
|
11602
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11603
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
11604
|
+
return extendStatics(d, b);
|
|
11605
|
+
};
|
|
11606
|
+
return function (d, b) {
|
|
11607
|
+
if (typeof b !== "function" && b !== null)
|
|
11608
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11609
|
+
extendStatics(d, b);
|
|
11610
|
+
function __() { this.constructor = d; }
|
|
11611
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
11612
|
+
};
|
|
11613
|
+
})();
|
|
11062
11614
|
/**
|
|
11063
11615
|
* Abstract class for other layer classes which have to build sources.
|
|
11064
11616
|
* @internal
|
|
11065
11617
|
*/
|
|
11066
11618
|
var SourceBuildingLayer = /** @class */ (function (_super) {
|
|
11067
|
-
__extends(SourceBuildingLayer, _super);
|
|
11619
|
+
__extends$x(SourceBuildingLayer, _super);
|
|
11068
11620
|
function SourceBuildingLayer() {
|
|
11069
11621
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
11070
11622
|
}
|
|
@@ -11079,11 +11631,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11079
11631
|
return SourceBuildingLayer;
|
|
11080
11632
|
}(Layer));
|
|
11081
11633
|
|
|
11634
|
+
var __extends$y = (window && window.__extends) || (function () {
|
|
11635
|
+
var extendStatics = function (d, b) {
|
|
11636
|
+
extendStatics = Object.setPrototypeOf ||
|
|
11637
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11638
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
11639
|
+
return extendStatics(d, b);
|
|
11640
|
+
};
|
|
11641
|
+
return function (d, b) {
|
|
11642
|
+
if (typeof b !== "function" && b !== null)
|
|
11643
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11644
|
+
extendStatics(d, b);
|
|
11645
|
+
function __() { this.constructor = d; }
|
|
11646
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
11647
|
+
};
|
|
11648
|
+
})();
|
|
11082
11649
|
/**
|
|
11083
11650
|
* Overlays an image on the map with each corner anchored to a coordinate on the map. Also known as a ground or image overlay.
|
|
11084
11651
|
*/
|
|
11085
11652
|
var ImageLayer = /** @class */ (function (_super) {
|
|
11086
|
-
__extends(ImageLayer, _super);
|
|
11653
|
+
__extends$y(ImageLayer, _super);
|
|
11087
11654
|
/**
|
|
11088
11655
|
* Constructs a new ImageLayer.
|
|
11089
11656
|
* @param id The id of the layer. If not specified a random one will be generated.
|
|
@@ -11286,12 +11853,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11286
11853
|
return ImageLayer;
|
|
11287
11854
|
}(SourceBuildingLayer));
|
|
11288
11855
|
|
|
11856
|
+
var __extends$z = (window && window.__extends) || (function () {
|
|
11857
|
+
var extendStatics = function (d, b) {
|
|
11858
|
+
extendStatics = Object.setPrototypeOf ||
|
|
11859
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11860
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
11861
|
+
return extendStatics(d, b);
|
|
11862
|
+
};
|
|
11863
|
+
return function (d, b) {
|
|
11864
|
+
if (typeof b !== "function" && b !== null)
|
|
11865
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11866
|
+
extendStatics(d, b);
|
|
11867
|
+
function __() { this.constructor = d; }
|
|
11868
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
11869
|
+
};
|
|
11870
|
+
})();
|
|
11289
11871
|
/**
|
|
11290
11872
|
* Options used when rendering SimpleLine, SimplePolygon, CirclePolygon,
|
|
11291
11873
|
* LineString, MultiLineString, Polygon, and MultiPolygon objects in a line layer.
|
|
11292
11874
|
*/
|
|
11293
11875
|
var LineLayerOptions = /** @class */ (function (_super) {
|
|
11294
|
-
__extends(LineLayerOptions, _super);
|
|
11876
|
+
__extends$z(LineLayerOptions, _super);
|
|
11295
11877
|
function LineLayerOptions() {
|
|
11296
11878
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
11297
11879
|
/**
|
|
@@ -11391,12 +11973,38 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11391
11973
|
return LineLayerOptions;
|
|
11392
11974
|
}(LayerOptions));
|
|
11393
11975
|
|
|
11976
|
+
var __extends$A = (window && window.__extends) || (function () {
|
|
11977
|
+
var extendStatics = function (d, b) {
|
|
11978
|
+
extendStatics = Object.setPrototypeOf ||
|
|
11979
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11980
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
11981
|
+
return extendStatics(d, b);
|
|
11982
|
+
};
|
|
11983
|
+
return function (d, b) {
|
|
11984
|
+
if (typeof b !== "function" && b !== null)
|
|
11985
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11986
|
+
extendStatics(d, b);
|
|
11987
|
+
function __() { this.constructor = d; }
|
|
11988
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
11989
|
+
};
|
|
11990
|
+
})();
|
|
11991
|
+
var __assign = (window && window.__assign) || function () {
|
|
11992
|
+
__assign = Object.assign || function(t) {
|
|
11993
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
11994
|
+
s = arguments[i];
|
|
11995
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11996
|
+
t[p] = s[p];
|
|
11997
|
+
}
|
|
11998
|
+
return t;
|
|
11999
|
+
};
|
|
12000
|
+
return __assign.apply(this, arguments);
|
|
12001
|
+
};
|
|
11394
12002
|
/**
|
|
11395
12003
|
* Renders line data on the map. Can be used with SimpleLine, SimplePolygon,
|
|
11396
12004
|
* CirclePolygon, LineString, MultiLineString, Polygon, and MultiPolygon objects.
|
|
11397
12005
|
*/
|
|
11398
12006
|
var LineLayer = /** @class */ (function (_super) {
|
|
11399
|
-
__extends(LineLayer, _super);
|
|
12007
|
+
__extends$A(LineLayer, _super);
|
|
11400
12008
|
/**
|
|
11401
12009
|
* Constructs a new LineLayer.
|
|
11402
12010
|
* @param source The id or instance of a data source which the layer will render.
|
|
@@ -11487,11 +12095,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11487
12095
|
return LineLayer;
|
|
11488
12096
|
}(Layer));
|
|
11489
12097
|
|
|
12098
|
+
var __extends$B = (window && window.__extends) || (function () {
|
|
12099
|
+
var extendStatics = function (d, b) {
|
|
12100
|
+
extendStatics = Object.setPrototypeOf ||
|
|
12101
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
12102
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
12103
|
+
return extendStatics(d, b);
|
|
12104
|
+
};
|
|
12105
|
+
return function (d, b) {
|
|
12106
|
+
if (typeof b !== "function" && b !== null)
|
|
12107
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12108
|
+
extendStatics(d, b);
|
|
12109
|
+
function __() { this.constructor = d; }
|
|
12110
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12111
|
+
};
|
|
12112
|
+
})();
|
|
11490
12113
|
/**
|
|
11491
12114
|
* Options used when rendering `Polygon` and `MultiPolygon` objects in a `PolygonExtrusionLayer`.
|
|
11492
12115
|
*/
|
|
11493
12116
|
var PolygonExtrusionLayerOptions = /** @class */ (function (_super) {
|
|
11494
|
-
__extends(PolygonExtrusionLayerOptions, _super);
|
|
12117
|
+
__extends$B(PolygonExtrusionLayerOptions, _super);
|
|
11495
12118
|
function PolygonExtrusionLayerOptions() {
|
|
11496
12119
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
11497
12120
|
/**
|
|
@@ -11564,11 +12187,37 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11564
12187
|
return PolygonExtrusionLayerOptions;
|
|
11565
12188
|
}(LayerOptions));
|
|
11566
12189
|
|
|
12190
|
+
var __extends$C = (window && window.__extends) || (function () {
|
|
12191
|
+
var extendStatics = function (d, b) {
|
|
12192
|
+
extendStatics = Object.setPrototypeOf ||
|
|
12193
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
12194
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
12195
|
+
return extendStatics(d, b);
|
|
12196
|
+
};
|
|
12197
|
+
return function (d, b) {
|
|
12198
|
+
if (typeof b !== "function" && b !== null)
|
|
12199
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12200
|
+
extendStatics(d, b);
|
|
12201
|
+
function __() { this.constructor = d; }
|
|
12202
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12203
|
+
};
|
|
12204
|
+
})();
|
|
12205
|
+
var __assign$1 = (window && window.__assign) || function () {
|
|
12206
|
+
__assign$1 = Object.assign || function(t) {
|
|
12207
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
12208
|
+
s = arguments[i];
|
|
12209
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
12210
|
+
t[p] = s[p];
|
|
12211
|
+
}
|
|
12212
|
+
return t;
|
|
12213
|
+
};
|
|
12214
|
+
return __assign$1.apply(this, arguments);
|
|
12215
|
+
};
|
|
11567
12216
|
/**
|
|
11568
12217
|
* Renders extruded filled `Polygon` and `MultiPolygon` objects on the map.
|
|
11569
12218
|
*/
|
|
11570
12219
|
var PolygonExtrusionLayer = /** @class */ (function (_super) {
|
|
11571
|
-
__extends(PolygonExtrusionLayer, _super);
|
|
12220
|
+
__extends$C(PolygonExtrusionLayer, _super);
|
|
11572
12221
|
/**
|
|
11573
12222
|
* Constructs a new PolygonExtrusionLayer.
|
|
11574
12223
|
* @param source The id or instance of a data source which the layer will render.
|
|
@@ -11628,11 +12277,11 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11628
12277
|
* @internal
|
|
11629
12278
|
*/
|
|
11630
12279
|
PolygonExtrusionLayer.prototype._buildLayers = function () {
|
|
11631
|
-
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 ?
|
|
12280
|
+
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 ?
|
|
11632
12281
|
this.options.source.getId() :
|
|
11633
12282
|
this.options.source, layout: {
|
|
11634
12283
|
visibility: this.options.visible ? "visible" : "none",
|
|
11635
|
-
}, paint: __assign(__assign({ "fill-extrusion-base": this.options.base, "fill-extrusion-height": this.options.height, "fill-extrusion-opacity": this.options.fillOpacity }, (this.options.fillPattern ?
|
|
12284
|
+
}, 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 ?
|
|
11636
12285
|
{ "fill-extrusion-pattern": this.options.fillPattern } :
|
|
11637
12286
|
{ "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 });
|
|
11638
12287
|
return [layer];
|
|
@@ -11656,11 +12305,58 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11656
12305
|
return PolygonExtrusionLayer;
|
|
11657
12306
|
}(Layer));
|
|
11658
12307
|
|
|
12308
|
+
var __extends$D = (window && window.__extends) || (function () {
|
|
12309
|
+
var extendStatics = function (d, b) {
|
|
12310
|
+
extendStatics = Object.setPrototypeOf ||
|
|
12311
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
12312
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
12313
|
+
return extendStatics(d, b);
|
|
12314
|
+
};
|
|
12315
|
+
return function (d, b) {
|
|
12316
|
+
if (typeof b !== "function" && b !== null)
|
|
12317
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12318
|
+
extendStatics(d, b);
|
|
12319
|
+
function __() { this.constructor = d; }
|
|
12320
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12321
|
+
};
|
|
12322
|
+
})();
|
|
12323
|
+
var __values$7 = (window && window.__values) || function(o) {
|
|
12324
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
12325
|
+
if (m) return m.call(o);
|
|
12326
|
+
if (o && typeof o.length === "number") return {
|
|
12327
|
+
next: function () {
|
|
12328
|
+
if (o && i >= o.length) o = void 0;
|
|
12329
|
+
return { value: o && o[i++], done: !o };
|
|
12330
|
+
}
|
|
12331
|
+
};
|
|
12332
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
12333
|
+
};
|
|
12334
|
+
var __read$3 = (window && window.__read) || function (o, n) {
|
|
12335
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
12336
|
+
if (!m) return o;
|
|
12337
|
+
var i = m.call(o), r, ar = [], e;
|
|
12338
|
+
try {
|
|
12339
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
12340
|
+
}
|
|
12341
|
+
catch (error) { e = { error: error }; }
|
|
12342
|
+
finally {
|
|
12343
|
+
try {
|
|
12344
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
12345
|
+
}
|
|
12346
|
+
finally { if (e) throw e.error; }
|
|
12347
|
+
}
|
|
12348
|
+
return ar;
|
|
12349
|
+
};
|
|
12350
|
+
var __spreadArray = (window && window.__spreadArray) || function (to, from) {
|
|
12351
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
12352
|
+
to[j] = from[i];
|
|
12353
|
+
return to;
|
|
12354
|
+
};
|
|
11659
12355
|
/**
|
|
11660
12356
|
* Options used when rendering Polygon and MultiPolygon objects in a PolygonLayer.
|
|
11661
12357
|
*/
|
|
11662
12358
|
var PolygonLayerOptions = /** @class */ (function (_super) {
|
|
11663
|
-
__extends(PolygonLayerOptions, _super);
|
|
12359
|
+
__extends$D(PolygonLayerOptions, _super);
|
|
11664
12360
|
function PolygonLayerOptions() {
|
|
11665
12361
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
11666
12362
|
/**
|
|
@@ -11704,7 +12400,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11704
12400
|
var isNewColorSet = false;
|
|
11705
12401
|
var isNewPatternSet = false;
|
|
11706
12402
|
try {
|
|
11707
|
-
for (var valueList_1 = __values(valueList), valueList_1_1 = valueList_1.next(); !valueList_1_1.done; valueList_1_1 = valueList_1.next()) {
|
|
12403
|
+
for (var valueList_1 = __values$7(valueList), valueList_1_1 = valueList_1.next(); !valueList_1_1.done; valueList_1_1 = valueList_1.next()) {
|
|
11708
12404
|
var value = valueList_1_1.value;
|
|
11709
12405
|
if (value) {
|
|
11710
12406
|
if (value.hasOwnProperty("fillColor")) {
|
|
@@ -11726,7 +12422,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11726
12422
|
finally { if (e_1) throw e_1.error; }
|
|
11727
12423
|
}
|
|
11728
12424
|
// Then execute the standard merge behavior.
|
|
11729
|
-
var merged = _super.prototype.merge.apply(this,
|
|
12425
|
+
var merged = _super.prototype.merge.apply(this, __spreadArray([], __read$3(valueList)));
|
|
11730
12426
|
if (isNewColorSet) {
|
|
11731
12427
|
merged.fillPattern = undefined;
|
|
11732
12428
|
}
|
|
@@ -11738,11 +12434,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11738
12434
|
return PolygonLayerOptions;
|
|
11739
12435
|
}(LayerOptions));
|
|
11740
12436
|
|
|
12437
|
+
var __extends$E = (window && window.__extends) || (function () {
|
|
12438
|
+
var extendStatics = function (d, b) {
|
|
12439
|
+
extendStatics = Object.setPrototypeOf ||
|
|
12440
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
12441
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
12442
|
+
return extendStatics(d, b);
|
|
12443
|
+
};
|
|
12444
|
+
return function (d, b) {
|
|
12445
|
+
if (typeof b !== "function" && b !== null)
|
|
12446
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12447
|
+
extendStatics(d, b);
|
|
12448
|
+
function __() { this.constructor = d; }
|
|
12449
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12450
|
+
};
|
|
12451
|
+
})();
|
|
11741
12452
|
/**
|
|
11742
12453
|
* Renders filled Polygon and MultiPolygon objects on the map.
|
|
11743
12454
|
*/
|
|
11744
12455
|
var PolygonLayer = /** @class */ (function (_super) {
|
|
11745
|
-
__extends(PolygonLayer, _super);
|
|
12456
|
+
__extends$E(PolygonLayer, _super);
|
|
11746
12457
|
/**
|
|
11747
12458
|
* Constructs a new PolygonLayer.
|
|
11748
12459
|
* @param source The id or instance of a data source which the layer will render.
|
|
@@ -11848,11 +12559,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11848
12559
|
return PolygonLayer;
|
|
11849
12560
|
}(Layer));
|
|
11850
12561
|
|
|
12562
|
+
var __extends$F = (window && window.__extends) || (function () {
|
|
12563
|
+
var extendStatics = function (d, b) {
|
|
12564
|
+
extendStatics = Object.setPrototypeOf ||
|
|
12565
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
12566
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
12567
|
+
return extendStatics(d, b);
|
|
12568
|
+
};
|
|
12569
|
+
return function (d, b) {
|
|
12570
|
+
if (typeof b !== "function" && b !== null)
|
|
12571
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12572
|
+
extendStatics(d, b);
|
|
12573
|
+
function __() { this.constructor = d; }
|
|
12574
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12575
|
+
};
|
|
12576
|
+
})();
|
|
11851
12577
|
/**
|
|
11852
12578
|
* Options used to customize the icons in a SymbolLayer
|
|
11853
12579
|
*/
|
|
11854
12580
|
var IconOptions = /** @class */ (function (_super) {
|
|
11855
|
-
__extends(IconOptions, _super);
|
|
12581
|
+
__extends$F(IconOptions, _super);
|
|
11856
12582
|
function IconOptions() {
|
|
11857
12583
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
11858
12584
|
/**
|
|
@@ -11962,11 +12688,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11962
12688
|
return IconOptions;
|
|
11963
12689
|
}(Options));
|
|
11964
12690
|
|
|
12691
|
+
var __extends$G = (window && window.__extends) || (function () {
|
|
12692
|
+
var extendStatics = function (d, b) {
|
|
12693
|
+
extendStatics = Object.setPrototypeOf ||
|
|
12694
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
12695
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
12696
|
+
return extendStatics(d, b);
|
|
12697
|
+
};
|
|
12698
|
+
return function (d, b) {
|
|
12699
|
+
if (typeof b !== "function" && b !== null)
|
|
12700
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12701
|
+
extendStatics(d, b);
|
|
12702
|
+
function __() { this.constructor = d; }
|
|
12703
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12704
|
+
};
|
|
12705
|
+
})();
|
|
11965
12706
|
/**
|
|
11966
12707
|
* Options used to customize the text in a SymbolLayer
|
|
11967
12708
|
*/
|
|
11968
12709
|
var TextOptions = /** @class */ (function (_super) {
|
|
11969
|
-
__extends(TextOptions, _super);
|
|
12710
|
+
__extends$G(TextOptions, _super);
|
|
11970
12711
|
function TextOptions() {
|
|
11971
12712
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
11972
12713
|
/**
|
|
@@ -12120,11 +12861,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
12120
12861
|
return TextOptions;
|
|
12121
12862
|
}(Options));
|
|
12122
12863
|
|
|
12864
|
+
var __extends$H = (window && window.__extends) || (function () {
|
|
12865
|
+
var extendStatics = function (d, b) {
|
|
12866
|
+
extendStatics = Object.setPrototypeOf ||
|
|
12867
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
12868
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
12869
|
+
return extendStatics(d, b);
|
|
12870
|
+
};
|
|
12871
|
+
return function (d, b) {
|
|
12872
|
+
if (typeof b !== "function" && b !== null)
|
|
12873
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12874
|
+
extendStatics(d, b);
|
|
12875
|
+
function __() { this.constructor = d; }
|
|
12876
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12877
|
+
};
|
|
12878
|
+
})();
|
|
12123
12879
|
/**
|
|
12124
12880
|
* Options used when rendering geometries in a SymbolLayer.
|
|
12125
12881
|
*/
|
|
12126
12882
|
var SymbolLayerOptions = /** @class */ (function (_super) {
|
|
12127
|
-
__extends(SymbolLayerOptions, _super);
|
|
12883
|
+
__extends$H(SymbolLayerOptions, _super);
|
|
12128
12884
|
function SymbolLayerOptions() {
|
|
12129
12885
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
12130
12886
|
/**
|
|
@@ -12182,12 +12938,38 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
12182
12938
|
return SymbolLayerOptions;
|
|
12183
12939
|
}(LayerOptions));
|
|
12184
12940
|
|
|
12941
|
+
var __extends$I = (window && window.__extends) || (function () {
|
|
12942
|
+
var extendStatics = function (d, b) {
|
|
12943
|
+
extendStatics = Object.setPrototypeOf ||
|
|
12944
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
12945
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
12946
|
+
return extendStatics(d, b);
|
|
12947
|
+
};
|
|
12948
|
+
return function (d, b) {
|
|
12949
|
+
if (typeof b !== "function" && b !== null)
|
|
12950
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12951
|
+
extendStatics(d, b);
|
|
12952
|
+
function __() { this.constructor = d; }
|
|
12953
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12954
|
+
};
|
|
12955
|
+
})();
|
|
12956
|
+
var __assign$2 = (window && window.__assign) || function () {
|
|
12957
|
+
__assign$2 = Object.assign || function(t) {
|
|
12958
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
12959
|
+
s = arguments[i];
|
|
12960
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
12961
|
+
t[p] = s[p];
|
|
12962
|
+
}
|
|
12963
|
+
return t;
|
|
12964
|
+
};
|
|
12965
|
+
return __assign$2.apply(this, arguments);
|
|
12966
|
+
};
|
|
12185
12967
|
/**
|
|
12186
12968
|
* Renders point based data as symbols on the map using text and/or icons.
|
|
12187
12969
|
* Symbols can also be created for line and polygon data as well.
|
|
12188
12970
|
*/
|
|
12189
12971
|
var SymbolLayer = /** @class */ (function (_super) {
|
|
12190
|
-
__extends(SymbolLayer, _super);
|
|
12972
|
+
__extends$I(SymbolLayer, _super);
|
|
12191
12973
|
/**
|
|
12192
12974
|
* Constructs a new SymbolLayer.
|
|
12193
12975
|
* @param source The id or instance of a data source which the layer will render.
|
|
@@ -12281,9 +13063,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
12281
13063
|
* @internal
|
|
12282
13064
|
*/
|
|
12283
13065
|
SymbolLayer.prototype._buildLayers = function () {
|
|
12284
|
-
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 ?
|
|
13066
|
+
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 ?
|
|
12285
13067
|
this.options.source.getId() :
|
|
12286
|
-
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,
|
|
13068
|
+
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,
|
|
12287
13069
|
// Text options.
|
|
12288
13070
|
"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,
|
|
12289
13071
|
// Icon options.
|
|
@@ -12329,11 +13111,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
12329
13111
|
return SymbolLayer;
|
|
12330
13112
|
}(Layer));
|
|
12331
13113
|
|
|
13114
|
+
var __extends$J = (window && window.__extends) || (function () {
|
|
13115
|
+
var extendStatics = function (d, b) {
|
|
13116
|
+
extendStatics = Object.setPrototypeOf ||
|
|
13117
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
13118
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
13119
|
+
return extendStatics(d, b);
|
|
13120
|
+
};
|
|
13121
|
+
return function (d, b) {
|
|
13122
|
+
if (typeof b !== "function" && b !== null)
|
|
13123
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
13124
|
+
extendStatics(d, b);
|
|
13125
|
+
function __() { this.constructor = d; }
|
|
13126
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13127
|
+
};
|
|
13128
|
+
})();
|
|
12332
13129
|
/**
|
|
12333
13130
|
* Options used when rendering raster tiled images in a TileLayer.
|
|
12334
13131
|
*/
|
|
12335
13132
|
var TileLayerOptions = /** @class */ (function (_super) {
|
|
12336
|
-
__extends(TileLayerOptions, _super);
|
|
13133
|
+
__extends$J(TileLayerOptions, _super);
|
|
12337
13134
|
function TileLayerOptions() {
|
|
12338
13135
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
12339
13136
|
/**
|
|
@@ -12389,11 +13186,48 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
12389
13186
|
return TileLayerOptions;
|
|
12390
13187
|
}(MediaLayerOptions));
|
|
12391
13188
|
|
|
13189
|
+
var __extends$K = (window && window.__extends) || (function () {
|
|
13190
|
+
var extendStatics = function (d, b) {
|
|
13191
|
+
extendStatics = Object.setPrototypeOf ||
|
|
13192
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
13193
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
13194
|
+
return extendStatics(d, b);
|
|
13195
|
+
};
|
|
13196
|
+
return function (d, b) {
|
|
13197
|
+
if (typeof b !== "function" && b !== null)
|
|
13198
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
13199
|
+
extendStatics(d, b);
|
|
13200
|
+
function __() { this.constructor = d; }
|
|
13201
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13202
|
+
};
|
|
13203
|
+
})();
|
|
13204
|
+
var __assign$3 = (window && window.__assign) || function () {
|
|
13205
|
+
__assign$3 = Object.assign || function(t) {
|
|
13206
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
13207
|
+
s = arguments[i];
|
|
13208
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
13209
|
+
t[p] = s[p];
|
|
13210
|
+
}
|
|
13211
|
+
return t;
|
|
13212
|
+
};
|
|
13213
|
+
return __assign$3.apply(this, arguments);
|
|
13214
|
+
};
|
|
13215
|
+
var __values$8 = (window && window.__values) || function(o) {
|
|
13216
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
13217
|
+
if (m) return m.call(o);
|
|
13218
|
+
if (o && typeof o.length === "number") return {
|
|
13219
|
+
next: function () {
|
|
13220
|
+
if (o && i >= o.length) o = void 0;
|
|
13221
|
+
return { value: o && o[i++], done: !o };
|
|
13222
|
+
}
|
|
13223
|
+
};
|
|
13224
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
13225
|
+
};
|
|
12392
13226
|
/**
|
|
12393
13227
|
* Renders raster tiled images on top of the map tiles.
|
|
12394
13228
|
*/
|
|
12395
13229
|
var TileLayer = /** @class */ (function (_super) {
|
|
12396
|
-
__extends(TileLayer, _super);
|
|
13230
|
+
__extends$K(TileLayer, _super);
|
|
12397
13231
|
/**
|
|
12398
13232
|
* Constructs a new TileLayer.
|
|
12399
13233
|
* @param options The options for the tile layer.
|
|
@@ -12455,7 +13289,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
12455
13289
|
* @internal
|
|
12456
13290
|
*/
|
|
12457
13291
|
TileLayer.prototype._buildLayers = function () {
|
|
12458
|
-
var layer = __assign(__assign({ id: this.id, type: "raster", source: this._getSourceId(), layout: {
|
|
13292
|
+
var layer = __assign$3(__assign$3({ id: this.id, type: "raster", source: this._getSourceId(), layout: {
|
|
12459
13293
|
visibility: this.options.visible ? "visible" : "none"
|
|
12460
13294
|
}, paint: {
|
|
12461
13295
|
"raster-contrast": this.options.contrast,
|
|
@@ -12492,7 +13326,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
12492
13326
|
if (this.options.subdomains && this.options.subdomains.length > 0) {
|
|
12493
13327
|
var urls = [];
|
|
12494
13328
|
try {
|
|
12495
|
-
for (var _b = __values(this.options.subdomains), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
13329
|
+
for (var _b = __values$8(this.options.subdomains), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
12496
13330
|
var subdomain = _c.value;
|
|
12497
13331
|
urls.push(this.options.tileUrl.replace(/{subdomain}/g, subdomain));
|
|
12498
13332
|
}
|
|
@@ -12524,7 +13358,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
12524
13358
|
};
|
|
12525
13359
|
}
|
|
12526
13360
|
}
|
|
12527
|
-
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 }));
|
|
13361
|
+
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 }));
|
|
12528
13362
|
};
|
|
12529
13363
|
/**
|
|
12530
13364
|
* Gets the id of the source to be paired with this layer.
|
|
@@ -12536,11 +13370,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
12536
13370
|
return TileLayer;
|
|
12537
13371
|
}(SourceBuildingLayer));
|
|
12538
13372
|
|
|
13373
|
+
var __extends$L = (window && window.__extends) || (function () {
|
|
13374
|
+
var extendStatics = function (d, b) {
|
|
13375
|
+
extendStatics = Object.setPrototypeOf ||
|
|
13376
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
13377
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
13378
|
+
return extendStatics(d, b);
|
|
13379
|
+
};
|
|
13380
|
+
return function (d, b) {
|
|
13381
|
+
if (typeof b !== "function" && b !== null)
|
|
13382
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
13383
|
+
extendStatics(d, b);
|
|
13384
|
+
function __() { this.constructor = d; }
|
|
13385
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13386
|
+
};
|
|
13387
|
+
})();
|
|
12539
13388
|
/**
|
|
12540
13389
|
* Options used to render graphics in a WebGLLayer.
|
|
12541
13390
|
*/
|
|
12542
13391
|
var WebGLLayerOptions = /** @class */ (function (_super) {
|
|
12543
|
-
__extends(WebGLLayerOptions, _super);
|
|
13392
|
+
__extends$L(WebGLLayerOptions, _super);
|
|
12544
13393
|
function WebGLLayerOptions() {
|
|
12545
13394
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
12546
13395
|
/**
|
|
@@ -12552,11 +13401,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
12552
13401
|
return WebGLLayerOptions;
|
|
12553
13402
|
}(LayerOptions));
|
|
12554
13403
|
|
|
13404
|
+
var __extends$M = (window && window.__extends) || (function () {
|
|
13405
|
+
var extendStatics = function (d, b) {
|
|
13406
|
+
extendStatics = Object.setPrototypeOf ||
|
|
13407
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
13408
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
13409
|
+
return extendStatics(d, b);
|
|
13410
|
+
};
|
|
13411
|
+
return function (d, b) {
|
|
13412
|
+
if (typeof b !== "function" && b !== null)
|
|
13413
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
13414
|
+
extendStatics(d, b);
|
|
13415
|
+
function __() { this.constructor = d; }
|
|
13416
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13417
|
+
};
|
|
13418
|
+
})();
|
|
12555
13419
|
/**
|
|
12556
13420
|
* Enables custom rendering logic with access to the WebGL context of the map.
|
|
12557
13421
|
*/
|
|
12558
13422
|
var WebGLLayer = /** @class */ (function (_super) {
|
|
12559
|
-
__extends(WebGLLayer, _super);
|
|
13423
|
+
__extends$M(WebGLLayer, _super);
|
|
12560
13424
|
/**
|
|
12561
13425
|
* Constructs a new WebGLLayer.
|
|
12562
13426
|
* @param id The id of the layer. If not specified a random one will be generated.
|
|
@@ -12574,9 +13438,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
12574
13438
|
// Add this layer again if the layer was removed by mapbox after a style change.
|
|
12575
13439
|
if (!_this.map._getMap().getLayer(_this.id)) {
|
|
12576
13440
|
var map = _this.map;
|
|
12577
|
-
var
|
|
13441
|
+
var before = (_a = _this.map.layers._getUserLayers().find(function (l) { return l.layer.getId() == _this.id; })) === null || _a === void 0 ? void 0 : _a.before;
|
|
12578
13442
|
map.layers.remove(_this);
|
|
12579
|
-
map.layers.add(_this,
|
|
13443
|
+
map.layers.add(_this, before);
|
|
12580
13444
|
}
|
|
12581
13445
|
};
|
|
12582
13446
|
_this.options = new WebGLLayerOptions().merge(cloneDeepWith_1(options, WebGLLayerOptions._cloneCustomizer));
|
|
@@ -12786,11 +13650,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
12786
13650
|
|
|
12787
13651
|
var isElement_1 = isElement;
|
|
12788
13652
|
|
|
13653
|
+
var __extends$N = (window && window.__extends) || (function () {
|
|
13654
|
+
var extendStatics = function (d, b) {
|
|
13655
|
+
extendStatics = Object.setPrototypeOf ||
|
|
13656
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
13657
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
13658
|
+
return extendStatics(d, b);
|
|
13659
|
+
};
|
|
13660
|
+
return function (d, b) {
|
|
13661
|
+
if (typeof b !== "function" && b !== null)
|
|
13662
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
13663
|
+
extendStatics(d, b);
|
|
13664
|
+
function __() { this.constructor = d; }
|
|
13665
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13666
|
+
};
|
|
13667
|
+
})();
|
|
12789
13668
|
/**
|
|
12790
13669
|
* The options for a popup.
|
|
12791
13670
|
*/
|
|
12792
13671
|
var PopupOptions = /** @class */ (function (_super) {
|
|
12793
|
-
__extends(PopupOptions, _super);
|
|
13672
|
+
__extends$N(PopupOptions, _super);
|
|
12794
13673
|
function PopupOptions() {
|
|
12795
13674
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
12796
13675
|
/**
|
|
@@ -12859,11 +13738,42 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
12859
13738
|
return PopupOptions;
|
|
12860
13739
|
}(Options));
|
|
12861
13740
|
|
|
13741
|
+
var __extends$O = (window && window.__extends) || (function () {
|
|
13742
|
+
var extendStatics = function (d, b) {
|
|
13743
|
+
extendStatics = Object.setPrototypeOf ||
|
|
13744
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
13745
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
13746
|
+
return extendStatics(d, b);
|
|
13747
|
+
};
|
|
13748
|
+
return function (d, b) {
|
|
13749
|
+
if (typeof b !== "function" && b !== null)
|
|
13750
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
13751
|
+
extendStatics(d, b);
|
|
13752
|
+
function __() { this.constructor = d; }
|
|
13753
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13754
|
+
};
|
|
13755
|
+
})();
|
|
13756
|
+
var __read$4 = (window && window.__read) || function (o, n) {
|
|
13757
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
13758
|
+
if (!m) return o;
|
|
13759
|
+
var i = m.call(o), r, ar = [], e;
|
|
13760
|
+
try {
|
|
13761
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
13762
|
+
}
|
|
13763
|
+
catch (error) { e = { error: error }; }
|
|
13764
|
+
finally {
|
|
13765
|
+
try {
|
|
13766
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
13767
|
+
}
|
|
13768
|
+
finally { if (e) throw e.error; }
|
|
13769
|
+
}
|
|
13770
|
+
return ar;
|
|
13771
|
+
};
|
|
12862
13772
|
/**
|
|
12863
13773
|
* An information window anchored at a specified position on a map.
|
|
12864
13774
|
*/
|
|
12865
13775
|
var Popup = /** @class */ (function (_super) {
|
|
12866
|
-
__extends(Popup, _super);
|
|
13776
|
+
__extends$O(Popup, _super);
|
|
12867
13777
|
/**
|
|
12868
13778
|
* Constructs a Popup object and initializes it with the specified options.
|
|
12869
13779
|
* @param options The options for the popup.
|
|
@@ -12955,7 +13865,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
12955
13865
|
*/
|
|
12956
13866
|
_this._onDown = function (event) {
|
|
12957
13867
|
_this.map.popups._addDraggedPopup(_this);
|
|
12958
|
-
var _a = __read(_this.map.positionsToPixels([_this.options.position]), 1), anchorPixel = _a[0];
|
|
13868
|
+
var _a = __read$4(_this.map.positionsToPixels([_this.options.position]), 1), anchorPixel = _a[0];
|
|
12959
13869
|
if (event.type === "mousedown") {
|
|
12960
13870
|
event = event;
|
|
12961
13871
|
_this.dragOffset = [
|
|
@@ -13119,7 +14029,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
13119
14029
|
pixel[0] + this.dragOffset[0],
|
|
13120
14030
|
pixel[1] + this.dragOffset[1]
|
|
13121
14031
|
];
|
|
13122
|
-
var _a = __read(this.map.pixelsToPositions([anchorPixel]), 1), anchorPos = _a[0];
|
|
14032
|
+
var _a = __read$4(this.map.pixelsToPositions([anchorPixel]), 1), anchorPos = _a[0];
|
|
13123
14033
|
this.options.position = anchorPos;
|
|
13124
14034
|
this.marker.setLngLat(this.options.position);
|
|
13125
14035
|
this._invokeEvent("drag", { type: "drag", target: this });
|
|
@@ -13273,7 +14183,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
13273
14183
|
posY = pt.y;
|
|
13274
14184
|
}
|
|
13275
14185
|
else {
|
|
13276
|
-
var _a = __read(map.positionsToPixels([options.position]), 1), _b = __read(_a[0], 2), x = _b[0], y = _b[1];
|
|
14186
|
+
var _a = __read$4(map.positionsToPixels([options.position]), 1), _b = __read$4(_a[0], 2), x = _b[0], y = _b[1];
|
|
13277
14187
|
posX = x;
|
|
13278
14188
|
posY = y;
|
|
13279
14189
|
}
|
|
@@ -13334,11 +14244,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
13334
14244
|
return Popup;
|
|
13335
14245
|
}(EventEmitter));
|
|
13336
14246
|
|
|
14247
|
+
var __extends$P = (window && window.__extends) || (function () {
|
|
14248
|
+
var extendStatics = function (d, b) {
|
|
14249
|
+
extendStatics = Object.setPrototypeOf ||
|
|
14250
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
14251
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
14252
|
+
return extendStatics(d, b);
|
|
14253
|
+
};
|
|
14254
|
+
return function (d, b) {
|
|
14255
|
+
if (typeof b !== "function" && b !== null)
|
|
14256
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
14257
|
+
extendStatics(d, b);
|
|
14258
|
+
function __() { this.constructor = d; }
|
|
14259
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14260
|
+
};
|
|
14261
|
+
})();
|
|
13337
14262
|
/**
|
|
13338
14263
|
* Options for rendering an HtmlMarker object
|
|
13339
14264
|
*/
|
|
13340
14265
|
var HtmlMarkerOptions = /** @class */ (function (_super) {
|
|
13341
|
-
__extends(HtmlMarkerOptions, _super);
|
|
14266
|
+
__extends$P(HtmlMarkerOptions, _super);
|
|
13342
14267
|
function HtmlMarkerOptions() {
|
|
13343
14268
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
13344
14269
|
/**
|
|
@@ -13416,11 +14341,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
13416
14341
|
return HtmlMarkerOptions;
|
|
13417
14342
|
}(Options));
|
|
13418
14343
|
|
|
13419
|
-
|
|
14344
|
+
var __extends$Q = (window && window.__extends) || (function () {
|
|
14345
|
+
var extendStatics = function (d, b) {
|
|
14346
|
+
extendStatics = Object.setPrototypeOf ||
|
|
14347
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
14348
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
14349
|
+
return extendStatics(d, b);
|
|
14350
|
+
};
|
|
14351
|
+
return function (d, b) {
|
|
14352
|
+
if (typeof b !== "function" && b !== null)
|
|
14353
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
14354
|
+
extendStatics(d, b);
|
|
14355
|
+
function __() { this.constructor = d; }
|
|
14356
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14357
|
+
};
|
|
14358
|
+
})();
|
|
14359
|
+
/**
|
|
13420
14360
|
* This class wraps an HTML element that can be displayed on the map.
|
|
13421
14361
|
*/
|
|
13422
14362
|
var HtmlMarker = /** @class */ (function (_super) {
|
|
13423
|
-
__extends(HtmlMarker, _super);
|
|
14363
|
+
__extends$Q(HtmlMarker, _super);
|
|
13424
14364
|
/**
|
|
13425
14365
|
* Constructs a new HtmlMarker.
|
|
13426
14366
|
* @param options The options for the HtmlMarker.
|
|
@@ -14112,6 +15052,42 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
14112
15052
|
return UserAgent;
|
|
14113
15053
|
}());
|
|
14114
15054
|
|
|
15055
|
+
var __extends$R = (window && window.__extends) || (function () {
|
|
15056
|
+
var extendStatics = function (d, b) {
|
|
15057
|
+
extendStatics = Object.setPrototypeOf ||
|
|
15058
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
15059
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
15060
|
+
return extendStatics(d, b);
|
|
15061
|
+
};
|
|
15062
|
+
return function (d, b) {
|
|
15063
|
+
if (typeof b !== "function" && b !== null)
|
|
15064
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
15065
|
+
extendStatics(d, b);
|
|
15066
|
+
function __() { this.constructor = d; }
|
|
15067
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15068
|
+
};
|
|
15069
|
+
})();
|
|
15070
|
+
var __read$5 = (window && window.__read) || function (o, n) {
|
|
15071
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
15072
|
+
if (!m) return o;
|
|
15073
|
+
var i = m.call(o), r, ar = [], e;
|
|
15074
|
+
try {
|
|
15075
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
15076
|
+
}
|
|
15077
|
+
catch (error) { e = { error: error }; }
|
|
15078
|
+
finally {
|
|
15079
|
+
try {
|
|
15080
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
15081
|
+
}
|
|
15082
|
+
finally { if (e) throw e.error; }
|
|
15083
|
+
}
|
|
15084
|
+
return ar;
|
|
15085
|
+
};
|
|
15086
|
+
var __spreadArray$1 = (window && window.__spreadArray) || function (to, from) {
|
|
15087
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
15088
|
+
to[j] = from[i];
|
|
15089
|
+
return to;
|
|
15090
|
+
};
|
|
14115
15091
|
(function (AuthenticationType) {
|
|
14116
15092
|
/**
|
|
14117
15093
|
* The subscription key authentication mechanism.
|
|
@@ -14142,7 +15118,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
14142
15118
|
* Options for specifying how the map control should authenticate with the Azure Maps services.
|
|
14143
15119
|
*/
|
|
14144
15120
|
var AuthenticationOptions = /** @class */ (function (_super) {
|
|
14145
|
-
__extends(AuthenticationOptions, _super);
|
|
15121
|
+
__extends$R(AuthenticationOptions, _super);
|
|
14146
15122
|
function AuthenticationOptions() {
|
|
14147
15123
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
14148
15124
|
/**
|
|
@@ -14244,7 +15220,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
14244
15220
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
14245
15221
|
valueList[_i] = arguments[_i];
|
|
14246
15222
|
}
|
|
14247
|
-
var merged = _super.prototype.merge.apply(this,
|
|
15223
|
+
var merged = _super.prototype.merge.apply(this, __spreadArray$1([], __read$5(valueList)));
|
|
14248
15224
|
if (merged.authType === exports.AuthenticationType.subscriptionKey) {
|
|
14249
15225
|
merged.authContext = merged.aadAppId = merged.getToken = undefined;
|
|
14250
15226
|
}
|
|
@@ -14743,11 +15719,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
14743
15719
|
return Media;
|
|
14744
15720
|
}());
|
|
14745
15721
|
|
|
15722
|
+
var __extends$S = (window && window.__extends) || (function () {
|
|
15723
|
+
var extendStatics = function (d, b) {
|
|
15724
|
+
extendStatics = Object.setPrototypeOf ||
|
|
15725
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
15726
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
15727
|
+
return extendStatics(d, b);
|
|
15728
|
+
};
|
|
15729
|
+
return function (d, b) {
|
|
15730
|
+
if (typeof b !== "function" && b !== null)
|
|
15731
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
15732
|
+
extendStatics(d, b);
|
|
15733
|
+
function __() { this.constructor = d; }
|
|
15734
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15735
|
+
};
|
|
15736
|
+
})();
|
|
14746
15737
|
/**
|
|
14747
15738
|
* The options for a CopyrightControl object.
|
|
14748
15739
|
*/
|
|
14749
15740
|
var CopyrightControlOptions = /** @class */ (function (_super) {
|
|
14750
|
-
__extends(CopyrightControlOptions, _super);
|
|
15741
|
+
__extends$S(CopyrightControlOptions, _super);
|
|
14751
15742
|
function CopyrightControlOptions() {
|
|
14752
15743
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
14753
15744
|
/**
|
|
@@ -14776,11 +15767,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
14776
15767
|
return CopyrightControlOptions;
|
|
14777
15768
|
}(Options));
|
|
14778
15769
|
|
|
15770
|
+
var __extends$T = (window && window.__extends) || (function () {
|
|
15771
|
+
var extendStatics = function (d, b) {
|
|
15772
|
+
extendStatics = Object.setPrototypeOf ||
|
|
15773
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
15774
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
15775
|
+
return extendStatics(d, b);
|
|
15776
|
+
};
|
|
15777
|
+
return function (d, b) {
|
|
15778
|
+
if (typeof b !== "function" && b !== null)
|
|
15779
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
15780
|
+
extendStatics(d, b);
|
|
15781
|
+
function __() { this.constructor = d; }
|
|
15782
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15783
|
+
};
|
|
15784
|
+
})();
|
|
14779
15785
|
/**
|
|
14780
15786
|
* @private
|
|
14781
15787
|
*/
|
|
14782
15788
|
var CopyrightControl = /** @class */ (function (_super) {
|
|
14783
|
-
__extends(CopyrightControl, _super);
|
|
15789
|
+
__extends$T(CopyrightControl, _super);
|
|
14784
15790
|
function CopyrightControl(options) {
|
|
14785
15791
|
var _this = _super.call(this) || this;
|
|
14786
15792
|
_this.textAttribution = function (options) {
|
|
@@ -14968,6 +15974,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
14968
15974
|
return ErrorHandler;
|
|
14969
15975
|
}());
|
|
14970
15976
|
|
|
15977
|
+
var __assign$4 = (window && window.__assign) || function () {
|
|
15978
|
+
__assign$4 = Object.assign || function(t) {
|
|
15979
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
15980
|
+
s = arguments[i];
|
|
15981
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
15982
|
+
t[p] = s[p];
|
|
15983
|
+
}
|
|
15984
|
+
return t;
|
|
15985
|
+
};
|
|
15986
|
+
return __assign$4.apply(this, arguments);
|
|
15987
|
+
};
|
|
14971
15988
|
/**
|
|
14972
15989
|
* @private
|
|
14973
15990
|
*/
|
|
@@ -14981,7 +15998,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
14981
15998
|
var urlOptions = {
|
|
14982
15999
|
domain: domain,
|
|
14983
16000
|
path: "search/address/reverse/json",
|
|
14984
|
-
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 }))
|
|
16001
|
+
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 }))
|
|
14985
16002
|
};
|
|
14986
16003
|
return new Url(((_a = this.map.authentication) === null || _a === void 0 ? void 0 : _a.signRequest(urlOptions)) || urlOptions).get();
|
|
14987
16004
|
};
|
|
@@ -15107,6 +16124,58 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
15107
16124
|
return MapLabelCache;
|
|
15108
16125
|
}());
|
|
15109
16126
|
|
|
16127
|
+
var __awaiter$1 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16128
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16129
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16130
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
16131
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
16132
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
16133
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
16134
|
+
});
|
|
16135
|
+
};
|
|
16136
|
+
var __generator$1 = (window && window.__generator) || function (thisArg, body) {
|
|
16137
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
16138
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
16139
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
16140
|
+
function step(op) {
|
|
16141
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
16142
|
+
while (_) try {
|
|
16143
|
+
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;
|
|
16144
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
16145
|
+
switch (op[0]) {
|
|
16146
|
+
case 0: case 1: t = op; break;
|
|
16147
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
16148
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
16149
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
16150
|
+
default:
|
|
16151
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
16152
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
16153
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
16154
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
16155
|
+
if (t[2]) _.ops.pop();
|
|
16156
|
+
_.trys.pop(); continue;
|
|
16157
|
+
}
|
|
16158
|
+
op = body.call(thisArg, _);
|
|
16159
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
16160
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
16161
|
+
}
|
|
16162
|
+
};
|
|
16163
|
+
var __read$6 = (window && window.__read) || function (o, n) {
|
|
16164
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
16165
|
+
if (!m) return o;
|
|
16166
|
+
var i = m.call(o), r, ar = [], e;
|
|
16167
|
+
try {
|
|
16168
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
16169
|
+
}
|
|
16170
|
+
catch (error) { e = { error: error }; }
|
|
16171
|
+
finally {
|
|
16172
|
+
try {
|
|
16173
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
16174
|
+
}
|
|
16175
|
+
finally { if (e) throw e.error; }
|
|
16176
|
+
}
|
|
16177
|
+
return ar;
|
|
16178
|
+
};
|
|
15110
16179
|
/**
|
|
15111
16180
|
* This class analyizes the current view of a map and provides a description for use by accessibilty tools.
|
|
15112
16181
|
* TODO: Use services when in GeoPol regions. (Kasmir) or when user region sensitive.
|
|
@@ -15345,9 +16414,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
15345
16414
|
// Flag indicating if detailed descriptions which include zoom, lat/lon information should be returned.
|
|
15346
16415
|
this._returnDetailedDescriptions = false;
|
|
15347
16416
|
/** Event handler for shortcuts. */
|
|
15348
|
-
this._shortcutListener = function (e) { return __awaiter(_this, void 0, void 0, function () {
|
|
16417
|
+
this._shortcutListener = function (e) { return __awaiter$1(_this, void 0, void 0, function () {
|
|
15349
16418
|
var cam, styleOps, lang, style, camDesc;
|
|
15350
|
-
return __generator(this, function (_a) {
|
|
16419
|
+
return __generator$1(this, function (_a) {
|
|
15351
16420
|
switch (_a.label) {
|
|
15352
16421
|
case 0:
|
|
15353
16422
|
if (!(e.altKey && e.ctrlKey && e.keyCode === 68)) return [3 /*break*/, 2];
|
|
@@ -15415,9 +16484,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
15415
16484
|
/** Event handler for when the mouse or touch goes down */
|
|
15416
16485
|
this._onPointerDown = function (event) {
|
|
15417
16486
|
_this._lastPointerPos = _this._getEventPos(event);
|
|
15418
|
-
_this._pointerTimeout = setTimeout(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
16487
|
+
_this._pointerTimeout = setTimeout(function () { return __awaiter$1(_this, void 0, void 0, function () {
|
|
15419
16488
|
var styleOps, lang, style, cam, loc;
|
|
15420
|
-
return __generator(this, function (_a) {
|
|
16489
|
+
return __generator$1(this, function (_a) {
|
|
15421
16490
|
switch (_a.label) {
|
|
15422
16491
|
case 0:
|
|
15423
16492
|
styleOps = this._map.getStyle();
|
|
@@ -15475,9 +16544,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
15475
16544
|
delete _this._rotateTimeout;
|
|
15476
16545
|
};
|
|
15477
16546
|
/** Called when the map has finished changing styles and is ready to create a new description */
|
|
15478
|
-
this._updateStyle = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
16547
|
+
this._updateStyle = function () { return __awaiter$1(_this, void 0, void 0, function () {
|
|
15479
16548
|
var cam, styleOps, lang, style, camDesc;
|
|
15480
|
-
return __generator(this, function (_a) {
|
|
16549
|
+
return __generator$1(this, function (_a) {
|
|
15481
16550
|
switch (_a.label) {
|
|
15482
16551
|
case 0:
|
|
15483
16552
|
cam = this._map.getCamera();
|
|
@@ -15529,9 +16598,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
15529
16598
|
delete _this._moveTimeout;
|
|
15530
16599
|
}
|
|
15531
16600
|
// Send the new description to the map.
|
|
15532
|
-
_this._moveTimeout = setTimeout(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
16601
|
+
_this._moveTimeout = setTimeout(function () { return __awaiter$1(_this, void 0, void 0, function () {
|
|
15533
16602
|
var loc;
|
|
15534
|
-
return __generator(this, function (_a) {
|
|
16603
|
+
return __generator$1(this, function (_a) {
|
|
15535
16604
|
switch (_a.label) {
|
|
15536
16605
|
case 0:
|
|
15537
16606
|
// Clear the rotate timeout as the move description will cover rotation.
|
|
@@ -15622,7 +16691,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
15622
16691
|
};
|
|
15623
16692
|
/** Checks if the location has changed enough to justify a new description */
|
|
15624
16693
|
MapViewDescriptor.prototype._checkLocThreshold = function (newCenter, lastCenter) {
|
|
15625
|
-
var _a = __read(this._map.positionsToPixels([lastCenter, newCenter]), 2), lastPixel = _a[0], newPixel = _a[1];
|
|
16694
|
+
var _a = __read$6(this._map.positionsToPixels([lastCenter, newCenter]), 2), lastPixel = _a[0], newPixel = _a[1];
|
|
15626
16695
|
return Pixel.getDistance(lastPixel, newPixel) >= this._moveThreshold;
|
|
15627
16696
|
};
|
|
15628
16697
|
/** Checks if the heading has changed enough to justify a new description */
|
|
@@ -15647,10 +16716,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
15647
16716
|
* @param cam The map camera informaiton.
|
|
15648
16717
|
*/
|
|
15649
16718
|
MapViewDescriptor.prototype._getLocDesc = function (cam, lang, style) {
|
|
15650
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
16719
|
+
return __awaiter$1(this, void 0, void 0, function () {
|
|
15651
16720
|
var info_1, cPx_1, intersects_1, intersectingPolygon, intersectingType_1, i, cnt, layerInfo, cl_1;
|
|
15652
16721
|
var _this = this;
|
|
15653
|
-
return __generator(this, function (_a) {
|
|
16722
|
+
return __generator$1(this, function (_a) {
|
|
15654
16723
|
switch (_a.label) {
|
|
15655
16724
|
case 0:
|
|
15656
16725
|
if (!(style !== "blank")) return [3 /*break*/, 3];
|
|
@@ -16345,11 +17414,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
16345
17414
|
return FlowServiceDelegate;
|
|
16346
17415
|
}());
|
|
16347
17416
|
|
|
17417
|
+
var __extends$U = (window && window.__extends) || (function () {
|
|
17418
|
+
var extendStatics = function (d, b) {
|
|
17419
|
+
extendStatics = Object.setPrototypeOf ||
|
|
17420
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
17421
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
17422
|
+
return extendStatics(d, b);
|
|
17423
|
+
};
|
|
17424
|
+
return function (d, b) {
|
|
17425
|
+
if (typeof b !== "function" && b !== null)
|
|
17426
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
17427
|
+
extendStatics(d, b);
|
|
17428
|
+
function __() { this.constructor = d; }
|
|
17429
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
17430
|
+
};
|
|
17431
|
+
})();
|
|
16348
17432
|
/**
|
|
16349
17433
|
* @private
|
|
16350
17434
|
*/
|
|
16351
17435
|
var Incident = /** @class */ (function (_super) {
|
|
16352
|
-
__extends(Incident, _super);
|
|
17436
|
+
__extends$U(Incident, _super);
|
|
16353
17437
|
function Incident(data, point, localizedStrings) {
|
|
16354
17438
|
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;
|
|
16355
17439
|
var _this = this;
|
|
@@ -16564,6 +17648,42 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
16564
17648
|
return IncidentPopupFactory;
|
|
16565
17649
|
}());
|
|
16566
17650
|
|
|
17651
|
+
var __awaiter$2 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
17652
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17653
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17654
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17655
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17656
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
17657
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
17658
|
+
});
|
|
17659
|
+
};
|
|
17660
|
+
var __generator$2 = (window && window.__generator) || function (thisArg, body) {
|
|
17661
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
17662
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
17663
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
17664
|
+
function step(op) {
|
|
17665
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17666
|
+
while (_) try {
|
|
17667
|
+
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;
|
|
17668
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
17669
|
+
switch (op[0]) {
|
|
17670
|
+
case 0: case 1: t = op; break;
|
|
17671
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
17672
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
17673
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
17674
|
+
default:
|
|
17675
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
17676
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
17677
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
17678
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
17679
|
+
if (t[2]) _.ops.pop();
|
|
17680
|
+
_.trys.pop(); continue;
|
|
17681
|
+
}
|
|
17682
|
+
op = body.call(thisArg, _);
|
|
17683
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
17684
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
17685
|
+
}
|
|
17686
|
+
};
|
|
16567
17687
|
/**
|
|
16568
17688
|
* @private
|
|
16569
17689
|
*/
|
|
@@ -16591,10 +17711,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
16591
17711
|
_this.map.events.add('moveend', _this.setAccessiblePopups);
|
|
16592
17712
|
};
|
|
16593
17713
|
this.accessiblePopups = [];
|
|
16594
|
-
this.setAccessiblePopups = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
17714
|
+
this.setAccessiblePopups = function () { return __awaiter$2(_this, void 0, void 0, function () {
|
|
16595
17715
|
var features, localizedStrings, createPopup, insertHiddenBefore, insertHiddenInFront, addHidden;
|
|
16596
17716
|
var _this = this;
|
|
16597
|
-
return __generator(this, function (_a) {
|
|
17717
|
+
return __generator$2(this, function (_a) {
|
|
16598
17718
|
switch (_a.label) {
|
|
16599
17719
|
case 0:
|
|
16600
17720
|
this.accessiblePopups.forEach(function (popup) { return popup.remove(); });
|
|
@@ -16746,7 +17866,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
16746
17866
|
"red",
|
|
16747
17867
|
["==", ['var', 'magnitude'], 4],
|
|
16748
17868
|
"grey",
|
|
16749
|
-
"grey",
|
|
17869
|
+
"grey", // default.
|
|
16750
17870
|
],
|
|
16751
17871
|
];
|
|
16752
17872
|
// incident icon type name expression
|
|
@@ -16808,11 +17928,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
16808
17928
|
return IncidentServiceDelegate;
|
|
16809
17929
|
}());
|
|
16810
17930
|
|
|
17931
|
+
var __extends$V = (window && window.__extends) || (function () {
|
|
17932
|
+
var extendStatics = function (d, b) {
|
|
17933
|
+
extendStatics = Object.setPrototypeOf ||
|
|
17934
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
17935
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
17936
|
+
return extendStatics(d, b);
|
|
17937
|
+
};
|
|
17938
|
+
return function (d, b) {
|
|
17939
|
+
if (typeof b !== "function" && b !== null)
|
|
17940
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
17941
|
+
extendStatics(d, b);
|
|
17942
|
+
function __() { this.constructor = d; }
|
|
17943
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
17944
|
+
};
|
|
17945
|
+
})();
|
|
16811
17946
|
/**
|
|
16812
17947
|
* The options for enabling/disabling user interaction with the map.
|
|
16813
17948
|
*/
|
|
16814
17949
|
var UserInteractionOptions = /** @class */ (function (_super) {
|
|
16815
|
-
__extends(UserInteractionOptions, _super);
|
|
17950
|
+
__extends$V(UserInteractionOptions, _super);
|
|
16816
17951
|
function UserInteractionOptions() {
|
|
16817
17952
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
16818
17953
|
/**
|
|
@@ -19841,6 +20976,33 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
19841
20976
|
return descriptor;
|
|
19842
20977
|
}; };
|
|
19843
20978
|
|
|
20979
|
+
var __decorate = (window && window.__decorate) || function (decorators, target, key, desc) {
|
|
20980
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20981
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20982
|
+
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;
|
|
20983
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20984
|
+
};
|
|
20985
|
+
var __read$7 = (window && window.__read) || function (o, n) {
|
|
20986
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
20987
|
+
if (!m) return o;
|
|
20988
|
+
var i = m.call(o), r, ar = [], e;
|
|
20989
|
+
try {
|
|
20990
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
20991
|
+
}
|
|
20992
|
+
catch (error) { e = { error: error }; }
|
|
20993
|
+
finally {
|
|
20994
|
+
try {
|
|
20995
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
20996
|
+
}
|
|
20997
|
+
finally { if (e) throw e.error; }
|
|
20998
|
+
}
|
|
20999
|
+
return ar;
|
|
21000
|
+
};
|
|
21001
|
+
var __spreadArray$2 = (window && window.__spreadArray) || function (to, from) {
|
|
21002
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
21003
|
+
to[j] = from[i];
|
|
21004
|
+
return to;
|
|
21005
|
+
};
|
|
19844
21006
|
var allowedAttributionTags = [
|
|
19845
21007
|
'DIV',
|
|
19846
21008
|
'SPAN',
|
|
@@ -19854,9 +21016,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
19854
21016
|
'data-azure-maps-attribution-order',
|
|
19855
21017
|
'data-azure-maps-attribution-dynamic'
|
|
19856
21018
|
];
|
|
19857
|
-
var allowedAttributionAttributes =
|
|
21019
|
+
var allowedAttributionAttributes = __spreadArray$2([
|
|
19858
21020
|
'href'
|
|
19859
|
-
], attributionRuleAttributes);
|
|
21021
|
+
], __read$7(attributionRuleAttributes));
|
|
19860
21022
|
var AttributionRuleProxy = /** @class */ (function () {
|
|
19861
21023
|
function AttributionRuleProxy(element, attributionChangeCallback) {
|
|
19862
21024
|
var _this = this;
|
|
@@ -20079,7 +21241,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
20079
21241
|
};
|
|
20080
21242
|
AttributionRuleProxy.prototype.applyAttributionResponse = function (attributions) {
|
|
20081
21243
|
var _this = this;
|
|
20082
|
-
var copyrights = attributions.map(function (resp) { return resp.copyrights || []; }).reduce(function (flat, copyrights) { return
|
|
21244
|
+
var copyrights = attributions.map(function (resp) { return resp.copyrights || []; }).reduce(function (flat, copyrights) { return __spreadArray$2(__spreadArray$2([], __read$7(flat)), __read$7(copyrights)); }, []);
|
|
20083
21245
|
if (copyrights.length == 0) {
|
|
20084
21246
|
// no attribution for a provided tileset/bbox/z
|
|
20085
21247
|
return;
|
|
@@ -20128,6 +21290,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
20128
21290
|
return AttributionRuleProxy;
|
|
20129
21291
|
}());
|
|
20130
21292
|
|
|
21293
|
+
var __read$8 = (window && window.__read) || function (o, n) {
|
|
21294
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
21295
|
+
if (!m) return o;
|
|
21296
|
+
var i = m.call(o), r, ar = [], e;
|
|
21297
|
+
try {
|
|
21298
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
21299
|
+
}
|
|
21300
|
+
catch (error) { e = { error: error }; }
|
|
21301
|
+
finally {
|
|
21302
|
+
try {
|
|
21303
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
21304
|
+
}
|
|
21305
|
+
finally { if (e) throw e.error; }
|
|
21306
|
+
}
|
|
21307
|
+
return ar;
|
|
21308
|
+
};
|
|
21309
|
+
var __spreadArray$3 = (window && window.__spreadArray) || function (to, from) {
|
|
21310
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
21311
|
+
to[j] = from[i];
|
|
21312
|
+
return to;
|
|
21313
|
+
};
|
|
20131
21314
|
// contains phrases that should be filtered out from all attribution content
|
|
20132
21315
|
var attributionFilters = [
|
|
20133
21316
|
/all rights reserved/gi
|
|
@@ -20161,7 +21344,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
20161
21344
|
var style = map.getStyle();
|
|
20162
21345
|
return Object.entries(style.sources)
|
|
20163
21346
|
.filter(function (_a) {
|
|
20164
|
-
var _b = __read(_a, 1), key = _b[0];
|
|
21347
|
+
var _b = __read$8(_a, 1), key = _b[0];
|
|
20165
21348
|
return style.layers
|
|
20166
21349
|
.filter(function (layer) { return layer && layer['source'] == key; })
|
|
20167
21350
|
.reduce(function (isVisible, layer) {
|
|
@@ -20169,7 +21352,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
20169
21352
|
return !isLayerHidden || isVisible;
|
|
20170
21353
|
}, false);
|
|
20171
21354
|
}).map(function (_a) {
|
|
20172
|
-
var _b = __read(_a, 1), key = _b[0];
|
|
21355
|
+
var _b = __read$8(_a, 1), key = _b[0];
|
|
20173
21356
|
return map.getSource(key);
|
|
20174
21357
|
});
|
|
20175
21358
|
};
|
|
@@ -20244,10 +21427,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
20244
21427
|
}, function () { return document.createElement('span'); });
|
|
20245
21428
|
});
|
|
20246
21429
|
var registeredRuleSet = new Set(Object.values(registeredRules));
|
|
20247
|
-
var redundantRules = new Set(
|
|
20248
|
-
var redundantElements = new Set(
|
|
21430
|
+
var redundantRules = new Set(__spreadArray$3([], __read$8(allRules)).filter(function (rule) { return !registeredRuleSet.has(rule); }));
|
|
21431
|
+
var redundantElements = new Set(__spreadArray$3([], __read$8(redundantRules)).map(function (rule) { return rule.getElement(); }));
|
|
20249
21432
|
// eject redundant rules associated elements altogether
|
|
20250
|
-
|
|
21433
|
+
__spreadArray$3([], __read$8(redundantElements)).filter(function (elem) { return elem.parentElement !== null; })
|
|
20251
21434
|
.forEach(function (elem) { return elem.parentElement.removeChild(elem); });
|
|
20252
21435
|
_this.rules = Object.values(registeredRules);
|
|
20253
21436
|
var attributionsToApply = attributions
|
|
@@ -20283,7 +21466,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
20283
21466
|
var visibleTextNodes = function (elem) {
|
|
20284
21467
|
return Array.from(elem.style.display != 'none' ? elem.children : [])
|
|
20285
21468
|
.map(function (elem) { return visibleTextNodes(elem); })
|
|
20286
|
-
.reduce(function (flattened, nodes) { return
|
|
21469
|
+
.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; }));
|
|
20287
21470
|
};
|
|
20288
21471
|
var newRenderContext = _this.virtualContext.cloneNode(true);
|
|
20289
21472
|
var visibleNodes = visibleTextNodes(newRenderContext);
|
|
@@ -20298,7 +21481,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
20298
21481
|
// }
|
|
20299
21482
|
// });
|
|
20300
21483
|
// strip all predefined keywords
|
|
20301
|
-
visibleNodes.forEach(function (node) { return node.textContent =
|
|
21484
|
+
visibleNodes.forEach(function (node) { return node.textContent = __spreadArray$3([], __read$8(attributionFilters)).reduce(function (target, filter) { return target.replace(filter, '').trim(); }, node.textContent); });
|
|
20302
21485
|
// strip year from each node
|
|
20303
21486
|
// visibleNodes.forEach(node => node.textContent = node.textContent.replace(copyrightYearPattern, '').trim());
|
|
20304
21487
|
// deduplicate attribution text
|
|
@@ -22829,6 +24012,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
22829
24012
|
return AuthenticationManager;
|
|
22830
24013
|
}());
|
|
22831
24014
|
|
|
24015
|
+
var __values$9 = (window && window.__values) || function(o) {
|
|
24016
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
24017
|
+
if (m) return m.call(o);
|
|
24018
|
+
if (o && typeof o.length === "number") return {
|
|
24019
|
+
next: function () {
|
|
24020
|
+
if (o && i >= o.length) o = void 0;
|
|
24021
|
+
return { value: o && o[i++], done: !o };
|
|
24022
|
+
}
|
|
24023
|
+
};
|
|
24024
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
24025
|
+
};
|
|
22832
24026
|
/**
|
|
22833
24027
|
* A manager for the map control's controls.
|
|
22834
24028
|
* Exposed through the controls property of the atlas.Map class.
|
|
@@ -22863,7 +24057,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
22863
24057
|
var e_1, _a;
|
|
22864
24058
|
if (Array.isArray(control)) {
|
|
22865
24059
|
try {
|
|
22866
|
-
for (var control_1 = __values(control), control_1_1 = control_1.next(); !control_1_1.done; control_1_1 = control_1.next()) {
|
|
24060
|
+
for (var control_1 = __values$9(control), control_1_1 = control_1.next(); !control_1_1.done; control_1_1 = control_1.next()) {
|
|
22867
24061
|
var c = control_1_1.value;
|
|
22868
24062
|
this._add(c, options);
|
|
22869
24063
|
}
|
|
@@ -22894,7 +24088,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
22894
24088
|
var e_2, _a;
|
|
22895
24089
|
if (Array.isArray(control)) {
|
|
22896
24090
|
try {
|
|
22897
|
-
for (var control_2 = __values(control), control_2_1 = control_2.next(); !control_2_1.done; control_2_1 = control_2.next()) {
|
|
24091
|
+
for (var control_2 = __values$9(control), control_2_1 = control_2.next(); !control_2_1.done; control_2_1 = control_2.next()) {
|
|
22898
24092
|
var c = control_2_1.value;
|
|
22899
24093
|
this._remove(c);
|
|
22900
24094
|
}
|
|
@@ -22938,6 +24132,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
22938
24132
|
return ControlManager;
|
|
22939
24133
|
}());
|
|
22940
24134
|
|
|
24135
|
+
var __assign$5 = (window && window.__assign) || function () {
|
|
24136
|
+
__assign$5 = Object.assign || function(t) {
|
|
24137
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
24138
|
+
s = arguments[i];
|
|
24139
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
24140
|
+
t[p] = s[p];
|
|
24141
|
+
}
|
|
24142
|
+
return t;
|
|
24143
|
+
};
|
|
24144
|
+
return __assign$5.apply(this, arguments);
|
|
24145
|
+
};
|
|
22941
24146
|
/**
|
|
22942
24147
|
* @private
|
|
22943
24148
|
*/
|
|
@@ -22980,7 +24185,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
22980
24185
|
case "sourcedata":
|
|
22981
24186
|
case "styledata":
|
|
22982
24187
|
modifiedCallback = function (data) {
|
|
22983
|
-
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 && {
|
|
24188
|
+
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 && {
|
|
22984
24189
|
tile: {
|
|
22985
24190
|
id: {
|
|
22986
24191
|
x: data.tile.tileID.canonical.x,
|
|
@@ -23221,6 +24426,33 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23221
24426
|
return MapCallbackHandler;
|
|
23222
24427
|
}());
|
|
23223
24428
|
|
|
24429
|
+
var __values$a = (window && window.__values) || function(o) {
|
|
24430
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
24431
|
+
if (m) return m.call(o);
|
|
24432
|
+
if (o && typeof o.length === "number") return {
|
|
24433
|
+
next: function () {
|
|
24434
|
+
if (o && i >= o.length) o = void 0;
|
|
24435
|
+
return { value: o && o[i++], done: !o };
|
|
24436
|
+
}
|
|
24437
|
+
};
|
|
24438
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
24439
|
+
};
|
|
24440
|
+
var __read$9 = (window && window.__read) || function (o, n) {
|
|
24441
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
24442
|
+
if (!m) return o;
|
|
24443
|
+
var i = m.call(o), r, ar = [], e;
|
|
24444
|
+
try {
|
|
24445
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
24446
|
+
}
|
|
24447
|
+
catch (error) { e = { error: error }; }
|
|
24448
|
+
finally {
|
|
24449
|
+
try {
|
|
24450
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
24451
|
+
}
|
|
24452
|
+
finally { if (e) throw e.error; }
|
|
24453
|
+
}
|
|
24454
|
+
return ar;
|
|
24455
|
+
};
|
|
23224
24456
|
// Disable unified signatures linter rule so we can generate separate docs for function overloads.
|
|
23225
24457
|
// tslint:disable:unified-signatures
|
|
23226
24458
|
var MAP_CLIENT_EVENTS = ['maxzoomchanged', 'minzoomchanged', 'mapconfigurationchanged'];
|
|
@@ -23245,7 +24477,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23245
24477
|
else {
|
|
23246
24478
|
targetOrCallback = Array.isArray(targetOrCallback) ? targetOrCallback : [targetOrCallback];
|
|
23247
24479
|
try {
|
|
23248
|
-
for (var targetOrCallback_1 = __values(targetOrCallback), targetOrCallback_1_1 = targetOrCallback_1.next(); !targetOrCallback_1_1.done; targetOrCallback_1_1 = targetOrCallback_1.next()) {
|
|
24480
|
+
for (var targetOrCallback_1 = __values$a(targetOrCallback), targetOrCallback_1_1 = targetOrCallback_1.next(); !targetOrCallback_1_1.done; targetOrCallback_1_1 = targetOrCallback_1.next()) {
|
|
23249
24481
|
var target = targetOrCallback_1_1.value;
|
|
23250
24482
|
if (target instanceof Layer && Layer._isMBoxEvent(eventType)) {
|
|
23251
24483
|
this._addLayerListener(eventType, target, callback, false, false);
|
|
@@ -23296,7 +24528,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23296
24528
|
// Must disable it on every Mapbox layer our layer builds.
|
|
23297
24529
|
if (modifiedCallback && layer) {
|
|
23298
24530
|
try {
|
|
23299
|
-
for (var _c = __values(layer._getLayerIds()), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
24531
|
+
for (var _c = __values$a(layer._getLayerIds()), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
23300
24532
|
var id = _d.value;
|
|
23301
24533
|
this.map._getMap().off(eventType, id, modifiedCallback);
|
|
23302
24534
|
}
|
|
@@ -23316,7 +24548,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23316
24548
|
if (layer) {
|
|
23317
24549
|
modifiedCallback = this.mapCallbackHandler.getModifiedCallback(eventType, layerId, callback);
|
|
23318
24550
|
try {
|
|
23319
|
-
for (var _e = __values(layer._getLayerIds()), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
24551
|
+
for (var _e = __values$a(layer._getLayerIds()), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
23320
24552
|
var id = _f.value;
|
|
23321
24553
|
this.map._getMap().on(eventType, id, modifiedCallback);
|
|
23322
24554
|
}
|
|
@@ -23403,7 +24635,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23403
24635
|
var callbacks = new Dictionary(this.mapCallbackHandler.getEventCallbacks(eventType, layer));
|
|
23404
24636
|
if (callbacks) {
|
|
23405
24637
|
callbacks.forEach(function (_a, callback) {
|
|
23406
|
-
var _b = __read(_a, 2), _ = _b[0], once = _b[1];
|
|
24638
|
+
var _b = __read$9(_a, 2), _ = _b[0], once = _b[1];
|
|
23407
24639
|
// Invoking a listener this way circumvents the fire once logic in the modified callback.
|
|
23408
24640
|
// So we check if the callback was added as a fire once and if so remove it here.
|
|
23409
24641
|
if (once) {
|
|
@@ -23426,7 +24658,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23426
24658
|
else {
|
|
23427
24659
|
targetOrCallback = Array.isArray(targetOrCallback) ? targetOrCallback : [targetOrCallback];
|
|
23428
24660
|
try {
|
|
23429
|
-
for (var targetOrCallback_2 = __values(targetOrCallback), targetOrCallback_2_1 = targetOrCallback_2.next(); !targetOrCallback_2_1.done; targetOrCallback_2_1 = targetOrCallback_2.next()) {
|
|
24661
|
+
for (var targetOrCallback_2 = __values$a(targetOrCallback), targetOrCallback_2_1 = targetOrCallback_2.next(); !targetOrCallback_2_1.done; targetOrCallback_2_1 = targetOrCallback_2.next()) {
|
|
23430
24662
|
var target = targetOrCallback_2_1.value;
|
|
23431
24663
|
if (target instanceof Layer && Layer._isMBoxEvent(eventType)) {
|
|
23432
24664
|
this._removeListener(eventType, target, callback);
|
|
@@ -23476,7 +24708,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23476
24708
|
var layer = this.map.layers.getLayerById(layerId);
|
|
23477
24709
|
if (layer) {
|
|
23478
24710
|
try {
|
|
23479
|
-
for (var _b = __values(layer._getLayerIds()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
24711
|
+
for (var _b = __values$a(layer._getLayerIds()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
23480
24712
|
var id = _c.value;
|
|
23481
24713
|
this.map._getMap().off(eventType, id, modifiedCallback);
|
|
23482
24714
|
}
|
|
@@ -23511,9 +24743,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23511
24743
|
eventDict.forEach(function (callbackDict, eventType) {
|
|
23512
24744
|
callbackDict.forEach(function (_a) {
|
|
23513
24745
|
var e_6, _b;
|
|
23514
|
-
var _c = __read(_a, 1), modifiedCallback = _c[0];
|
|
24746
|
+
var _c = __read$9(_a, 1), modifiedCallback = _c[0];
|
|
23515
24747
|
try {
|
|
23516
|
-
for (var _d = __values(layer._getLayerIds()), _e = _d.next(); !_e.done; _e = _d.next()) {
|
|
24748
|
+
for (var _d = __values$a(layer._getLayerIds()), _e = _d.next(); !_e.done; _e = _d.next()) {
|
|
23517
24749
|
var mbLayerId = _e.value;
|
|
23518
24750
|
_this.map._getMap().on(eventType, mbLayerId, modifiedCallback);
|
|
23519
24751
|
}
|
|
@@ -23544,9 +24776,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23544
24776
|
eventDict.forEach(function (callbackDict, eventType) {
|
|
23545
24777
|
callbackDict.forEach(function (_a) {
|
|
23546
24778
|
var e_7, _b;
|
|
23547
|
-
var _c = __read(_a, 1), modifiedCallback = _c[0];
|
|
24779
|
+
var _c = __read$9(_a, 1), modifiedCallback = _c[0];
|
|
23548
24780
|
try {
|
|
23549
|
-
for (var _d = __values(layer._getLayerIds()), _e = _d.next(); !_e.done; _e = _d.next()) {
|
|
24781
|
+
for (var _d = __values$a(layer._getLayerIds()), _e = _d.next(); !_e.done; _e = _d.next()) {
|
|
23550
24782
|
var mbLayerId = _e.value;
|
|
23551
24783
|
_this.map._getMap().off(eventType, mbLayerId, modifiedCallback);
|
|
23552
24784
|
}
|
|
@@ -23565,6 +24797,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23565
24797
|
return EventManager;
|
|
23566
24798
|
}());
|
|
23567
24799
|
|
|
24800
|
+
var __values$b = (window && window.__values) || function(o) {
|
|
24801
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
24802
|
+
if (m) return m.call(o);
|
|
24803
|
+
if (o && typeof o.length === "number") return {
|
|
24804
|
+
next: function () {
|
|
24805
|
+
if (o && i >= o.length) o = void 0;
|
|
24806
|
+
return { value: o && o[i++], done: !o };
|
|
24807
|
+
}
|
|
24808
|
+
};
|
|
24809
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
24810
|
+
};
|
|
23568
24811
|
/**
|
|
23569
24812
|
* A manager for the map control's HTML markers.
|
|
23570
24813
|
* Exposed through the markers property of the atlas.Map class.
|
|
@@ -23584,7 +24827,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23584
24827
|
var e_1, _a;
|
|
23585
24828
|
if (Array.isArray(element)) {
|
|
23586
24829
|
try {
|
|
23587
|
-
for (var element_1 = __values(element), element_1_1 = element_1.next(); !element_1_1.done; element_1_1 = element_1.next()) {
|
|
24830
|
+
for (var element_1 = __values$b(element), element_1_1 = element_1.next(); !element_1_1.done; element_1_1 = element_1.next()) {
|
|
23588
24831
|
var marker = element_1_1.value;
|
|
23589
24832
|
this._addMarker(marker, position);
|
|
23590
24833
|
}
|
|
@@ -23622,7 +24865,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23622
24865
|
var e_2, _a;
|
|
23623
24866
|
if (Array.isArray(marker)) {
|
|
23624
24867
|
try {
|
|
23625
|
-
for (var marker_1 = __values(marker), marker_1_1 = marker_1.next(); !marker_1_1.done; marker_1_1 = marker_1.next()) {
|
|
24868
|
+
for (var marker_1 = __values$b(marker), marker_1_1 = marker_1.next(); !marker_1_1.done; marker_1_1 = marker_1.next()) {
|
|
23626
24869
|
var singleMarker = marker_1_1.value;
|
|
23627
24870
|
this._removeMarker(singleMarker);
|
|
23628
24871
|
}
|
|
@@ -23827,13 +25070,39 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23827
25070
|
return ImageSpriteManager;
|
|
23828
25071
|
}());
|
|
23829
25072
|
|
|
25073
|
+
var __extends$W = (window && window.__extends) || (function () {
|
|
25074
|
+
var extendStatics = function (d, b) {
|
|
25075
|
+
extendStatics = Object.setPrototypeOf ||
|
|
25076
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
25077
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
25078
|
+
return extendStatics(d, b);
|
|
25079
|
+
};
|
|
25080
|
+
return function (d, b) {
|
|
25081
|
+
if (typeof b !== "function" && b !== null)
|
|
25082
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25083
|
+
extendStatics(d, b);
|
|
25084
|
+
function __() { this.constructor = d; }
|
|
25085
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
25086
|
+
};
|
|
25087
|
+
})();
|
|
25088
|
+
var __values$c = (window && window.__values) || function(o) {
|
|
25089
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
25090
|
+
if (m) return m.call(o);
|
|
25091
|
+
if (o && typeof o.length === "number") return {
|
|
25092
|
+
next: function () {
|
|
25093
|
+
if (o && i >= o.length) o = void 0;
|
|
25094
|
+
return { value: o && o[i++], done: !o };
|
|
25095
|
+
}
|
|
25096
|
+
};
|
|
25097
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
25098
|
+
};
|
|
23830
25099
|
/**
|
|
23831
25100
|
* Used to represent the layer described by a resource files.
|
|
23832
25101
|
* Serves primarily as a wrapper for multiple Mapbox layers in LayerManger.
|
|
23833
25102
|
* @private
|
|
23834
25103
|
*/
|
|
23835
25104
|
var FundamentalMapLayer = /** @class */ (function (_super) {
|
|
23836
|
-
__extends(FundamentalMapLayer, _super);
|
|
25105
|
+
__extends$W(FundamentalMapLayer, _super);
|
|
23837
25106
|
/**
|
|
23838
25107
|
* Constructs a base layer used to represent the base, transit, and labels layers.
|
|
23839
25108
|
* @param mbLayers The stylesheet used to define the style sources and style layers.
|
|
@@ -23863,7 +25132,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23863
25132
|
var e_1, _a;
|
|
23864
25133
|
var ids = new Set();
|
|
23865
25134
|
try {
|
|
23866
|
-
for (var _b = __values(this.layers), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
25135
|
+
for (var _b = __values$c(this.layers), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
23867
25136
|
var layer = _c.value;
|
|
23868
25137
|
if (typeof layer.source === "string") {
|
|
23869
25138
|
// If the layer's source is just a string id use that.
|
|
@@ -23895,6 +25164,38 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23895
25164
|
return FundamentalMapLayer;
|
|
23896
25165
|
}(Layer));
|
|
23897
25166
|
|
|
25167
|
+
var __values$d = (window && window.__values) || function(o) {
|
|
25168
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
25169
|
+
if (m) return m.call(o);
|
|
25170
|
+
if (o && typeof o.length === "number") return {
|
|
25171
|
+
next: function () {
|
|
25172
|
+
if (o && i >= o.length) o = void 0;
|
|
25173
|
+
return { value: o && o[i++], done: !o };
|
|
25174
|
+
}
|
|
25175
|
+
};
|
|
25176
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
25177
|
+
};
|
|
25178
|
+
var __read$a = (window && window.__read) || function (o, n) {
|
|
25179
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
25180
|
+
if (!m) return o;
|
|
25181
|
+
var i = m.call(o), r, ar = [], e;
|
|
25182
|
+
try {
|
|
25183
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
25184
|
+
}
|
|
25185
|
+
catch (error) { e = { error: error }; }
|
|
25186
|
+
finally {
|
|
25187
|
+
try {
|
|
25188
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
25189
|
+
}
|
|
25190
|
+
finally { if (e) throw e.error; }
|
|
25191
|
+
}
|
|
25192
|
+
return ar;
|
|
25193
|
+
};
|
|
25194
|
+
var __spreadArray$4 = (window && window.__spreadArray) || function (to, from) {
|
|
25195
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
25196
|
+
to[j] = from[i];
|
|
25197
|
+
return to;
|
|
25198
|
+
};
|
|
23898
25199
|
/**
|
|
23899
25200
|
* A manager for the map control's layers.
|
|
23900
25201
|
* Exposed through the layers property of the atlas.Map class.
|
|
@@ -23918,7 +25219,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23918
25219
|
before;
|
|
23919
25220
|
if (Array.isArray(layer)) {
|
|
23920
25221
|
try {
|
|
23921
|
-
for (var layer_1 = __values(layer), layer_1_1 = layer_1.next(); !layer_1_1.done; layer_1_1 = layer_1.next()) {
|
|
25222
|
+
for (var layer_1 = __values$d(layer), layer_1_1 = layer_1.next(); !layer_1_1.done; layer_1_1 = layer_1.next()) {
|
|
23922
25223
|
var singleLayer = layer_1_1.value;
|
|
23923
25224
|
this._addLayer(singleLayer, beforeId);
|
|
23924
25225
|
}
|
|
@@ -23950,6 +25251,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23950
25251
|
// Replace the existing layer with the new one.
|
|
23951
25252
|
// Place the new layer behind the specified before layer.
|
|
23952
25253
|
var layerIndex = this.layerIndex.findIndex(function (l) { return l.getId() === layer.getId(); });
|
|
25254
|
+
var userLayerIndex = this.userLayers.findIndex(function (ul) { return ul.layer.getId() === layer.getId(); });
|
|
23953
25255
|
var tempLayer = this.layerIndex[layerIndex];
|
|
23954
25256
|
this._removeMapboxLayers(layer);
|
|
23955
25257
|
this._addMapboxLayers(layer, before);
|
|
@@ -23958,8 +25260,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23958
25260
|
this.layerIndex.splice(layerIndex, 1);
|
|
23959
25261
|
var beforeIndex = this.layerIndex.findIndex(function (l) { return l.getId() === before; });
|
|
23960
25262
|
this.layerIndex.splice(beforeIndex, 0, layer);
|
|
23961
|
-
if (!(layer instanceof FundamentalMapLayer))
|
|
23962
|
-
this.userLayers
|
|
25263
|
+
if (!(layer instanceof FundamentalMapLayer)) {
|
|
25264
|
+
this.userLayers[userLayerIndex] = { layer: layer, before: before };
|
|
25265
|
+
}
|
|
23963
25266
|
tempLayer.onRemove();
|
|
23964
25267
|
layer.onAdd(this.map);
|
|
23965
25268
|
}
|
|
@@ -23969,14 +25272,16 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23969
25272
|
this.map.events._enableLayerEvents(layer);
|
|
23970
25273
|
var beforeIndex = this.layerIndex.findIndex(function (l) { return l.getId() === before; });
|
|
23971
25274
|
this.layerIndex.splice(beforeIndex, 0, layer);
|
|
23972
|
-
if (!(layer instanceof FundamentalMapLayer))
|
|
25275
|
+
if (!(layer instanceof FundamentalMapLayer)) {
|
|
23973
25276
|
this.userLayers.push({ layer: layer, before: before });
|
|
25277
|
+
}
|
|
23974
25278
|
layer.onAdd(this.map);
|
|
23975
25279
|
}
|
|
23976
25280
|
}
|
|
23977
25281
|
else {
|
|
23978
25282
|
var layerIndex = this.layerIndex.findIndex(function (l) { return l.getId() === layer.getId(); });
|
|
23979
|
-
|
|
25283
|
+
var userLayerIndex = this.userLayers.findIndex(function (ul) { return ul.layer.getId() === layer.getId(); });
|
|
25284
|
+
if (layerIndex >= 0 && userLayerIndex >= 0) {
|
|
23980
25285
|
// Replace the existing layer with the new one.
|
|
23981
25286
|
var tempLayer = this.layerIndex[layerIndex];
|
|
23982
25287
|
this._removeMapboxLayers(tempLayer);
|
|
@@ -23984,6 +25289,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23984
25289
|
this.map.events._disableLayerEvents(tempLayer);
|
|
23985
25290
|
this.map.events._enableLayerEvents(layer);
|
|
23986
25291
|
this.layerIndex[layerIndex] = layer;
|
|
25292
|
+
if (!(layer instanceof FundamentalMapLayer)) {
|
|
25293
|
+
this.userLayers[userLayerIndex] = { layer: layer, before: undefined };
|
|
25294
|
+
}
|
|
23987
25295
|
tempLayer.onRemove();
|
|
23988
25296
|
layer.onAdd(this.map);
|
|
23989
25297
|
}
|
|
@@ -23992,8 +25300,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23992
25300
|
this._addMapboxLayers(layer);
|
|
23993
25301
|
this.map.events._enableLayerEvents(layer);
|
|
23994
25302
|
this.layerIndex.push(layer);
|
|
23995
|
-
if (!(layer instanceof FundamentalMapLayer))
|
|
25303
|
+
if (!(layer instanceof FundamentalMapLayer)) {
|
|
23996
25304
|
this.userLayers.push({ layer: layer, before: before });
|
|
25305
|
+
}
|
|
23997
25306
|
layer.onAdd(this.map);
|
|
23998
25307
|
}
|
|
23999
25308
|
}
|
|
@@ -24023,7 +25332,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24023
25332
|
}
|
|
24024
25333
|
var mbBefore = this._getMapboxBefore(before);
|
|
24025
25334
|
try {
|
|
24026
|
-
for (var _b = __values(layer._buildLayers()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
25335
|
+
for (var _b = __values$d(layer._buildLayers()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
24027
25336
|
var mbLayer = _c.value;
|
|
24028
25337
|
this.map._getMap().addLayer(mbLayer, mbBefore);
|
|
24029
25338
|
}
|
|
@@ -24052,7 +25361,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24052
25361
|
return;
|
|
24053
25362
|
}
|
|
24054
25363
|
try {
|
|
24055
|
-
for (var _b = __values(layer._getLayerIds()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
25364
|
+
for (var _b = __values$d(layer._getLayerIds()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
24056
25365
|
var mbLayerId = _c.value;
|
|
24057
25366
|
// Check if the layer does exist.
|
|
24058
25367
|
if (this.map._getMap().getLayer(mbLayerId)) {
|
|
@@ -24111,7 +25420,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24111
25420
|
// it would build until a layer exists on the mapbox map.
|
|
24112
25421
|
if (beforeLayer) {
|
|
24113
25422
|
try {
|
|
24114
|
-
for (var _c = __values(beforeLayer._getLayerIds()), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
25423
|
+
for (var _c = __values$d(beforeLayer._getLayerIds()), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
24115
25424
|
var layerId = _d.value;
|
|
24116
25425
|
if (this.map._getMap().getLayer(layerId)) {
|
|
24117
25426
|
return layerId;
|
|
@@ -24141,7 +25450,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24141
25450
|
// the mapbox layers built by an atlas layer exists in the mapbox map.
|
|
24142
25451
|
for (var i = before; i < this.layerIndex.length; i++) {
|
|
24143
25452
|
try {
|
|
24144
|
-
for (var _e = (e_5 = void 0, __values(this.layerIndex[i]._getLayerIds())), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
25453
|
+
for (var _e = (e_5 = void 0, __values$d(this.layerIndex[i]._getLayerIds())), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
24145
25454
|
var layerId = _f.value;
|
|
24146
25455
|
if (this.map._getMap().getLayer(layerId)) {
|
|
24147
25456
|
return layerId;
|
|
@@ -24195,7 +25504,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24195
25504
|
var e_6, _a;
|
|
24196
25505
|
var ids = new Set();
|
|
24197
25506
|
try {
|
|
24198
|
-
for (var _b = __values(this.layerIndex), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
25507
|
+
for (var _b = __values$d(this.layerIndex), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
24199
25508
|
var layer = _c.value;
|
|
24200
25509
|
layer._getSourceIds().forEach(function (id) { return ids.add(id); });
|
|
24201
25510
|
}
|
|
@@ -24239,12 +25548,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24239
25548
|
else {
|
|
24240
25549
|
this.layerIndex.push(layer);
|
|
24241
25550
|
}
|
|
25551
|
+
// Update before property of the user layer
|
|
25552
|
+
var userLayer = this.userLayers.find(function (ul) { return ul.layer.getId() === layerId; });
|
|
25553
|
+
if (userLayer) {
|
|
25554
|
+
userLayer.before = beforeId;
|
|
25555
|
+
}
|
|
24242
25556
|
};
|
|
24243
25557
|
LayerManager.prototype._moveMapboxLayers = function (layer, before) {
|
|
24244
25558
|
var e_7, _a;
|
|
24245
25559
|
var mbBefore = this._getMapboxBefore(before);
|
|
24246
25560
|
try {
|
|
24247
|
-
for (var _b = __values(layer._getLayerIds()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
25561
|
+
for (var _b = __values$d(layer._getLayerIds()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
24248
25562
|
var mbLayerId = _c.value;
|
|
24249
25563
|
this.map._getMap().moveLayer(mbLayerId, mbBefore);
|
|
24250
25564
|
}
|
|
@@ -24313,8 +25627,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24313
25627
|
// If a specified layer hasn't been added to the map throw an error.
|
|
24314
25628
|
var index = this_1.layerIndex.findIndex(function (l) { return l.getId() === layerId; });
|
|
24315
25629
|
if (index > -1) {
|
|
24316
|
-
layerIds.push.apply(layerIds,
|
|
24317
|
-
.filter(function (id) { return !!_this.map._getMap().getLayer(id); })));
|
|
25630
|
+
layerIds.push.apply(layerIds, __spreadArray$4([], __read$a(this_1.layerIndex[index]._getLayerIds()
|
|
25631
|
+
.filter(function (id) { return !!_this.map._getMap().getLayer(id); }))));
|
|
24318
25632
|
}
|
|
24319
25633
|
else {
|
|
24320
25634
|
throw new Error("The layer '" + layerId + "' has not been added to the map " +
|
|
@@ -24323,7 +25637,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24323
25637
|
};
|
|
24324
25638
|
var this_1 = this;
|
|
24325
25639
|
try {
|
|
24326
|
-
for (var layers_1 = __values(layers), layers_1_1 = layers_1.next(); !layers_1_1.done; layers_1_1 = layers_1.next()) {
|
|
25640
|
+
for (var layers_1 = __values$d(layers), layers_1_1 = layers_1.next(); !layers_1_1.done; layers_1_1 = layers_1.next()) {
|
|
24327
25641
|
var layer = layers_1_1.value;
|
|
24328
25642
|
_loop_1(layer);
|
|
24329
25643
|
}
|
|
@@ -24349,7 +25663,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24349
25663
|
var e_9, _a;
|
|
24350
25664
|
if (Array.isArray(layer)) {
|
|
24351
25665
|
try {
|
|
24352
|
-
for (var layer_2 = __values(layer), layer_2_1 = layer_2.next(); !layer_2_1.done; layer_2_1 = layer_2.next()) {
|
|
25666
|
+
for (var layer_2 = __values$d(layer), layer_2_1 = layer_2.next(); !layer_2_1.done; layer_2_1 = layer_2.next()) {
|
|
24353
25667
|
var singleLayer = layer_2_1.value;
|
|
24354
25668
|
this._removeLayer(singleLayer);
|
|
24355
25669
|
}
|
|
@@ -24388,6 +25702,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24388
25702
|
return LayerManager;
|
|
24389
25703
|
}());
|
|
24390
25704
|
|
|
25705
|
+
var __values$e = (window && window.__values) || function(o) {
|
|
25706
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
25707
|
+
if (m) return m.call(o);
|
|
25708
|
+
if (o && typeof o.length === "number") return {
|
|
25709
|
+
next: function () {
|
|
25710
|
+
if (o && i >= o.length) o = void 0;
|
|
25711
|
+
return { value: o && o[i++], done: !o };
|
|
25712
|
+
}
|
|
25713
|
+
};
|
|
25714
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
25715
|
+
};
|
|
24391
25716
|
/**
|
|
24392
25717
|
* A manager for the map control's popups.
|
|
24393
25718
|
* Exposed through the `popups` property of the `atlas.Map` class.
|
|
@@ -24448,7 +25773,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24448
25773
|
var e_1, _a;
|
|
24449
25774
|
popup = Array.isArray(popup) ? popup : [popup];
|
|
24450
25775
|
try {
|
|
24451
|
-
for (var popup_1 = __values(popup), popup_1_1 = popup_1.next(); !popup_1_1.done; popup_1_1 = popup_1.next()) {
|
|
25776
|
+
for (var popup_1 = __values$e(popup), popup_1_1 = popup_1.next(); !popup_1_1.done; popup_1_1 = popup_1.next()) {
|
|
24452
25777
|
var p = popup_1_1.value;
|
|
24453
25778
|
if (!this.popups.has(p)) {
|
|
24454
25779
|
this.popups.add(p);
|
|
@@ -24482,7 +25807,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24482
25807
|
var e_2, _a;
|
|
24483
25808
|
popup = Array.isArray(popup) ? popup : [popup];
|
|
24484
25809
|
try {
|
|
24485
|
-
for (var popup_2 = __values(popup), popup_2_1 = popup_2.next(); !popup_2_1.done; popup_2_1 = popup_2.next()) {
|
|
25810
|
+
for (var popup_2 = __values$e(popup), popup_2_1 = popup_2.next(); !popup_2_1.done; popup_2_1 = popup_2.next()) {
|
|
24486
25811
|
var p = popup_2_1.value;
|
|
24487
25812
|
if (this.popups.has(p)) {
|
|
24488
25813
|
this.popups.delete(p);
|
|
@@ -24542,12 +25867,38 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24542
25867
|
return PopupManager;
|
|
24543
25868
|
}());
|
|
24544
25869
|
|
|
25870
|
+
var __extends$X = (window && window.__extends) || (function () {
|
|
25871
|
+
var extendStatics = function (d, b) {
|
|
25872
|
+
extendStatics = Object.setPrototypeOf ||
|
|
25873
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
25874
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
25875
|
+
return extendStatics(d, b);
|
|
25876
|
+
};
|
|
25877
|
+
return function (d, b) {
|
|
25878
|
+
if (typeof b !== "function" && b !== null)
|
|
25879
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25880
|
+
extendStatics(d, b);
|
|
25881
|
+
function __() { this.constructor = d; }
|
|
25882
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
25883
|
+
};
|
|
25884
|
+
})();
|
|
25885
|
+
var __assign$6 = (window && window.__assign) || function () {
|
|
25886
|
+
__assign$6 = Object.assign || function(t) {
|
|
25887
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
25888
|
+
s = arguments[i];
|
|
25889
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
25890
|
+
t[p] = s[p];
|
|
25891
|
+
}
|
|
25892
|
+
return t;
|
|
25893
|
+
};
|
|
25894
|
+
return __assign$6.apply(this, arguments);
|
|
25895
|
+
};
|
|
24545
25896
|
/**
|
|
24546
25897
|
* Used to represent the fundamental map source.
|
|
24547
25898
|
* @private
|
|
24548
25899
|
*/
|
|
24549
25900
|
var FundamentalMapSource = /** @class */ (function (_super) {
|
|
24550
|
-
__extends(FundamentalMapSource, _super);
|
|
25901
|
+
__extends$X(FundamentalMapSource, _super);
|
|
24551
25902
|
/**
|
|
24552
25903
|
* Constructs a source from the contents of a layer resource file.
|
|
24553
25904
|
* @param id The source's id.
|
|
@@ -24579,7 +25930,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24579
25930
|
var tileUrl = new Url({
|
|
24580
25931
|
domain: constants.domainPlaceHolder,
|
|
24581
25932
|
path: tile.path,
|
|
24582
|
-
queryParams: __assign(__assign({}, options), tile.queryParams)
|
|
25933
|
+
queryParams: __assign$6(__assign$6({}, options), tile.queryParams)
|
|
24583
25934
|
});
|
|
24584
25935
|
return tileUrl.toString();
|
|
24585
25936
|
});
|
|
@@ -24591,7 +25942,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24591
25942
|
new Url({
|
|
24592
25943
|
domain: constants.domainPlaceHolder,
|
|
24593
25944
|
path: sourceDef.url.path,
|
|
24594
|
-
queryParams: __assign(__assign({}, options), sourceDef.url.queryParams)
|
|
25945
|
+
queryParams: __assign$6(__assign$6({}, options), sourceDef.url.queryParams)
|
|
24595
25946
|
}).toString();
|
|
24596
25947
|
}
|
|
24597
25948
|
else {
|
|
@@ -24602,6 +25953,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24602
25953
|
return FundamentalMapSource;
|
|
24603
25954
|
}(Source));
|
|
24604
25955
|
|
|
25956
|
+
var __values$f = (window && window.__values) || function(o) {
|
|
25957
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
25958
|
+
if (m) return m.call(o);
|
|
25959
|
+
if (o && typeof o.length === "number") return {
|
|
25960
|
+
next: function () {
|
|
25961
|
+
if (o && i >= o.length) o = void 0;
|
|
25962
|
+
return { value: o && o[i++], done: !o };
|
|
25963
|
+
}
|
|
25964
|
+
};
|
|
25965
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
25966
|
+
};
|
|
24605
25967
|
/**
|
|
24606
25968
|
* A manager for the map control's sources.
|
|
24607
25969
|
* Exposed through the sources property of the atlas.Map class.
|
|
@@ -24620,7 +25982,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24620
25982
|
if (update === void 0) { update = true; }
|
|
24621
25983
|
if (Array.isArray(source)) {
|
|
24622
25984
|
try {
|
|
24623
|
-
for (var source_1 = __values(source), source_1_1 = source_1.next(); !source_1_1.done; source_1_1 = source_1.next()) {
|
|
25985
|
+
for (var source_1 = __values$f(source), source_1_1 = source_1.next(); !source_1_1.done; source_1_1 = source_1.next()) {
|
|
24624
25986
|
var singleSource = source_1_1.value;
|
|
24625
25987
|
this._addSource(singleSource, update);
|
|
24626
25988
|
}
|
|
@@ -24746,7 +26108,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24746
26108
|
if (update === void 0) { update = true; }
|
|
24747
26109
|
if (Array.isArray(source)) {
|
|
24748
26110
|
try {
|
|
24749
|
-
for (var source_2 = __values(source), source_2_1 = source_2.next(); !source_2_1.done; source_2_1 = source_2.next()) {
|
|
26111
|
+
for (var source_2 = __values$f(source), source_2_1 = source_2.next(); !source_2_1.done; source_2_1 = source_2.next()) {
|
|
24750
26112
|
var singleSource = source_2_1.value;
|
|
24751
26113
|
this._removeSource(singleSource, update);
|
|
24752
26114
|
}
|
|
@@ -24813,7 +26175,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24813
26175
|
var e_3, _a;
|
|
24814
26176
|
var shapesOrFeatures = [];
|
|
24815
26177
|
try {
|
|
24816
|
-
for (var features_1 = __values(features), features_1_1 = features_1.next(); !features_1_1.done; features_1_1 = features_1.next()) {
|
|
26178
|
+
for (var features_1 = __values$f(features), features_1_1 = features_1.next(); !features_1_1.done; features_1_1 = features_1.next()) {
|
|
24817
26179
|
var feature = features_1_1.value;
|
|
24818
26180
|
if ((dataSource || typeof feature["source"] === "string") &&
|
|
24819
26181
|
typeof feature.properties[Shape._shapeIdPropName] === "string") {
|
|
@@ -24888,11 +26250,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24888
26250
|
return SourceManager;
|
|
24889
26251
|
}());
|
|
24890
26252
|
|
|
26253
|
+
var __extends$Y = (window && window.__extends) || (function () {
|
|
26254
|
+
var extendStatics = function (d, b) {
|
|
26255
|
+
extendStatics = Object.setPrototypeOf ||
|
|
26256
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
26257
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
26258
|
+
return extendStatics(d, b);
|
|
26259
|
+
};
|
|
26260
|
+
return function (d, b) {
|
|
26261
|
+
if (typeof b !== "function" && b !== null)
|
|
26262
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
26263
|
+
extendStatics(d, b);
|
|
26264
|
+
function __() { this.constructor = d; }
|
|
26265
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26266
|
+
};
|
|
26267
|
+
})();
|
|
24891
26268
|
/**
|
|
24892
26269
|
* The options for animating changes to the map control's camera.
|
|
24893
26270
|
*/
|
|
24894
26271
|
var AnimationOptions = /** @class */ (function (_super) {
|
|
24895
|
-
__extends(AnimationOptions, _super);
|
|
26272
|
+
__extends$Y(AnimationOptions, _super);
|
|
24896
26273
|
function AnimationOptions() {
|
|
24897
26274
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
24898
26275
|
/**
|
|
@@ -24916,11 +26293,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24916
26293
|
return AnimationOptions;
|
|
24917
26294
|
}(Options));
|
|
24918
26295
|
|
|
26296
|
+
var __extends$Z = (window && window.__extends) || (function () {
|
|
26297
|
+
var extendStatics = function (d, b) {
|
|
26298
|
+
extendStatics = Object.setPrototypeOf ||
|
|
26299
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
26300
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
26301
|
+
return extendStatics(d, b);
|
|
26302
|
+
};
|
|
26303
|
+
return function (d, b) {
|
|
26304
|
+
if (typeof b !== "function" && b !== null)
|
|
26305
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
26306
|
+
extendStatics(d, b);
|
|
26307
|
+
function __() { this.constructor = d; }
|
|
26308
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26309
|
+
};
|
|
26310
|
+
})();
|
|
24919
26311
|
/**
|
|
24920
26312
|
* Represent the amount of padding in pixels to add to the side of a BoundingBox when setting the camera of a map.
|
|
24921
26313
|
*/
|
|
24922
26314
|
var Padding = /** @class */ (function (_super) {
|
|
24923
|
-
__extends(Padding, _super);
|
|
26315
|
+
__extends$Z(Padding, _super);
|
|
24924
26316
|
function Padding() {
|
|
24925
26317
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
24926
26318
|
/**
|
|
@@ -24952,11 +26344,58 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24952
26344
|
return Padding;
|
|
24953
26345
|
}(Options));
|
|
24954
26346
|
|
|
26347
|
+
var __extends$_ = (window && window.__extends) || (function () {
|
|
26348
|
+
var extendStatics = function (d, b) {
|
|
26349
|
+
extendStatics = Object.setPrototypeOf ||
|
|
26350
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
26351
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
26352
|
+
return extendStatics(d, b);
|
|
26353
|
+
};
|
|
26354
|
+
return function (d, b) {
|
|
26355
|
+
if (typeof b !== "function" && b !== null)
|
|
26356
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
26357
|
+
extendStatics(d, b);
|
|
26358
|
+
function __() { this.constructor = d; }
|
|
26359
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26360
|
+
};
|
|
26361
|
+
})();
|
|
26362
|
+
var __values$g = (window && window.__values) || function(o) {
|
|
26363
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
26364
|
+
if (m) return m.call(o);
|
|
26365
|
+
if (o && typeof o.length === "number") return {
|
|
26366
|
+
next: function () {
|
|
26367
|
+
if (o && i >= o.length) o = void 0;
|
|
26368
|
+
return { value: o && o[i++], done: !o };
|
|
26369
|
+
}
|
|
26370
|
+
};
|
|
26371
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
26372
|
+
};
|
|
26373
|
+
var __read$b = (window && window.__read) || function (o, n) {
|
|
26374
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
26375
|
+
if (!m) return o;
|
|
26376
|
+
var i = m.call(o), r, ar = [], e;
|
|
26377
|
+
try {
|
|
26378
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
26379
|
+
}
|
|
26380
|
+
catch (error) { e = { error: error }; }
|
|
26381
|
+
finally {
|
|
26382
|
+
try {
|
|
26383
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
26384
|
+
}
|
|
26385
|
+
finally { if (e) throw e.error; }
|
|
26386
|
+
}
|
|
26387
|
+
return ar;
|
|
26388
|
+
};
|
|
26389
|
+
var __spreadArray$5 = (window && window.__spreadArray) || function (to, from) {
|
|
26390
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
26391
|
+
to[j] = from[i];
|
|
26392
|
+
return to;
|
|
26393
|
+
};
|
|
24955
26394
|
/**
|
|
24956
26395
|
* The options for setting the bounds of the map control's camera.
|
|
24957
26396
|
*/
|
|
24958
26397
|
var CameraBoundsOptions = /** @class */ (function (_super) {
|
|
24959
|
-
__extends(CameraBoundsOptions, _super);
|
|
26398
|
+
__extends$_(CameraBoundsOptions, _super);
|
|
24960
26399
|
function CameraBoundsOptions() {
|
|
24961
26400
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
24962
26401
|
/**
|
|
@@ -25003,7 +26442,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25003
26442
|
valuesList[_i] = arguments[_i];
|
|
25004
26443
|
}
|
|
25005
26444
|
try {
|
|
25006
|
-
for (var valuesList_1 = __values(valuesList), valuesList_1_1 = valuesList_1.next(); !valuesList_1_1.done; valuesList_1_1 = valuesList_1.next()) {
|
|
26445
|
+
for (var valuesList_1 = __values$g(valuesList), valuesList_1_1 = valuesList_1.next(); !valuesList_1_1.done; valuesList_1_1 = valuesList_1.next()) {
|
|
25007
26446
|
var value = valuesList_1_1.value;
|
|
25008
26447
|
if (value && typeof value.padding === "number") {
|
|
25009
26448
|
value.padding = {
|
|
@@ -25022,16 +26461,31 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25022
26461
|
}
|
|
25023
26462
|
finally { if (e_1) throw e_1.error; }
|
|
25024
26463
|
}
|
|
25025
|
-
return _super.prototype.merge.apply(this,
|
|
26464
|
+
return _super.prototype.merge.apply(this, __spreadArray$5([], __read$b(valuesList)));
|
|
25026
26465
|
};
|
|
25027
26466
|
return CameraBoundsOptions;
|
|
25028
26467
|
}(Options));
|
|
25029
26468
|
|
|
26469
|
+
var __extends$$ = (window && window.__extends) || (function () {
|
|
26470
|
+
var extendStatics = function (d, b) {
|
|
26471
|
+
extendStatics = Object.setPrototypeOf ||
|
|
26472
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
26473
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
26474
|
+
return extendStatics(d, b);
|
|
26475
|
+
};
|
|
26476
|
+
return function (d, b) {
|
|
26477
|
+
if (typeof b !== "function" && b !== null)
|
|
26478
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
26479
|
+
extendStatics(d, b);
|
|
26480
|
+
function __() { this.constructor = d; }
|
|
26481
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26482
|
+
};
|
|
26483
|
+
})();
|
|
25030
26484
|
/**
|
|
25031
26485
|
* The options for setting the map control's camera.
|
|
25032
26486
|
*/
|
|
25033
26487
|
var CameraOptions = /** @class */ (function (_super) {
|
|
25034
|
-
__extends(CameraOptions, _super);
|
|
26488
|
+
__extends$$(CameraOptions, _super);
|
|
25035
26489
|
function CameraOptions() {
|
|
25036
26490
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
25037
26491
|
/**
|
|
@@ -25090,11 +26544,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25090
26544
|
return CameraOptions;
|
|
25091
26545
|
}(Options));
|
|
25092
26546
|
|
|
26547
|
+
var __extends$10 = (window && window.__extends) || (function () {
|
|
26548
|
+
var extendStatics = function (d, b) {
|
|
26549
|
+
extendStatics = Object.setPrototypeOf ||
|
|
26550
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
26551
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
26552
|
+
return extendStatics(d, b);
|
|
26553
|
+
};
|
|
26554
|
+
return function (d, b) {
|
|
26555
|
+
if (typeof b !== "function" && b !== null)
|
|
26556
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
26557
|
+
extendStatics(d, b);
|
|
26558
|
+
function __() { this.constructor = d; }
|
|
26559
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26560
|
+
};
|
|
26561
|
+
})();
|
|
25093
26562
|
/**
|
|
25094
26563
|
* The options for a layer of the map.
|
|
25095
26564
|
*/
|
|
25096
26565
|
var LayerOptions$1 = /** @class */ (function (_super) {
|
|
25097
|
-
__extends(LayerOptions, _super);
|
|
26566
|
+
__extends$10(LayerOptions, _super);
|
|
25098
26567
|
function LayerOptions() {
|
|
25099
26568
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
25100
26569
|
/**
|
|
@@ -25127,12 +26596,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25127
26596
|
return LayerOptions;
|
|
25128
26597
|
}(Options));
|
|
25129
26598
|
|
|
26599
|
+
var __extends$11 = (window && window.__extends) || (function () {
|
|
26600
|
+
var extendStatics = function (d, b) {
|
|
26601
|
+
extendStatics = Object.setPrototypeOf ||
|
|
26602
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
26603
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
26604
|
+
return extendStatics(d, b);
|
|
26605
|
+
};
|
|
26606
|
+
return function (d, b) {
|
|
26607
|
+
if (typeof b !== "function" && b !== null)
|
|
26608
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
26609
|
+
extendStatics(d, b);
|
|
26610
|
+
function __() { this.constructor = d; }
|
|
26611
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26612
|
+
};
|
|
26613
|
+
})();
|
|
25130
26614
|
/**
|
|
25131
26615
|
* The options for a circle layer.
|
|
25132
26616
|
* @deprecated Use BubbleLayerOptions with atlas.layer.BubbleLayer instead.
|
|
25133
26617
|
*/
|
|
25134
26618
|
var CircleLayerOptions = /** @class */ (function (_super) {
|
|
25135
|
-
__extends(CircleLayerOptions, _super);
|
|
26619
|
+
__extends$11(CircleLayerOptions, _super);
|
|
25136
26620
|
function CircleLayerOptions() {
|
|
25137
26621
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
25138
26622
|
/**
|
|
@@ -25164,12 +26648,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25164
26648
|
return CircleLayerOptions;
|
|
25165
26649
|
}(LayerOptions$1));
|
|
25166
26650
|
|
|
26651
|
+
var __extends$12 = (window && window.__extends) || (function () {
|
|
26652
|
+
var extendStatics = function (d, b) {
|
|
26653
|
+
extendStatics = Object.setPrototypeOf ||
|
|
26654
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
26655
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
26656
|
+
return extendStatics(d, b);
|
|
26657
|
+
};
|
|
26658
|
+
return function (d, b) {
|
|
26659
|
+
if (typeof b !== "function" && b !== null)
|
|
26660
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
26661
|
+
extendStatics(d, b);
|
|
26662
|
+
function __() { this.constructor = d; }
|
|
26663
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26664
|
+
};
|
|
26665
|
+
})();
|
|
25167
26666
|
/**
|
|
25168
26667
|
* The options for a linestring layer.
|
|
25169
26668
|
* @deprecated Use LineLayerOptions with atlas.layer.LineLayer instead.
|
|
25170
26669
|
*/
|
|
25171
26670
|
var LinestringLayerOptions = /** @class */ (function (_super) {
|
|
25172
|
-
__extends(LinestringLayerOptions, _super);
|
|
26671
|
+
__extends$12(LinestringLayerOptions, _super);
|
|
25173
26672
|
function LinestringLayerOptions() {
|
|
25174
26673
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
25175
26674
|
/**
|
|
@@ -25205,12 +26704,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25205
26704
|
return LinestringLayerOptions;
|
|
25206
26705
|
}(LayerOptions$1));
|
|
25207
26706
|
|
|
26707
|
+
var __extends$13 = (window && window.__extends) || (function () {
|
|
26708
|
+
var extendStatics = function (d, b) {
|
|
26709
|
+
extendStatics = Object.setPrototypeOf ||
|
|
26710
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
26711
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
26712
|
+
return extendStatics(d, b);
|
|
26713
|
+
};
|
|
26714
|
+
return function (d, b) {
|
|
26715
|
+
if (typeof b !== "function" && b !== null)
|
|
26716
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
26717
|
+
extendStatics(d, b);
|
|
26718
|
+
function __() { this.constructor = d; }
|
|
26719
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26720
|
+
};
|
|
26721
|
+
})();
|
|
25208
26722
|
/**
|
|
25209
26723
|
* The options for a pin layer.
|
|
25210
26724
|
* @deprecated Use SymbolLayerOptions with atlas.layer.SymbolLayer instead.
|
|
25211
26725
|
*/
|
|
25212
26726
|
var PinLayerOptions = /** @class */ (function (_super) {
|
|
25213
|
-
__extends(PinLayerOptions, _super);
|
|
26727
|
+
__extends$13(PinLayerOptions, _super);
|
|
25214
26728
|
function PinLayerOptions() {
|
|
25215
26729
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
25216
26730
|
/**
|
|
@@ -25260,12 +26774,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25260
26774
|
return PinLayerOptions;
|
|
25261
26775
|
}(LayerOptions$1));
|
|
25262
26776
|
|
|
26777
|
+
var __extends$14 = (window && window.__extends) || (function () {
|
|
26778
|
+
var extendStatics = function (d, b) {
|
|
26779
|
+
extendStatics = Object.setPrototypeOf ||
|
|
26780
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
26781
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
26782
|
+
return extendStatics(d, b);
|
|
26783
|
+
};
|
|
26784
|
+
return function (d, b) {
|
|
26785
|
+
if (typeof b !== "function" && b !== null)
|
|
26786
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
26787
|
+
extendStatics(d, b);
|
|
26788
|
+
function __() { this.constructor = d; }
|
|
26789
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26790
|
+
};
|
|
26791
|
+
})();
|
|
25263
26792
|
/**
|
|
25264
26793
|
* The options for a polygon layer.
|
|
25265
26794
|
* @deprecated Use new PolygonLayerOptions with atlas.layer.PolygonLayer instead.
|
|
25266
26795
|
*/
|
|
25267
26796
|
var PolygonLayerOptions$1 = /** @class */ (function (_super) {
|
|
25268
|
-
__extends(PolygonLayerOptions, _super);
|
|
26797
|
+
__extends$14(PolygonLayerOptions, _super);
|
|
25269
26798
|
function PolygonLayerOptions() {
|
|
25270
26799
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
25271
26800
|
/**
|
|
@@ -25288,12 +26817,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25288
26817
|
return PolygonLayerOptions;
|
|
25289
26818
|
}(LayerOptions$1));
|
|
25290
26819
|
|
|
26820
|
+
var __extends$15 = (window && window.__extends) || (function () {
|
|
26821
|
+
var extendStatics = function (d, b) {
|
|
26822
|
+
extendStatics = Object.setPrototypeOf ||
|
|
26823
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
26824
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
26825
|
+
return extendStatics(d, b);
|
|
26826
|
+
};
|
|
26827
|
+
return function (d, b) {
|
|
26828
|
+
if (typeof b !== "function" && b !== null)
|
|
26829
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
26830
|
+
extendStatics(d, b);
|
|
26831
|
+
function __() { this.constructor = d; }
|
|
26832
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26833
|
+
};
|
|
26834
|
+
})();
|
|
25291
26835
|
/**
|
|
25292
26836
|
* The options for a raster layer.
|
|
25293
26837
|
* @deprecated Use TileLayerOptions with atlas.layer.TileLayer instead.
|
|
25294
26838
|
*/
|
|
25295
26839
|
var RasterLayerOptions = /** @class */ (function (_super) {
|
|
25296
|
-
__extends(RasterLayerOptions, _super);
|
|
26840
|
+
__extends$15(RasterLayerOptions, _super);
|
|
25297
26841
|
function RasterLayerOptions() {
|
|
25298
26842
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
25299
26843
|
/**
|
|
@@ -25305,11 +26849,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25305
26849
|
return RasterLayerOptions;
|
|
25306
26850
|
}(LayerOptions$1));
|
|
25307
26851
|
|
|
26852
|
+
var __extends$16 = (window && window.__extends) || (function () {
|
|
26853
|
+
var extendStatics = function (d, b) {
|
|
26854
|
+
extendStatics = Object.setPrototypeOf ||
|
|
26855
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
26856
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
26857
|
+
return extendStatics(d, b);
|
|
26858
|
+
};
|
|
26859
|
+
return function (d, b) {
|
|
26860
|
+
if (typeof b !== "function" && b !== null)
|
|
26861
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
26862
|
+
extendStatics(d, b);
|
|
26863
|
+
function __() { this.constructor = d; }
|
|
26864
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26865
|
+
};
|
|
26866
|
+
})();
|
|
25308
26867
|
/**
|
|
25309
26868
|
* The options for the map's lighting.
|
|
25310
26869
|
*/
|
|
25311
26870
|
var LightOptions = /** @class */ (function (_super) {
|
|
25312
|
-
__extends(LightOptions, _super);
|
|
26871
|
+
__extends$16(LightOptions, _super);
|
|
25313
26872
|
function LightOptions() {
|
|
25314
26873
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
25315
26874
|
/**
|
|
@@ -25349,11 +26908,58 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25349
26908
|
return LightOptions;
|
|
25350
26909
|
}(Options));
|
|
25351
26910
|
|
|
26911
|
+
var __extends$17 = (window && window.__extends) || (function () {
|
|
26912
|
+
var extendStatics = function (d, b) {
|
|
26913
|
+
extendStatics = Object.setPrototypeOf ||
|
|
26914
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
26915
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
26916
|
+
return extendStatics(d, b);
|
|
26917
|
+
};
|
|
26918
|
+
return function (d, b) {
|
|
26919
|
+
if (typeof b !== "function" && b !== null)
|
|
26920
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
26921
|
+
extendStatics(d, b);
|
|
26922
|
+
function __() { this.constructor = d; }
|
|
26923
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26924
|
+
};
|
|
26925
|
+
})();
|
|
26926
|
+
var __values$h = (window && window.__values) || function(o) {
|
|
26927
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
26928
|
+
if (m) return m.call(o);
|
|
26929
|
+
if (o && typeof o.length === "number") return {
|
|
26930
|
+
next: function () {
|
|
26931
|
+
if (o && i >= o.length) o = void 0;
|
|
26932
|
+
return { value: o && o[i++], done: !o };
|
|
26933
|
+
}
|
|
26934
|
+
};
|
|
26935
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
26936
|
+
};
|
|
26937
|
+
var __read$c = (window && window.__read) || function (o, n) {
|
|
26938
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
26939
|
+
if (!m) return o;
|
|
26940
|
+
var i = m.call(o), r, ar = [], e;
|
|
26941
|
+
try {
|
|
26942
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
26943
|
+
}
|
|
26944
|
+
catch (error) { e = { error: error }; }
|
|
26945
|
+
finally {
|
|
26946
|
+
try {
|
|
26947
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
26948
|
+
}
|
|
26949
|
+
finally { if (e) throw e.error; }
|
|
26950
|
+
}
|
|
26951
|
+
return ar;
|
|
26952
|
+
};
|
|
26953
|
+
var __spreadArray$6 = (window && window.__spreadArray) || function (to, from) {
|
|
26954
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
26955
|
+
to[j] = from[i];
|
|
26956
|
+
return to;
|
|
26957
|
+
};
|
|
25352
26958
|
/**
|
|
25353
26959
|
* The options for the map's style.
|
|
25354
26960
|
*/
|
|
25355
26961
|
var StyleOptions = /** @class */ (function (_super) {
|
|
25356
|
-
__extends(StyleOptions, _super);
|
|
26962
|
+
__extends$17(StyleOptions, _super);
|
|
25357
26963
|
function StyleOptions() {
|
|
25358
26964
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
25359
26965
|
/**
|
|
@@ -25385,6 +26991,20 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25385
26991
|
* @default false
|
|
25386
26992
|
*/
|
|
25387
26993
|
_this.preserveDrawingBuffer = false;
|
|
26994
|
+
/**
|
|
26995
|
+
* If true, the map will try to defer non-essential map layers and show essential layers as early as possible.
|
|
26996
|
+
* This option may only be set when initializing the map.
|
|
26997
|
+
* Default `false`
|
|
26998
|
+
* @default false
|
|
26999
|
+
*/
|
|
27000
|
+
_this.progressiveLoading = false;
|
|
27001
|
+
/**
|
|
27002
|
+
* The list of layer groups to be loaded at the initial stage. Passing an empty array will disable the progressive loading.
|
|
27003
|
+
* This option may only be set when initializing the map.
|
|
27004
|
+
* Default `['base']`
|
|
27005
|
+
* @default ['base']
|
|
27006
|
+
*/
|
|
27007
|
+
_this.progressiveLoadingInitialLayerGroups = ['base'];
|
|
25388
27008
|
/**
|
|
25389
27009
|
* Specifies if multiple copies of the world should be rendered when zoomed out.
|
|
25390
27010
|
* Default `true`
|
|
@@ -25464,7 +27084,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25464
27084
|
valueList[_i] = arguments[_i];
|
|
25465
27085
|
}
|
|
25466
27086
|
try {
|
|
25467
|
-
for (var valueList_1 = __values(valueList), valueList_1_1 = valueList_1.next(); !valueList_1_1.done; valueList_1_1 = valueList_1.next()) {
|
|
27087
|
+
for (var valueList_1 = __values$h(valueList), valueList_1_1 = valueList_1.next(); !valueList_1_1.done; valueList_1_1 = valueList_1.next()) {
|
|
25468
27088
|
var value = valueList_1_1.value;
|
|
25469
27089
|
if (value) {
|
|
25470
27090
|
// Make sure both view and userRegion properties exist. Prefer view's value.
|
|
@@ -25489,24 +27109,82 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25489
27109
|
finally { if (e_1) throw e_1.error; }
|
|
25490
27110
|
}
|
|
25491
27111
|
// Then execute the standard merge behavior.
|
|
25492
|
-
return _super.prototype.merge.apply(this,
|
|
27112
|
+
return _super.prototype.merge.apply(this, __spreadArray$6([], __read$c(valueList)));
|
|
25493
27113
|
};
|
|
25494
27114
|
return StyleOptions;
|
|
25495
27115
|
}(Options));
|
|
25496
27116
|
|
|
27117
|
+
var __extends$18 = (window && window.__extends) || (function () {
|
|
27118
|
+
var extendStatics = function (d, b) {
|
|
27119
|
+
extendStatics = Object.setPrototypeOf ||
|
|
27120
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
27121
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
27122
|
+
return extendStatics(d, b);
|
|
27123
|
+
};
|
|
27124
|
+
return function (d, b) {
|
|
27125
|
+
if (typeof b !== "function" && b !== null)
|
|
27126
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
27127
|
+
extendStatics(d, b);
|
|
27128
|
+
function __() { this.constructor = d; }
|
|
27129
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
27130
|
+
};
|
|
27131
|
+
})();
|
|
27132
|
+
var __assign$7 = (window && window.__assign) || function () {
|
|
27133
|
+
__assign$7 = Object.assign || function(t) {
|
|
27134
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
27135
|
+
s = arguments[i];
|
|
27136
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
27137
|
+
t[p] = s[p];
|
|
27138
|
+
}
|
|
27139
|
+
return t;
|
|
27140
|
+
};
|
|
27141
|
+
return __assign$7.apply(this, arguments);
|
|
27142
|
+
};
|
|
27143
|
+
var __values$i = (window && window.__values) || function(o) {
|
|
27144
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
27145
|
+
if (m) return m.call(o);
|
|
27146
|
+
if (o && typeof o.length === "number") return {
|
|
27147
|
+
next: function () {
|
|
27148
|
+
if (o && i >= o.length) o = void 0;
|
|
27149
|
+
return { value: o && o[i++], done: !o };
|
|
27150
|
+
}
|
|
27151
|
+
};
|
|
27152
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
27153
|
+
};
|
|
27154
|
+
var __read$d = (window && window.__read) || function (o, n) {
|
|
27155
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
27156
|
+
if (!m) return o;
|
|
27157
|
+
var i = m.call(o), r, ar = [], e;
|
|
27158
|
+
try {
|
|
27159
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
27160
|
+
}
|
|
27161
|
+
catch (error) { e = { error: error }; }
|
|
27162
|
+
finally {
|
|
27163
|
+
try {
|
|
27164
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
27165
|
+
}
|
|
27166
|
+
finally { if (e) throw e.error; }
|
|
27167
|
+
}
|
|
27168
|
+
return ar;
|
|
27169
|
+
};
|
|
27170
|
+
var __spreadArray$7 = (window && window.__spreadArray) || function (to, from) {
|
|
27171
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
27172
|
+
to[j] = from[i];
|
|
27173
|
+
return to;
|
|
27174
|
+
};
|
|
25497
27175
|
var composeTransformers = function (transformers) { return transformers.length == 0
|
|
25498
27176
|
? undefined
|
|
25499
27177
|
: transformers.slice(1).reduce(function (chained, transform) {
|
|
25500
27178
|
return function (url, resourceType) {
|
|
25501
27179
|
var resourceParams = chained(url, resourceType);
|
|
25502
|
-
return __assign(__assign({}, resourceParams), transform(resourceParams.url, resourceType));
|
|
27180
|
+
return __assign$7(__assign$7({}, resourceParams), transform(resourceParams.url, resourceType));
|
|
25503
27181
|
};
|
|
25504
27182
|
}, transformers[0]); };
|
|
25505
27183
|
/**
|
|
25506
27184
|
* Global properties used in all atlas service requests.
|
|
25507
27185
|
*/
|
|
25508
27186
|
var ServiceOptions = /** @class */ (function (_super) {
|
|
25509
|
-
__extends(ServiceOptions, _super);
|
|
27187
|
+
__extends$18(ServiceOptions, _super);
|
|
25510
27188
|
function ServiceOptions() {
|
|
25511
27189
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
25512
27190
|
/**
|
|
@@ -25665,7 +27343,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25665
27343
|
}
|
|
25666
27344
|
try {
|
|
25667
27345
|
// Make sure both camel and dash case properties exist. Prefer the camel case ones.
|
|
25668
|
-
for (var valueList_1 = __values(valueList), valueList_1_1 = valueList_1.next(); !valueList_1_1.done; valueList_1_1 = valueList_1.next()) {
|
|
27346
|
+
for (var valueList_1 = __values$i(valueList), valueList_1_1 = valueList_1.next(); !valueList_1_1.done; valueList_1_1 = valueList_1.next()) {
|
|
25669
27347
|
var value = valueList_1_1.value;
|
|
25670
27348
|
if (value) {
|
|
25671
27349
|
// authOptions can also have a subscription key so check for that first.
|
|
@@ -25724,10 +27402,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25724
27402
|
// won't change default behavior in Options as usually that's what desired
|
|
25725
27403
|
// instead capture it here and reassign.
|
|
25726
27404
|
var currentTransforms = this._transformers;
|
|
25727
|
-
var transformersToMerge = valueList ? valueList.filter(function (value) { return value !== undefined; }).reduce(function (flattened, value) { return
|
|
27405
|
+
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 || [])); }, []) : [];
|
|
25728
27406
|
// Then execute the standard merge behavior.
|
|
25729
27407
|
// If subscription key auth method isn't being used then the subscription key property should be undefined.
|
|
25730
|
-
var merged = _super.prototype.merge.apply(this,
|
|
27408
|
+
var merged = _super.prototype.merge.apply(this, __spreadArray$7([], __read$d(valueList)));
|
|
25731
27409
|
if (merged.authOptions.authType !== exports.AuthenticationType.subscriptionKey) {
|
|
25732
27410
|
merged["subscription-key"] = merged.subscriptionKey = undefined;
|
|
25733
27411
|
}
|
|
@@ -25737,9 +27415,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25737
27415
|
}
|
|
25738
27416
|
// reassign properties from legacy mapConfiguration to new structure if needed
|
|
25739
27417
|
if (merged.mapConfiguration && typeof merged.mapConfiguration !== 'string') {
|
|
25740
|
-
merged.mapConfiguration = __assign(__assign({}, merged.mapConfiguration), { defaultConfiguration: merged.mapConfiguration.defaultConfiguration || merged.mapConfiguration['defaultStyle'], configurations: merged.mapConfiguration.configurations || merged.mapConfiguration['styles'] });
|
|
27418
|
+
merged.mapConfiguration = __assign$7(__assign$7({}, merged.mapConfiguration), { defaultConfiguration: merged.mapConfiguration.defaultConfiguration || merged.mapConfiguration['defaultStyle'], configurations: merged.mapConfiguration.configurations || merged.mapConfiguration['styles'] });
|
|
25741
27419
|
}
|
|
25742
|
-
this._transformers =
|
|
27420
|
+
this._transformers = __spreadArray$7(__spreadArray$7([], __read$d(currentTransforms || [])), __read$d(transformersToMerge.filter(function (toMerge) { return !currentTransforms.includes(toMerge); })));
|
|
25743
27421
|
if (this.transformRequest && !this._transformers.includes(this.transformRequest)) {
|
|
25744
27422
|
this._transformers.push(this.transformRequest);
|
|
25745
27423
|
}
|
|
@@ -25924,6 +27602,74 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25924
27602
|
high_contrast_light: "High contrast (Light)"
|
|
25925
27603
|
};
|
|
25926
27604
|
|
|
27605
|
+
var __assign$8 = (window && window.__assign) || function () {
|
|
27606
|
+
__assign$8 = Object.assign || function(t) {
|
|
27607
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
27608
|
+
s = arguments[i];
|
|
27609
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
27610
|
+
t[p] = s[p];
|
|
27611
|
+
}
|
|
27612
|
+
return t;
|
|
27613
|
+
};
|
|
27614
|
+
return __assign$8.apply(this, arguments);
|
|
27615
|
+
};
|
|
27616
|
+
var __awaiter$3 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
27617
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27618
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
27619
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
27620
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
27621
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
27622
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
27623
|
+
});
|
|
27624
|
+
};
|
|
27625
|
+
var __generator$3 = (window && window.__generator) || function (thisArg, body) {
|
|
27626
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
27627
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
27628
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
27629
|
+
function step(op) {
|
|
27630
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
27631
|
+
while (_) try {
|
|
27632
|
+
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;
|
|
27633
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
27634
|
+
switch (op[0]) {
|
|
27635
|
+
case 0: case 1: t = op; break;
|
|
27636
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
27637
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
27638
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
27639
|
+
default:
|
|
27640
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27641
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
27642
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
27643
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
27644
|
+
if (t[2]) _.ops.pop();
|
|
27645
|
+
_.trys.pop(); continue;
|
|
27646
|
+
}
|
|
27647
|
+
op = body.call(thisArg, _);
|
|
27648
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
27649
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
27650
|
+
}
|
|
27651
|
+
};
|
|
27652
|
+
var __read$e = (window && window.__read) || function (o, n) {
|
|
27653
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
27654
|
+
if (!m) return o;
|
|
27655
|
+
var i = m.call(o), r, ar = [], e;
|
|
27656
|
+
try {
|
|
27657
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
27658
|
+
}
|
|
27659
|
+
catch (error) { e = { error: error }; }
|
|
27660
|
+
finally {
|
|
27661
|
+
try {
|
|
27662
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
27663
|
+
}
|
|
27664
|
+
finally { if (e) throw e.error; }
|
|
27665
|
+
}
|
|
27666
|
+
return ar;
|
|
27667
|
+
};
|
|
27668
|
+
var __spreadArray$8 = (window && window.__spreadArray) || function (to, from) {
|
|
27669
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
27670
|
+
to[j] = from[i];
|
|
27671
|
+
return to;
|
|
27672
|
+
};
|
|
25927
27673
|
/**
|
|
25928
27674
|
* @private
|
|
25929
27675
|
*/
|
|
@@ -25946,6 +27692,57 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25946
27692
|
* Preserve the map configuration that was used before the indoor map configuration was set
|
|
25947
27693
|
*/
|
|
25948
27694
|
this.preservedPreindoorMapConfiguration = undefined;
|
|
27695
|
+
this._deferLayerGroupVisibilities = function (layerGroupLayers, initLayerGroups) {
|
|
27696
|
+
var validInitLayerGroups = initLayerGroups.filter(function (groupName) { return groupName in layerGroupLayers; });
|
|
27697
|
+
// If the initial layer groups are invalid, skip the progressive loading.
|
|
27698
|
+
if (validInitLayerGroups.length === 0)
|
|
27699
|
+
return;
|
|
27700
|
+
var map = _this.map._getMap();
|
|
27701
|
+
var currentZoomLevel = map.getZoom();
|
|
27702
|
+
// Select the layers to be deferred
|
|
27703
|
+
var deferredLayers = Object.entries(layerGroupLayers).reduce(function (deferred, _a) {
|
|
27704
|
+
var _b = __read$e(_a, 2), groupName = _b[0], layers = _b[1];
|
|
27705
|
+
var isInInitialLayerGroup = validInitLayerGroups.includes(groupName);
|
|
27706
|
+
return __spreadArray$8(__spreadArray$8([], __read$e(deferred)), __read$e(layers.filter(function (layer) {
|
|
27707
|
+
var _a;
|
|
27708
|
+
// Exclude custom layers
|
|
27709
|
+
if (layer.type === 'custom')
|
|
27710
|
+
return false;
|
|
27711
|
+
// Exclude visible layers from initial layer groups
|
|
27712
|
+
if (isInInitialLayerGroup) {
|
|
27713
|
+
if (typeof layer.maxzoom === 'number' && typeof layer.minzoom === 'number') {
|
|
27714
|
+
if (currentZoomLevel <= layer.maxzoom && currentZoomLevel >= layer.minzoom)
|
|
27715
|
+
return false;
|
|
27716
|
+
}
|
|
27717
|
+
else if (typeof layer.minzoom === 'number') {
|
|
27718
|
+
if (currentZoomLevel >= layer.minzoom)
|
|
27719
|
+
return false;
|
|
27720
|
+
}
|
|
27721
|
+
else if (typeof layer.maxzoom === 'number') {
|
|
27722
|
+
if (currentZoomLevel <= layer.maxzoom)
|
|
27723
|
+
return false;
|
|
27724
|
+
}
|
|
27725
|
+
else {
|
|
27726
|
+
return false;
|
|
27727
|
+
}
|
|
27728
|
+
}
|
|
27729
|
+
// Defer visible layers only.
|
|
27730
|
+
return ((_a = layer.layout) === null || _a === void 0 ? void 0 : _a.visibility) !== 'none';
|
|
27731
|
+
})));
|
|
27732
|
+
}, []);
|
|
27733
|
+
// Hide the deferred layers at initial load, therefore we can save the render time.
|
|
27734
|
+
deferredLayers.forEach(function (layer) {
|
|
27735
|
+
layer.layout = layer.layout || {};
|
|
27736
|
+
layer.layout.visibility = 'none';
|
|
27737
|
+
});
|
|
27738
|
+
// Make the deferred layers visible once the map instance is fully loaded
|
|
27739
|
+
_this.map.events.addOnce('load', function () {
|
|
27740
|
+
deferredLayers.forEach(function (layer) {
|
|
27741
|
+
layer.layout.visibility = 'visible';
|
|
27742
|
+
map.setLayoutProperty(layer.id, 'visibility', 'visible');
|
|
27743
|
+
});
|
|
27744
|
+
});
|
|
27745
|
+
};
|
|
25949
27746
|
this._onStyleData = function () {
|
|
25950
27747
|
_this._lookUpAsync(_this.map.getStyle()).then(function (style) {
|
|
25951
27748
|
_this.map.events.invoke("stylechanged", {
|
|
@@ -25975,9 +27772,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25975
27772
|
|| definitions.configurations[0];
|
|
25976
27773
|
}
|
|
25977
27774
|
};
|
|
25978
|
-
this._lookUpAsync = function (options) { return __awaiter(_this, void 0, void 0, function () {
|
|
27775
|
+
this._lookUpAsync = function (options) { return __awaiter$3(_this, void 0, void 0, function () {
|
|
25979
27776
|
var definitions, result;
|
|
25980
|
-
return __generator(this, function (_a) {
|
|
27777
|
+
return __generator$3(this, function (_a) {
|
|
25981
27778
|
switch (_a.label) {
|
|
25982
27779
|
case 0: return [4 /*yield*/, this.definitions()];
|
|
25983
27780
|
case 1:
|
|
@@ -26087,6 +27884,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
26087
27884
|
path: constants.stylePath + "/" + constants.styleResourcePath + "/" + style.name,
|
|
26088
27885
|
queryParams: {
|
|
26089
27886
|
styleVersion: _this.serviceOptions.styleDefinitionsVersion,
|
|
27887
|
+
// thus far we don't need to differentiate based on parameter here, as stylePatch will be called on cached styles as well
|
|
27888
|
+
//language: styleOptions.language
|
|
26090
27889
|
},
|
|
26091
27890
|
protocol: "https"
|
|
26092
27891
|
}).toString(),
|
|
@@ -26096,7 +27895,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
26096
27895
|
else if (typeof this.serviceOptions.mapConfiguration === 'string') {
|
|
26097
27896
|
newPromise = new HijackablePromise(this._request(this.serviceOptions.domain, constants.styleResourcePath + "/mapconfigurations/metadata/" + this.serviceOptions.mapConfiguration, "StyleDefinitions"
|
|
26098
27897
|
// reassign properties from legacy mapConfiguration to new structure if needed
|
|
26099
|
-
).then(function (definitions) { return (__assign(__assign({}, definitions), { defaultConfiguration: definitions.defaultConfiguration || definitions['defaultStyle'], configurations: definitions.configurations || definitions['styles'] })); }));
|
|
27898
|
+
).then(function (definitions) { return (__assign$8(__assign$8({}, definitions), { defaultConfiguration: definitions.defaultConfiguration || definitions['defaultStyle'], configurations: definitions.configurations || definitions['styles'] })); }));
|
|
26100
27899
|
}
|
|
26101
27900
|
else {
|
|
26102
27901
|
newPromise = HijackablePromise.resolve(this.serviceOptions.mapConfiguration);
|
|
@@ -26156,8 +27955,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
26156
27955
|
return style.theme.toLowerCase();
|
|
26157
27956
|
};
|
|
26158
27957
|
StyleManager.prototype.getThemeAsync = function (styleOptions) {
|
|
26159
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
26160
|
-
return __generator(this, function (_a) {
|
|
27958
|
+
return __awaiter$3(this, void 0, void 0, function () {
|
|
27959
|
+
return __generator$3(this, function (_a) {
|
|
26161
27960
|
switch (_a.label) {
|
|
26162
27961
|
case 0: return [4 /*yield*/, this._lookUpAsync(styleOptions)];
|
|
26163
27962
|
case 1: return [2 /*return*/, (_a.sent()).theme];
|
|
@@ -26226,8 +28025,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
26226
28025
|
var trafficOptions = this.map.getTraffic();
|
|
26227
28026
|
// force a replacement of language placeholder in the tileset url to avoid resolution to a same cache with placeholders on language change
|
|
26228
28027
|
nextStyle.sources = Object.entries(nextStyle.sources).reduce(function (newSources, _a) {
|
|
26229
|
-
var _b = __read(_a, 2), sourceKey = _b[0], source = _b[1];
|
|
26230
|
-
var newSource = __assign({}, source);
|
|
28028
|
+
var _b = __read$e(_a, 2), sourceKey = _b[0], source = _b[1];
|
|
28029
|
+
var newSource = __assign$8({}, source);
|
|
26231
28030
|
if ('url' in newSource && typeof newSource.url === 'string') {
|
|
26232
28031
|
if (newSource.url.includes(constants.languagePlaceHolder)) {
|
|
26233
28032
|
newSource.url = newSource.url.replace(constants.languagePlaceHolder, styleOptions.language);
|
|
@@ -26236,46 +28035,39 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
26236
28035
|
newSources[sourceKey] = newSource;
|
|
26237
28036
|
return newSources;
|
|
26238
28037
|
}, {});
|
|
26239
|
-
|
|
26240
|
-
|
|
26241
|
-
|
|
28038
|
+
var shouldProgressiveLoading = (styleOptions.progressiveLoading &&
|
|
28039
|
+
// The feature only effective at the initial load.
|
|
28040
|
+
!this.map._isLoaded());
|
|
28041
|
+
var setLayerVisibility = function (layer, visibility) {
|
|
28042
|
+
var _a;
|
|
28043
|
+
if (!shouldProgressiveLoading) {
|
|
28044
|
+
// No need to apply the visibility change to maplibre while progressive loading is enabled.
|
|
28045
|
+
// This can save a lot of CPU time.
|
|
28046
|
+
updateLayoutProperty(layer.id, 'visibility', visibility);
|
|
28047
|
+
}
|
|
28048
|
+
layer.layout = (_a = layer.layout) !== null && _a !== void 0 ? _a : {};
|
|
28049
|
+
layer.layout.visibility = visibility;
|
|
28050
|
+
};
|
|
26242
28051
|
var layerGroupLayers = {};
|
|
26243
28052
|
nextStyle.layers.forEach(function (nextLayer) {
|
|
26244
|
-
var _a
|
|
28053
|
+
var _a;
|
|
26245
28054
|
var layerGroup = LayerGroupComparator.getLayerGroup(nextLayer);
|
|
26246
28055
|
if (layerGroup) {
|
|
26247
|
-
// Set
|
|
26248
|
-
if (
|
|
26249
|
-
|
|
26250
|
-
nextLayer.layout = (_a = nextLayer.layout) !== null && _a !== void 0 ? _a : {};
|
|
26251
|
-
nextLayer.layout.visibility = "none";
|
|
26252
|
-
}
|
|
26253
|
-
else if (nextLayer.type === "fill-extrusion") {
|
|
26254
|
-
updateLayoutProperty(nextLayer.id, "visibility", "visible");
|
|
26255
|
-
nextLayer.layout = (_b = nextLayer.layout) !== null && _b !== void 0 ? _b : {};
|
|
26256
|
-
nextLayer.layout.visibility = "visible";
|
|
28056
|
+
// Set visibility of fill-extrusion layers according to StyleOptions.showBuildingModels
|
|
28057
|
+
if (nextLayer.type === 'fill-extrusion') {
|
|
28058
|
+
setLayerVisibility(nextLayer, styleOptions.showBuildingModels ? 'visible' : 'none');
|
|
26257
28059
|
}
|
|
26258
28060
|
// Set visibility of traffic layers depending on traffic settings.
|
|
26259
|
-
if (trafficOptions.flow !==
|
|
26260
|
-
|
|
26261
|
-
|
|
26262
|
-
|
|
26263
|
-
nextLayer.layout.visibility = "visible";
|
|
26264
|
-
}
|
|
28061
|
+
if (trafficOptions.flow !== 'none' &&
|
|
28062
|
+
layerGroup === "traffic_" + trafficOptions.flow &&
|
|
28063
|
+
nextLayer.type == 'line') {
|
|
28064
|
+
setLayerVisibility(nextLayer, 'visible');
|
|
26265
28065
|
}
|
|
26266
28066
|
// Set visibility of labels
|
|
26267
28067
|
var isLabelLayerGroup = layerGroup === 'labels' || layerGroup === 'labels_places' || layerGroup === 'labels_indoor';
|
|
26268
28068
|
if (isLabelLayerGroup && nextLayer.type === 'symbol') {
|
|
26269
|
-
|
|
26270
|
-
|
|
26271
|
-
nextLayer.layout = (_d = nextLayer.layout) !== null && _d !== void 0 ? _d : {};
|
|
26272
|
-
nextLayer.layout.visibility = "visible";
|
|
26273
|
-
}
|
|
26274
|
-
else {
|
|
26275
|
-
updateLayoutProperty(nextLayer.id, "visibility", "none");
|
|
26276
|
-
nextLayer.layout = (_e = nextLayer.layout) !== null && _e !== void 0 ? _e : {};
|
|
26277
|
-
nextLayer.layout.visibility = "none";
|
|
26278
|
-
}
|
|
28069
|
+
var isLayerVisible = ((_a = nextLayer.layout) === null || _a === void 0 ? void 0 : _a.visibility) !== 'none';
|
|
28070
|
+
setLayerVisibility(nextLayer, isLayerVisible && styleOptions.showLabels ? 'visible' : 'none');
|
|
26279
28071
|
}
|
|
26280
28072
|
// Once this _stylePatch returns control to maplibre the next style will be applied immediately in the same context.
|
|
26281
28073
|
// To avoid potential data races update LayerManager with new a new set of FundamentalMapLayers from here instead of
|
|
@@ -26288,13 +28080,20 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
26288
28080
|
}
|
|
26289
28081
|
}
|
|
26290
28082
|
});
|
|
26291
|
-
|
|
26292
|
-
var
|
|
26293
|
-
|
|
28083
|
+
if (shouldProgressiveLoading) {
|
|
28084
|
+
var initLayerGroups = styleOptions.progressiveLoadingInitialLayerGroups;
|
|
28085
|
+
if (Array.isArray(initLayerGroups) && initLayerGroups.length > 0) {
|
|
28086
|
+
this._deferLayerGroupVisibilities(layerGroupLayers, initLayerGroups);
|
|
28087
|
+
}
|
|
28088
|
+
}
|
|
28089
|
+
// A FundamentalMapLayer (grouped layer) representation of the next style must be built.
|
|
28090
|
+
var previousLayers = this.map.layers.getLayers();
|
|
28091
|
+
var nextLayers = Object.entries(layerGroupLayers).map(function (_a) {
|
|
28092
|
+
var _b = __read$e(_a, 2), layerGroupName = _b[0], layerGroupMapboxLayers = _b[1];
|
|
28093
|
+
return _this._buildFundamentalLayerFrom(layerGroupMapboxLayers, layerGroupName);
|
|
26294
28094
|
});
|
|
26295
28095
|
// Update FundamentalMapLayers in LayerManager
|
|
26296
28096
|
var userLayers = this.map.layers._getUserLayers();
|
|
26297
|
-
var firstUserLayer = userLayers[0];
|
|
26298
28097
|
var layersToRemove = previousLayers.filter(function (c) {
|
|
26299
28098
|
return (nextLayers.findIndex(function (n) { return c.getId() === n.getId(); }) < 0 &&
|
|
26300
28099
|
userLayers.findIndex(function (n) { return c.getId() === n.layer.getId(); }) < 0);
|
|
@@ -26316,8 +28115,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
26316
28115
|
_this.map.layers.add(newFundamentalLayer, replace.value[1]);
|
|
26317
28116
|
}
|
|
26318
28117
|
else {
|
|
26319
|
-
|
|
26320
|
-
_this.map.layers.add(newFundamentalLayer, firstUserLayer === null || firstUserLayer === void 0 ? void 0 : firstUserLayer.layer);
|
|
28118
|
+
_this.map.layers.add(newFundamentalLayer);
|
|
26321
28119
|
}
|
|
26322
28120
|
}
|
|
26323
28121
|
});
|
|
@@ -26338,6 +28136,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
26338
28136
|
before = (beforeCandidates.length > 0) ? beforeCandidates[0] : undefined;
|
|
26339
28137
|
}
|
|
26340
28138
|
preserveLayer(userLayer.layer.getId(), before === null || before === void 0 ? void 0 : before.id);
|
|
28139
|
+
_this.map.layers.move(userLayer.layer, userLayer.before);
|
|
26341
28140
|
});
|
|
26342
28141
|
this.map.sources._syncSources(nextStyle.sources);
|
|
26343
28142
|
// If there was a previous styledata change event attached, remove it.
|
|
@@ -26389,10 +28188,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
26389
28188
|
StyleManager.prototype._request = function (domain, path, resourceType, customQueryParams) {
|
|
26390
28189
|
var _a;
|
|
26391
28190
|
if (customQueryParams === void 0) { customQueryParams = {}; }
|
|
26392
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
28191
|
+
return __awaiter$3(this, void 0, void 0, function () {
|
|
26393
28192
|
var requestParams, fetchOptions;
|
|
26394
28193
|
var _b;
|
|
26395
|
-
return __generator(this, function (_c) {
|
|
28194
|
+
return __generator$3(this, function (_c) {
|
|
26396
28195
|
switch (_c.label) {
|
|
26397
28196
|
case 0:
|
|
26398
28197
|
requestParams = {
|
|
@@ -26400,7 +28199,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
26400
28199
|
protocol: "https",
|
|
26401
28200
|
domain: domain,
|
|
26402
28201
|
path: path,
|
|
26403
|
-
queryParams: __assign((_b = {}, _b[constants.apiVersionQueryParameter] = this.serviceOptions.styleAPIVersion, _b), customQueryParams)
|
|
28202
|
+
queryParams: __assign$8((_b = {}, _b[constants.apiVersionQueryParameter] = this.serviceOptions.styleAPIVersion, _b), customQueryParams)
|
|
26404
28203
|
}).toString()
|
|
26405
28204
|
};
|
|
26406
28205
|
if (typeof this.serviceOptions.transformRequest === "function" && resourceType) {
|
|
@@ -26437,11 +28236,105 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
26437
28236
|
*/
|
|
26438
28237
|
var isHMREnabled = function () { return 'ENVIRONMENT' in window && !!window['ENVIRONMENT']['hmr']; };
|
|
26439
28238
|
|
|
28239
|
+
var __extends$19 = (window && window.__extends) || (function () {
|
|
28240
|
+
var extendStatics = function (d, b) {
|
|
28241
|
+
extendStatics = Object.setPrototypeOf ||
|
|
28242
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
28243
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
28244
|
+
return extendStatics(d, b);
|
|
28245
|
+
};
|
|
28246
|
+
return function (d, b) {
|
|
28247
|
+
if (typeof b !== "function" && b !== null)
|
|
28248
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
28249
|
+
extendStatics(d, b);
|
|
28250
|
+
function __() { this.constructor = d; }
|
|
28251
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28252
|
+
};
|
|
28253
|
+
})();
|
|
28254
|
+
var __assign$9 = (window && window.__assign) || function () {
|
|
28255
|
+
__assign$9 = Object.assign || function(t) {
|
|
28256
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
28257
|
+
s = arguments[i];
|
|
28258
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
28259
|
+
t[p] = s[p];
|
|
28260
|
+
}
|
|
28261
|
+
return t;
|
|
28262
|
+
};
|
|
28263
|
+
return __assign$9.apply(this, arguments);
|
|
28264
|
+
};
|
|
28265
|
+
var __awaiter$4 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
28266
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
28267
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28268
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
28269
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
28270
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
28271
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
28272
|
+
});
|
|
28273
|
+
};
|
|
28274
|
+
var __generator$4 = (window && window.__generator) || function (thisArg, body) {
|
|
28275
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
28276
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
28277
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
28278
|
+
function step(op) {
|
|
28279
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
28280
|
+
while (_) try {
|
|
28281
|
+
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;
|
|
28282
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
28283
|
+
switch (op[0]) {
|
|
28284
|
+
case 0: case 1: t = op; break;
|
|
28285
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
28286
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
28287
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
28288
|
+
default:
|
|
28289
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
28290
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28291
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
28292
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
28293
|
+
if (t[2]) _.ops.pop();
|
|
28294
|
+
_.trys.pop(); continue;
|
|
28295
|
+
}
|
|
28296
|
+
op = body.call(thisArg, _);
|
|
28297
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
28298
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
28299
|
+
}
|
|
28300
|
+
};
|
|
28301
|
+
var __read$f = (window && window.__read) || function (o, n) {
|
|
28302
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
28303
|
+
if (!m) return o;
|
|
28304
|
+
var i = m.call(o), r, ar = [], e;
|
|
28305
|
+
try {
|
|
28306
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
28307
|
+
}
|
|
28308
|
+
catch (error) { e = { error: error }; }
|
|
28309
|
+
finally {
|
|
28310
|
+
try {
|
|
28311
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
28312
|
+
}
|
|
28313
|
+
finally { if (e) throw e.error; }
|
|
28314
|
+
}
|
|
28315
|
+
return ar;
|
|
28316
|
+
};
|
|
28317
|
+
var __spreadArray$9 = (window && window.__spreadArray) || function (to, from) {
|
|
28318
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
28319
|
+
to[j] = from[i];
|
|
28320
|
+
return to;
|
|
28321
|
+
};
|
|
28322
|
+
var __values$j = (window && window.__values) || function(o) {
|
|
28323
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
28324
|
+
if (m) return m.call(o);
|
|
28325
|
+
if (o && typeof o.length === "number") return {
|
|
28326
|
+
next: function () {
|
|
28327
|
+
if (o && i >= o.length) o = void 0;
|
|
28328
|
+
return { value: o && o[i++], done: !o };
|
|
28329
|
+
}
|
|
28330
|
+
};
|
|
28331
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
28332
|
+
};
|
|
26440
28333
|
/**
|
|
26441
28334
|
* The control for a visual and interactive web map.
|
|
26442
28335
|
*/
|
|
26443
28336
|
var Map$2 = /** @class */ (function (_super) {
|
|
26444
|
-
__extends(Map, _super);
|
|
28337
|
+
__extends$19(Map, _super);
|
|
26445
28338
|
/**
|
|
26446
28339
|
* Displays a map in the specified container.
|
|
26447
28340
|
* @param container The id of the element where the map should be displayed.
|
|
@@ -26578,7 +28471,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
26578
28471
|
_this.localizedStringsPromise = Localizer.getStrings(_this.styleOptions.language);
|
|
26579
28472
|
var stylesInit = _this.styles.initStyleset();
|
|
26580
28473
|
Promise.all([authManInit, stylesInit]).then(function (_a) {
|
|
26581
|
-
var _b = __read(_a, 2), _ = _b[0], definitions = _b[1];
|
|
28474
|
+
var _b = __read$f(_a, 2), _ = _b[0], definitions = _b[1];
|
|
26582
28475
|
// Check that the map hasn't been removed for any reason.
|
|
26583
28476
|
// If so no need to finish styling the map.
|
|
26584
28477
|
if (_this.removed) {
|
|
@@ -26608,7 +28501,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
26608
28501
|
_this.events.invoke("error", errorData);
|
|
26609
28502
|
});
|
|
26610
28503
|
// --> Set initial camera state of map
|
|
26611
|
-
_this.setCamera(__assign(__assign({}, options), { type: "jump", duration: 0 }));
|
|
28504
|
+
_this.setCamera(__assign$9(__assign$9({}, options), { type: "jump", duration: 0 }));
|
|
26612
28505
|
// Add delegates to map
|
|
26613
28506
|
{
|
|
26614
28507
|
_this.incidentDelegate = new IncidentServiceDelegate(_this);
|
|
@@ -26753,10 +28646,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
26753
28646
|
this.map.jumpTo(mapboxCameraOptions, eventData);
|
|
26754
28647
|
}
|
|
26755
28648
|
else if (animOptions.type === "ease") {
|
|
26756
|
-
this.map.easeTo(__assign(__assign({}, mapboxCameraOptions), mapboxAnimationOptions), eventData);
|
|
28649
|
+
this.map.easeTo(__assign$9(__assign$9({}, mapboxCameraOptions), mapboxAnimationOptions), eventData);
|
|
26757
28650
|
}
|
|
26758
28651
|
else if (animOptions.type === "fly") {
|
|
26759
|
-
this.map.flyTo(__assign(__assign({}, mapboxCameraOptions), mapboxAnimationOptions), eventData);
|
|
28652
|
+
this.map.flyTo(__assign$9(__assign$9({}, mapboxCameraOptions), mapboxAnimationOptions), eventData);
|
|
26760
28653
|
}
|
|
26761
28654
|
};
|
|
26762
28655
|
/**
|
|
@@ -27219,7 +29112,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
27219
29112
|
urls = layer.getOptions().subdomains || [];
|
|
27220
29113
|
}
|
|
27221
29114
|
// Add the tile urls to the layer, but don't update the map yet.
|
|
27222
|
-
urls.push.apply(urls,
|
|
29115
|
+
urls.push.apply(urls, __spreadArray$9([], __read$f(tileSources)));
|
|
27223
29116
|
layer._setOptionsNoUpdate({
|
|
27224
29117
|
subdomains: urls
|
|
27225
29118
|
});
|
|
@@ -27241,7 +29134,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
27241
29134
|
Map.prototype.removeLayers = function (layerNames) {
|
|
27242
29135
|
var e_1, _a;
|
|
27243
29136
|
try {
|
|
27244
|
-
for (var layerNames_1 = __values(layerNames), layerNames_1_1 = layerNames_1.next(); !layerNames_1_1.done; layerNames_1_1 = layerNames_1.next()) {
|
|
29137
|
+
for (var layerNames_1 = __values$j(layerNames), layerNames_1_1 = layerNames_1.next(); !layerNames_1_1.done; layerNames_1_1 = layerNames_1.next()) {
|
|
27245
29138
|
var layerName = layerNames_1_1.value;
|
|
27246
29139
|
// Previously calling removeLayers for layers that didn't exist in the map just did nothing.
|
|
27247
29140
|
// Now, LayerManager will throw an error, so we need to check if the layer exists before calling remove.
|
|
@@ -27431,7 +29324,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
27431
29324
|
var e_2, _a;
|
|
27432
29325
|
var positions = [];
|
|
27433
29326
|
try {
|
|
27434
|
-
for (var pixels_1 = __values(pixels), pixels_1_1 = pixels_1.next(); !pixels_1_1.done; pixels_1_1 = pixels_1.next()) {
|
|
29327
|
+
for (var pixels_1 = __values$j(pixels), pixels_1_1 = pixels_1.next(); !pixels_1_1.done; pixels_1_1 = pixels_1.next()) {
|
|
27435
29328
|
var pixel = pixels_1_1.value;
|
|
27436
29329
|
var lngLat = this.map.unproject(pixel);
|
|
27437
29330
|
positions.push(new Position(lngLat.lng, lngLat.lat));
|
|
@@ -27454,7 +29347,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
27454
29347
|
var e_3, _a;
|
|
27455
29348
|
var pixels = [];
|
|
27456
29349
|
try {
|
|
27457
|
-
for (var positions_1 = __values(positions), positions_1_1 = positions_1.next(); !positions_1_1.done; positions_1_1 = positions_1.next()) {
|
|
29350
|
+
for (var positions_1 = __values$j(positions), positions_1_1 = positions_1.next(); !positions_1_1.done; positions_1_1 = positions_1.next()) {
|
|
27458
29351
|
var position = positions_1_1.value;
|
|
27459
29352
|
var point = this.map.project(position);
|
|
27460
29353
|
pixels.push(new Pixel(point.x, point.y));
|
|
@@ -27502,8 +29395,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
27502
29395
|
*/
|
|
27503
29396
|
Map.prototype._rebuildStyle = function (diff) {
|
|
27504
29397
|
if (diff === void 0) { diff = true; }
|
|
27505
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
27506
|
-
return __generator(this, function (_a) {
|
|
29398
|
+
return __awaiter$4(this, void 0, void 0, function () {
|
|
29399
|
+
return __generator$4(this, function (_a) {
|
|
27507
29400
|
this.styles.setStyle(this.styleOptions, diff);
|
|
27508
29401
|
this.imageSprite._restoreImages();
|
|
27509
29402
|
return [2 /*return*/];
|
|
@@ -27548,7 +29441,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
27548
29441
|
// Send the fetch using the transformed parameters.
|
|
27549
29442
|
return fetch(requestParams.url || url, {
|
|
27550
29443
|
credentials: requestParams.credentials,
|
|
27551
|
-
headers: __assign(__assign({}, headers), requestParams.headers),
|
|
29444
|
+
headers: __assign$9(__assign$9({}, headers), requestParams.headers),
|
|
27552
29445
|
method: "GET",
|
|
27553
29446
|
mode: "cors",
|
|
27554
29447
|
});
|
|
@@ -27719,6 +29612,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
27719
29612
|
return Map;
|
|
27720
29613
|
}(EventEmitter));
|
|
27721
29614
|
|
|
29615
|
+
var __read$g = (window && window.__read) || function (o, n) {
|
|
29616
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
29617
|
+
if (!m) return o;
|
|
29618
|
+
var i = m.call(o), r, ar = [], e;
|
|
29619
|
+
try {
|
|
29620
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
29621
|
+
}
|
|
29622
|
+
catch (error) { e = { error: error }; }
|
|
29623
|
+
finally {
|
|
29624
|
+
try {
|
|
29625
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
29626
|
+
}
|
|
29627
|
+
finally { if (e) throw e.error; }
|
|
29628
|
+
}
|
|
29629
|
+
return ar;
|
|
29630
|
+
};
|
|
29631
|
+
var __spreadArray$a = (window && window.__spreadArray) || function (to, from) {
|
|
29632
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
29633
|
+
to[j] = from[i];
|
|
29634
|
+
return to;
|
|
29635
|
+
};
|
|
27722
29636
|
/** A layout template for a popup. */
|
|
27723
29637
|
var PopupTemplate = /** @class */ (function () {
|
|
27724
29638
|
function PopupTemplate() {
|
|
@@ -27860,7 +29774,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
27860
29774
|
lineLength = 50;
|
|
27861
29775
|
}
|
|
27862
29776
|
var lines = c.split(/<(tr|div|br|li|h[0-9]|p>)/);
|
|
27863
|
-
longestStringLength = Math.max.apply(Math,
|
|
29777
|
+
longestStringLength = Math.max.apply(Math, __spreadArray$a([], __read$g((lines.map(function (el) { return el.replace(/<[a-zA-Z0-9\s=\/]+>/g, "").length; }))))) - 1;
|
|
27864
29778
|
var w = Math.ceil(longestStringLength * 3.5);
|
|
27865
29779
|
if (w < width) {
|
|
27866
29780
|
width = w;
|