azure-maps-control 3.0.0-preview.1 → 3.0.0-preview.2
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/ReadMe.md +50 -8
- package/dist/atlas-core-bare-snr-min.js +1 -1
- package/dist/atlas-core-bare-snr.js +2131 -308
- package/dist/atlas-core-bare.js +2255 -342
- package/dist/atlas-core-bare.min.js +1 -1
- package/dist/atlas-core-snr.js +2721 -678
- package/dist/atlas-core.js +2844 -711
- package/dist/atlas-core.min.js +19 -19
- package/dist/atlas-internal.min.js +1 -1
- package/dist/atlas.css +353 -349
- package/dist/atlas.js +2844 -711
- package/dist/atlas.min.css +1 -1
- package/dist/atlas.min.js +21 -21
- package/package.json +9 -8
- package/thirdpartynotices.txt +0 -0
- package/typings/index.d.ts +14 -0
package/dist/atlas-core-bare.js
CHANGED
|
@@ -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 = "3.0.0-preview.
|
|
268
|
+
var version = "3.0.0-preview.2";
|
|
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.
|
|
@@ -2869,11 +2881,11 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
2869
2881
|
* _.keysIn(new Foo);
|
|
2870
2882
|
* // => ['a', 'b', 'c'] (iteration order is not guaranteed)
|
|
2871
2883
|
*/
|
|
2872
|
-
function keysIn
|
|
2884
|
+
function keysIn(object) {
|
|
2873
2885
|
return isArrayLike_1(object) ? _arrayLikeKeys(object, true) : _baseKeysIn(object);
|
|
2874
2886
|
}
|
|
2875
2887
|
|
|
2876
|
-
var keysIn_1 = keysIn
|
|
2888
|
+
var keysIn_1 = keysIn;
|
|
2877
2889
|
|
|
2878
2890
|
/**
|
|
2879
2891
|
* The base implementation of `_.assignIn` without support for multiple sources
|
|
@@ -3652,7 +3664,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
3652
3664
|
|
|
3653
3665
|
var keysFunc = isFull
|
|
3654
3666
|
? (isFlat ? _getAllKeysIn : _getAllKeys)
|
|
3655
|
-
: (isFlat ?
|
|
3667
|
+
: (isFlat ? keysIn_1 : keys_1);
|
|
3656
3668
|
|
|
3657
3669
|
var props = isArr ? undefined : keysFunc(value);
|
|
3658
3670
|
_arrayEach(props || value, function(subValue, key) {
|
|
@@ -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);
|
|
@@ -5097,10 +5263,11 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
5097
5263
|
if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
|
|
5098
5264
|
return false;
|
|
5099
5265
|
}
|
|
5100
|
-
//
|
|
5101
|
-
var
|
|
5102
|
-
|
|
5103
|
-
|
|
5266
|
+
// Check that cyclic values are equal.
|
|
5267
|
+
var arrStacked = stack.get(array);
|
|
5268
|
+
var othStacked = stack.get(other);
|
|
5269
|
+
if (arrStacked && othStacked) {
|
|
5270
|
+
return arrStacked == other && othStacked == array;
|
|
5104
5271
|
}
|
|
5105
5272
|
var index = -1,
|
|
5106
5273
|
result = true,
|
|
@@ -5335,10 +5502,11 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
5335
5502
|
return false;
|
|
5336
5503
|
}
|
|
5337
5504
|
}
|
|
5338
|
-
//
|
|
5339
|
-
var
|
|
5340
|
-
|
|
5341
|
-
|
|
5505
|
+
// Check that cyclic values are equal.
|
|
5506
|
+
var objStacked = stack.get(object);
|
|
5507
|
+
var othStacked = stack.get(other);
|
|
5508
|
+
if (objStacked && othStacked) {
|
|
5509
|
+
return objStacked == other && othStacked == object;
|
|
5342
5510
|
}
|
|
5343
5511
|
var result = true;
|
|
5344
5512
|
stack.set(object, other);
|
|
@@ -5677,11 +5845,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
5677
5845
|
return Feature;
|
|
5678
5846
|
}());
|
|
5679
5847
|
|
|
5848
|
+
var __extends$d = (window && window.__extends) || (function () {
|
|
5849
|
+
var extendStatics = function (d, b) {
|
|
5850
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5851
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5852
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
5853
|
+
return extendStatics(d, b);
|
|
5854
|
+
};
|
|
5855
|
+
return function (d, b) {
|
|
5856
|
+
if (typeof b !== "function" && b !== null)
|
|
5857
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
5858
|
+
extendStatics(d, b);
|
|
5859
|
+
function __() { this.constructor = d; }
|
|
5860
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
5861
|
+
};
|
|
5862
|
+
})();
|
|
5680
5863
|
/**
|
|
5681
5864
|
* Represent a pixel coordinate or offset. Extends an array of [x, y].
|
|
5682
5865
|
*/
|
|
5683
5866
|
var Pixel = /** @class */ (function (_super) {
|
|
5684
|
-
__extends(Pixel, _super);
|
|
5867
|
+
__extends$d(Pixel, _super);
|
|
5685
5868
|
/**
|
|
5686
5869
|
* Constructs a Pixel object and initializes it with the specified x and y coordinates.
|
|
5687
5870
|
* @param x The horizontal pixel offset.
|
|
@@ -5797,6 +5980,33 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
5797
5980
|
return Point;
|
|
5798
5981
|
}());
|
|
5799
5982
|
|
|
5983
|
+
var __read$2 = (window && window.__read) || function (o, n) {
|
|
5984
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
5985
|
+
if (!m) return o;
|
|
5986
|
+
var i = m.call(o), r, ar = [], e;
|
|
5987
|
+
try {
|
|
5988
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
5989
|
+
}
|
|
5990
|
+
catch (error) { e = { error: error }; }
|
|
5991
|
+
finally {
|
|
5992
|
+
try {
|
|
5993
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
5994
|
+
}
|
|
5995
|
+
finally { if (e) throw e.error; }
|
|
5996
|
+
}
|
|
5997
|
+
return ar;
|
|
5998
|
+
};
|
|
5999
|
+
var __values$2 = (window && window.__values) || function(o) {
|
|
6000
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
6001
|
+
if (m) return m.call(o);
|
|
6002
|
+
if (o && typeof o.length === "number") return {
|
|
6003
|
+
next: function () {
|
|
6004
|
+
if (o && i >= o.length) o = void 0;
|
|
6005
|
+
return { value: o && o[i++], done: !o };
|
|
6006
|
+
}
|
|
6007
|
+
};
|
|
6008
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
6009
|
+
};
|
|
5800
6010
|
//////////////////////
|
|
5801
6011
|
/// Constants
|
|
5802
6012
|
//////////////////////
|
|
@@ -6761,8 +6971,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
6761
6971
|
if (k + 1 >= coords.length) {
|
|
6762
6972
|
continue;
|
|
6763
6973
|
}
|
|
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];
|
|
6974
|
+
var _a = __read$2(coords[k], 2), lon1 = _a[0], lat1 = _a[1];
|
|
6975
|
+
var _b = __read$2(coords[k + 1], 2), lon2 = _b[0], lat2 = _b[1];
|
|
6766
6976
|
// split the line by antimeridian
|
|
6767
6977
|
// and break geodesic into two line segments
|
|
6768
6978
|
if (Math.abs(lon2 - lon1) > 180.0) {
|
|
@@ -6833,8 +7043,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
6833
7043
|
if (k + 1 >= geodesic.length) {
|
|
6834
7044
|
continue;
|
|
6835
7045
|
}
|
|
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];
|
|
7046
|
+
var _a = __read$2(geodesic[k], 2), lon1 = _a[0], lat1 = _a[1];
|
|
7047
|
+
var _b = __read$2(geodesic[k + 1], 2), lon2 = _b[0], lat2 = _b[1];
|
|
6838
7048
|
// split the line by antimeridian
|
|
6839
7049
|
// and break geodesic into two line segments
|
|
6840
7050
|
if (Math.abs(lon2 - lon1) > 180.0) {
|
|
@@ -7045,7 +7255,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
7045
7255
|
function getPixelHeading(origin, destination) {
|
|
7046
7256
|
origin = getPosition(origin);
|
|
7047
7257
|
destination = getPosition(destination);
|
|
7048
|
-
var _a = __read(mercatorPositionsToPixels([origin, destination], 21), 2), p1 = _a[0], p2 = _a[1];
|
|
7258
|
+
var _a = __read$2(mercatorPositionsToPixels([origin, destination], 21), 2), p1 = _a[0], p2 = _a[1];
|
|
7049
7259
|
var dx = (p2[0] - p1[0]);
|
|
7050
7260
|
var dy = (p1[1] - p2[1]);
|
|
7051
7261
|
var alpha = ((5 / 2 * Math.PI) - Math.atan2(dy, dx)) * INV_PI_BY_180 % 360;
|
|
@@ -7592,7 +7802,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
7592
7802
|
});
|
|
7593
7803
|
var lower = [];
|
|
7594
7804
|
try {
|
|
7595
|
-
for (var positions_1 = __values(positions), positions_1_1 = positions_1.next(); !positions_1_1.done; positions_1_1 = positions_1.next()) {
|
|
7805
|
+
for (var positions_1 = __values$2(positions), positions_1_1 = positions_1.next(); !positions_1_1.done; positions_1_1 = positions_1.next()) {
|
|
7596
7806
|
var position = positions_1_1.value;
|
|
7597
7807
|
while (lower.length >= 2 && _cross(lower[lower.length - 2], lower[lower.length - 1], position) <= 0) {
|
|
7598
7808
|
lower.pop();
|
|
@@ -7874,12 +8084,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
7874
8084
|
return result;
|
|
7875
8085
|
}
|
|
7876
8086
|
|
|
8087
|
+
var __extends$e = (window && window.__extends) || (function () {
|
|
8088
|
+
var extendStatics = function (d, b) {
|
|
8089
|
+
extendStatics = Object.setPrototypeOf ||
|
|
8090
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
8091
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
8092
|
+
return extendStatics(d, b);
|
|
8093
|
+
};
|
|
8094
|
+
return function (d, b) {
|
|
8095
|
+
if (typeof b !== "function" && b !== null)
|
|
8096
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
8097
|
+
extendStatics(d, b);
|
|
8098
|
+
function __() { this.constructor = d; }
|
|
8099
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
8100
|
+
};
|
|
8101
|
+
})();
|
|
7877
8102
|
/**
|
|
7878
8103
|
* A GeoJSON Position object - an array that specifies the longitude and latitude of a location. The
|
|
7879
8104
|
* full description is detailed in [RFC 7946]{@link https://tools.ietf.org/html/rfc7946#section-3.1.1}.
|
|
7880
8105
|
*/
|
|
7881
8106
|
var Position = /** @class */ (function (_super) {
|
|
7882
|
-
__extends(Position, _super);
|
|
8107
|
+
__extends$e(Position, _super);
|
|
7883
8108
|
/**
|
|
7884
8109
|
* Constructs a Position.
|
|
7885
8110
|
* @param longitude The position's longitude.
|
|
@@ -8071,11 +8296,37 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
8071
8296
|
return Polygon;
|
|
8072
8297
|
}());
|
|
8073
8298
|
|
|
8299
|
+
var __extends$f = (window && window.__extends) || (function () {
|
|
8300
|
+
var extendStatics = function (d, b) {
|
|
8301
|
+
extendStatics = Object.setPrototypeOf ||
|
|
8302
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
8303
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
8304
|
+
return extendStatics(d, b);
|
|
8305
|
+
};
|
|
8306
|
+
return function (d, b) {
|
|
8307
|
+
if (typeof b !== "function" && b !== null)
|
|
8308
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
8309
|
+
extendStatics(d, b);
|
|
8310
|
+
function __() { this.constructor = d; }
|
|
8311
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
8312
|
+
};
|
|
8313
|
+
})();
|
|
8314
|
+
var __values$3 = (window && window.__values) || function(o) {
|
|
8315
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
8316
|
+
if (m) return m.call(o);
|
|
8317
|
+
if (o && typeof o.length === "number") return {
|
|
8318
|
+
next: function () {
|
|
8319
|
+
if (o && i >= o.length) o = void 0;
|
|
8320
|
+
return { value: o && o[i++], done: !o };
|
|
8321
|
+
}
|
|
8322
|
+
};
|
|
8323
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
8324
|
+
};
|
|
8074
8325
|
/**
|
|
8075
8326
|
* A helper class that wraps a Geometry or Feature and makes it easy to update and maintain.
|
|
8076
8327
|
*/
|
|
8077
8328
|
var Shape = /** @class */ (function (_super) {
|
|
8078
|
-
__extends(Shape, _super);
|
|
8329
|
+
__extends$f(Shape, _super);
|
|
8079
8330
|
function Shape(data, id, properties) {
|
|
8080
8331
|
var _this = _super.call(this) || this;
|
|
8081
8332
|
var geometry;
|
|
@@ -8147,7 +8398,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
8147
8398
|
else if (geoType === "MultiLineString") {
|
|
8148
8399
|
var pos = positions;
|
|
8149
8400
|
try {
|
|
8150
|
-
for (var pos_1 = __values(pos), pos_1_1 = pos_1.next(); !pos_1_1.done; pos_1_1 = pos_1.next()) {
|
|
8401
|
+
for (var pos_1 = __values$3(pos), pos_1_1 = pos_1.next(); !pos_1_1.done; pos_1_1 = pos_1.next()) {
|
|
8151
8402
|
var p = pos_1_1.value;
|
|
8152
8403
|
bbox = BoundingBox.merge(bbox, BoundingBox.fromPositions(p));
|
|
8153
8404
|
}
|
|
@@ -8163,7 +8414,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
8163
8414
|
else if (geoType === "MultiPolygon") {
|
|
8164
8415
|
var pos = positions;
|
|
8165
8416
|
try {
|
|
8166
|
-
for (var pos_2 = __values(pos), pos_2_1 = pos_2.next(); !pos_2_1.done; pos_2_1 = pos_2.next()) {
|
|
8417
|
+
for (var pos_2 = __values$3(pos), pos_2_1 = pos_2.next(); !pos_2_1.done; pos_2_1 = pos_2.next()) {
|
|
8167
8418
|
var p1 = pos_2_1.value;
|
|
8168
8419
|
// only need to check the exterior ring of Polygon
|
|
8169
8420
|
bbox = BoundingBox.merge(bbox, BoundingBox.fromPositions(p1[0]));
|
|
@@ -8371,6 +8622,32 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
8371
8622
|
return Shape;
|
|
8372
8623
|
}(EventEmitter));
|
|
8373
8624
|
|
|
8625
|
+
var __extends$g = (window && window.__extends) || (function () {
|
|
8626
|
+
var extendStatics = function (d, b) {
|
|
8627
|
+
extendStatics = Object.setPrototypeOf ||
|
|
8628
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
8629
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
8630
|
+
return extendStatics(d, b);
|
|
8631
|
+
};
|
|
8632
|
+
return function (d, b) {
|
|
8633
|
+
if (typeof b !== "function" && b !== null)
|
|
8634
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
8635
|
+
extendStatics(d, b);
|
|
8636
|
+
function __() { this.constructor = d; }
|
|
8637
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
8638
|
+
};
|
|
8639
|
+
})();
|
|
8640
|
+
var __values$4 = (window && window.__values) || function(o) {
|
|
8641
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
8642
|
+
if (m) return m.call(o);
|
|
8643
|
+
if (o && typeof o.length === "number") return {
|
|
8644
|
+
next: function () {
|
|
8645
|
+
if (o && i >= o.length) o = void 0;
|
|
8646
|
+
return { value: o && o[i++], done: !o };
|
|
8647
|
+
}
|
|
8648
|
+
};
|
|
8649
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
8650
|
+
};
|
|
8374
8651
|
/**
|
|
8375
8652
|
* A GeoJSON BoundingBox object - an array that defines a shape whose edges follow lines of constant longitude,
|
|
8376
8653
|
* latitude, and elevation. All axes of the most southwesterly point are followed by all axes of the more northeasterly
|
|
@@ -8378,7 +8655,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
8378
8655
|
* [RFC 7946]{@link https://tools.ietf.org/html/rfc7946#section-5}.
|
|
8379
8656
|
*/
|
|
8380
8657
|
var BoundingBox = /** @class */ (function (_super) {
|
|
8381
|
-
__extends(BoundingBox, _super);
|
|
8658
|
+
__extends$g(BoundingBox, _super);
|
|
8382
8659
|
function BoundingBox(southwestPositionOrPositions, northeastPosition) {
|
|
8383
8660
|
var _this = this;
|
|
8384
8661
|
if (southwestPositionOrPositions && northeastPosition) {
|
|
@@ -8784,7 +9061,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
8784
9061
|
var bounds = null;
|
|
8785
9062
|
if (Array.isArray(data) && data.length > 0) {
|
|
8786
9063
|
try {
|
|
8787
|
-
for (var data_1 = __values(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {
|
|
9064
|
+
for (var data_1 = __values$4(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {
|
|
8788
9065
|
var datum = data_1_1.value;
|
|
8789
9066
|
tempBounds = BoundingBox.fromData(datum);
|
|
8790
9067
|
if (tempBounds != null) {
|
|
@@ -9095,6 +9372,21 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
9095
9372
|
return MultiPolygon;
|
|
9096
9373
|
}());
|
|
9097
9374
|
|
|
9375
|
+
var __extends$h = (window && window.__extends) || (function () {
|
|
9376
|
+
var extendStatics = function (d, b) {
|
|
9377
|
+
extendStatics = Object.setPrototypeOf ||
|
|
9378
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
9379
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
9380
|
+
return extendStatics(d, b);
|
|
9381
|
+
};
|
|
9382
|
+
return function (d, b) {
|
|
9383
|
+
if (typeof b !== "function" && b !== null)
|
|
9384
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9385
|
+
extendStatics(d, b);
|
|
9386
|
+
function __() { this.constructor = d; }
|
|
9387
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
9388
|
+
};
|
|
9389
|
+
})();
|
|
9098
9390
|
//Based on: https://github.com/mapbox/mapbox-gl-js/blob/main/src/geo/mercator_coordinate.js
|
|
9099
9391
|
/**
|
|
9100
9392
|
* A `MercatorPoint` object represents a projected three dimensional position.
|
|
@@ -9111,7 +9403,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
9111
9403
|
* The `z` dimension of `MercatorPoint` is conformal. A cube in the mercator coordinate space would be rendered as a cube.
|
|
9112
9404
|
*/
|
|
9113
9405
|
var MercatorPoint = /** @class */ (function (_super) {
|
|
9114
|
-
__extends(MercatorPoint, _super);
|
|
9406
|
+
__extends$h(MercatorPoint, _super);
|
|
9115
9407
|
/**
|
|
9116
9408
|
* Constructs a MercatorPoint.
|
|
9117
9409
|
* @param x A points x position in mercator units.
|
|
@@ -9350,6 +9642,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
9350
9642
|
return arrayPoints_1(points, tolerance, true);
|
|
9351
9643
|
}
|
|
9352
9644
|
|
|
9645
|
+
var __values$5 = (window && window.__values) || function(o) {
|
|
9646
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
9647
|
+
if (m) return m.call(o);
|
|
9648
|
+
if (o && typeof o.length === "number") return {
|
|
9649
|
+
next: function () {
|
|
9650
|
+
if (o && i >= o.length) o = void 0;
|
|
9651
|
+
return { value: o && o[i++], done: !o };
|
|
9652
|
+
}
|
|
9653
|
+
};
|
|
9654
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
9655
|
+
};
|
|
9353
9656
|
/**
|
|
9354
9657
|
* An Affine Transform class generated from a set of reference points.
|
|
9355
9658
|
*/
|
|
@@ -9399,7 +9702,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
9399
9702
|
if (points && Array.isArray(points) && Array.isArray(points[0])) {
|
|
9400
9703
|
var pos = [];
|
|
9401
9704
|
try {
|
|
9402
|
-
for (var points_1 = __values(points), points_1_1 = points_1.next(); !points_1_1.done; points_1_1 = points_1.next()) {
|
|
9705
|
+
for (var points_1 = __values$5(points), points_1_1 = points_1.next(); !points_1_1.done; points_1_1 = points_1.next()) {
|
|
9403
9706
|
var subPoints = points_1_1.value;
|
|
9404
9707
|
pos.push(this.transform(subPoints, transformMatrix, decimals));
|
|
9405
9708
|
}
|
|
@@ -9599,11 +9902,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
9599
9902
|
simplify: simplify
|
|
9600
9903
|
});
|
|
9601
9904
|
|
|
9905
|
+
var __extends$i = (window && window.__extends) || (function () {
|
|
9906
|
+
var extendStatics = function (d, b) {
|
|
9907
|
+
extendStatics = Object.setPrototypeOf ||
|
|
9908
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
9909
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
9910
|
+
return extendStatics(d, b);
|
|
9911
|
+
};
|
|
9912
|
+
return function (d, b) {
|
|
9913
|
+
if (typeof b !== "function" && b !== null)
|
|
9914
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9915
|
+
extendStatics(d, b);
|
|
9916
|
+
function __() { this.constructor = d; }
|
|
9917
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
9918
|
+
};
|
|
9919
|
+
})();
|
|
9602
9920
|
/**
|
|
9603
9921
|
* The options for a ZoomControl object.
|
|
9604
9922
|
*/
|
|
9605
9923
|
var ZoomControlOptions = /** @class */ (function (_super) {
|
|
9606
|
-
__extends(ZoomControlOptions, _super);
|
|
9924
|
+
__extends$i(ZoomControlOptions, _super);
|
|
9607
9925
|
function ZoomControlOptions() {
|
|
9608
9926
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
9609
9927
|
/**
|
|
@@ -9623,11 +9941,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
9623
9941
|
return ZoomControlOptions;
|
|
9624
9942
|
}(Options));
|
|
9625
9943
|
|
|
9944
|
+
var __extends$j = (window && window.__extends) || (function () {
|
|
9945
|
+
var extendStatics = function (d, b) {
|
|
9946
|
+
extendStatics = Object.setPrototypeOf ||
|
|
9947
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
9948
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
9949
|
+
return extendStatics(d, b);
|
|
9950
|
+
};
|
|
9951
|
+
return function (d, b) {
|
|
9952
|
+
if (typeof b !== "function" && b !== null)
|
|
9953
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9954
|
+
extendStatics(d, b);
|
|
9955
|
+
function __() { this.constructor = d; }
|
|
9956
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
9957
|
+
};
|
|
9958
|
+
})();
|
|
9626
9959
|
/**
|
|
9627
9960
|
* A control for changing the zoom of the map.
|
|
9628
9961
|
*/
|
|
9629
9962
|
var ZoomControl = /** @class */ (function (_super) {
|
|
9630
|
-
__extends(ZoomControl, _super);
|
|
9963
|
+
__extends$j(ZoomControl, _super);
|
|
9631
9964
|
/**
|
|
9632
9965
|
* Constructs a ZoomControl.
|
|
9633
9966
|
* @param options The options for the control.
|
|
@@ -9789,6 +10122,21 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
9789
10122
|
|
|
9790
10123
|
var cloneDeepWith_1 = cloneDeepWith;
|
|
9791
10124
|
|
|
10125
|
+
var __extends$k = (window && window.__extends) || (function () {
|
|
10126
|
+
var extendStatics = function (d, b) {
|
|
10127
|
+
extendStatics = Object.setPrototypeOf ||
|
|
10128
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
10129
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10130
|
+
return extendStatics(d, b);
|
|
10131
|
+
};
|
|
10132
|
+
return function (d, b) {
|
|
10133
|
+
if (typeof b !== "function" && b !== null)
|
|
10134
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10135
|
+
extendStatics(d, b);
|
|
10136
|
+
function __() { this.constructor = d; }
|
|
10137
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
10138
|
+
};
|
|
10139
|
+
})();
|
|
9792
10140
|
/**
|
|
9793
10141
|
* A data source for managing shape data that will be displayed on the map.
|
|
9794
10142
|
* A data source must be added to a layer before it is visible on the map.
|
|
@@ -9796,7 +10144,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
9796
10144
|
* @module Object Definitions
|
|
9797
10145
|
*/
|
|
9798
10146
|
var DataSourceOptions = /** @class */ (function (_super) {
|
|
9799
|
-
__extends(DataSourceOptions, _super);
|
|
10147
|
+
__extends$k(DataSourceOptions, _super);
|
|
9800
10148
|
function DataSourceOptions() {
|
|
9801
10149
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
9802
10150
|
/*
|
|
@@ -9851,12 +10199,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
9851
10199
|
return DataSourceOptions;
|
|
9852
10200
|
}(Options));
|
|
9853
10201
|
|
|
10202
|
+
var __extends$l = (window && window.__extends) || (function () {
|
|
10203
|
+
var extendStatics = function (d, b) {
|
|
10204
|
+
extendStatics = Object.setPrototypeOf ||
|
|
10205
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
10206
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10207
|
+
return extendStatics(d, b);
|
|
10208
|
+
};
|
|
10209
|
+
return function (d, b) {
|
|
10210
|
+
if (typeof b !== "function" && b !== null)
|
|
10211
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10212
|
+
extendStatics(d, b);
|
|
10213
|
+
function __() { this.constructor = d; }
|
|
10214
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
10215
|
+
};
|
|
10216
|
+
})();
|
|
9854
10217
|
/**
|
|
9855
10218
|
* A base abstract class in which all other source objects extend.
|
|
9856
10219
|
* A source must be added to a layer before it is visible on the map.
|
|
9857
10220
|
*/
|
|
9858
10221
|
var Source = /** @class */ (function (_super) {
|
|
9859
|
-
__extends(Source, _super);
|
|
10222
|
+
__extends$l(Source, _super);
|
|
9860
10223
|
function Source(id) {
|
|
9861
10224
|
var _this = _super.call(this) || this;
|
|
9862
10225
|
_this.id = id || uuidRandom();
|
|
@@ -9890,13 +10253,39 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
9890
10253
|
return Source;
|
|
9891
10254
|
}(EventEmitter));
|
|
9892
10255
|
|
|
10256
|
+
var __extends$m = (window && window.__extends) || (function () {
|
|
10257
|
+
var extendStatics = function (d, b) {
|
|
10258
|
+
extendStatics = Object.setPrototypeOf ||
|
|
10259
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
10260
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10261
|
+
return extendStatics(d, b);
|
|
10262
|
+
};
|
|
10263
|
+
return function (d, b) {
|
|
10264
|
+
if (typeof b !== "function" && b !== null)
|
|
10265
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10266
|
+
extendStatics(d, b);
|
|
10267
|
+
function __() { this.constructor = d; }
|
|
10268
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
10269
|
+
};
|
|
10270
|
+
})();
|
|
10271
|
+
var __values$6 = (window && window.__values) || function(o) {
|
|
10272
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
10273
|
+
if (m) return m.call(o);
|
|
10274
|
+
if (o && typeof o.length === "number") return {
|
|
10275
|
+
next: function () {
|
|
10276
|
+
if (o && i >= o.length) o = void 0;
|
|
10277
|
+
return { value: o && o[i++], done: !o };
|
|
10278
|
+
}
|
|
10279
|
+
};
|
|
10280
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
10281
|
+
};
|
|
9893
10282
|
/**
|
|
9894
10283
|
* A data source class that makes it easy to manage shapes data that will be displayed on the map.
|
|
9895
10284
|
* A data source must be added to a layer before it is visible on the map.
|
|
9896
10285
|
* The DataSource class may be used with the SymbolLayer, LineLayer, PolygonLayer, BubbleLayer, and HeatMapLayer.
|
|
9897
10286
|
*/
|
|
9898
10287
|
var DataSource = /** @class */ (function (_super) {
|
|
9899
|
-
__extends(DataSource, _super);
|
|
10288
|
+
__extends$m(DataSource, _super);
|
|
9900
10289
|
/**
|
|
9901
10290
|
* A data source class that makes it easy to manage shapes data that will be displayed on the map.
|
|
9902
10291
|
* A data source must be added to a layer before it is visible on the map.
|
|
@@ -10078,7 +10467,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10078
10467
|
var e_1, _a;
|
|
10079
10468
|
var shapes = Array.isArray(shape) ? shape : [shape];
|
|
10080
10469
|
try {
|
|
10081
|
-
for (var shapes_1 = __values(shapes), shapes_1_1 = shapes_1.next(); !shapes_1_1.done; shapes_1_1 = shapes_1.next()) {
|
|
10470
|
+
for (var shapes_1 = __values$6(shapes), shapes_1_1 = shapes_1.next(); !shapes_1_1.done; shapes_1_1 = shapes_1.next()) {
|
|
10082
10471
|
var s = shapes_1_1.value;
|
|
10083
10472
|
if (typeof s === "number") {
|
|
10084
10473
|
this._removeByIndex(s);
|
|
@@ -10105,7 +10494,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10105
10494
|
var e_2, _a;
|
|
10106
10495
|
var ids = Array.isArray(id) ? id : [id];
|
|
10107
10496
|
try {
|
|
10108
|
-
for (var ids_1 = __values(ids), ids_1_1 = ids_1.next(); !ids_1_1.done; ids_1_1 = ids_1.next()) {
|
|
10497
|
+
for (var ids_1 = __values$6(ids), ids_1_1 = ids_1.next(); !ids_1_1.done; ids_1_1 = ids_1.next()) {
|
|
10109
10498
|
var i = ids_1_1.value;
|
|
10110
10499
|
this._removeById(i);
|
|
10111
10500
|
}
|
|
@@ -10244,7 +10633,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10244
10633
|
data = Array.isArray(data) ? data : [data];
|
|
10245
10634
|
if (typeof index !== "number") {
|
|
10246
10635
|
try {
|
|
10247
|
-
for (var data_1 = __values(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {
|
|
10636
|
+
for (var data_1 = __values$6(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {
|
|
10248
10637
|
var d = data_1_1.value;
|
|
10249
10638
|
this.shapes.push(d);
|
|
10250
10639
|
this.shapesMap.set(d.getId(), this.shapes.length - 1);
|
|
@@ -10265,7 +10654,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10265
10654
|
}
|
|
10266
10655
|
}
|
|
10267
10656
|
try {
|
|
10268
|
-
for (var data_2 = __values(data), data_2_1 = data_2.next(); !data_2_1.done; data_2_1 = data_2.next()) {
|
|
10657
|
+
for (var data_2 = __values$6(data), data_2_1 = data_2.next(); !data_2_1.done; data_2_1 = data_2.next()) {
|
|
10269
10658
|
var d = data_2_1.value;
|
|
10270
10659
|
d._setDataSource(this);
|
|
10271
10660
|
}
|
|
@@ -10322,6 +10711,21 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10322
10711
|
return DataSource;
|
|
10323
10712
|
}(Source));
|
|
10324
10713
|
|
|
10714
|
+
var __extends$n = (window && window.__extends) || (function () {
|
|
10715
|
+
var extendStatics = function (d, b) {
|
|
10716
|
+
extendStatics = Object.setPrototypeOf ||
|
|
10717
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
10718
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10719
|
+
return extendStatics(d, b);
|
|
10720
|
+
};
|
|
10721
|
+
return function (d, b) {
|
|
10722
|
+
if (typeof b !== "function" && b !== null)
|
|
10723
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10724
|
+
extendStatics(d, b);
|
|
10725
|
+
function __() { this.constructor = d; }
|
|
10726
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
10727
|
+
};
|
|
10728
|
+
})();
|
|
10325
10729
|
/**
|
|
10326
10730
|
* A data source for managing shape data that will be displayed on the map.
|
|
10327
10731
|
* A data source must be added to a layer before it is visible on the map.
|
|
@@ -10329,7 +10733,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10329
10733
|
* @module Object Definitions
|
|
10330
10734
|
*/
|
|
10331
10735
|
var VectorTileSourceOptions = /** @class */ (function (_super) {
|
|
10332
|
-
__extends(VectorTileSourceOptions, _super);
|
|
10736
|
+
__extends$n(VectorTileSourceOptions, _super);
|
|
10333
10737
|
function VectorTileSourceOptions() {
|
|
10334
10738
|
/*
|
|
10335
10739
|
* TODO:
|
|
@@ -10382,12 +10786,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10382
10786
|
return VectorTileSourceOptions;
|
|
10383
10787
|
}(Options));
|
|
10384
10788
|
|
|
10789
|
+
var __extends$o = (window && window.__extends) || (function () {
|
|
10790
|
+
var extendStatics = function (d, b) {
|
|
10791
|
+
extendStatics = Object.setPrototypeOf ||
|
|
10792
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
10793
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10794
|
+
return extendStatics(d, b);
|
|
10795
|
+
};
|
|
10796
|
+
return function (d, b) {
|
|
10797
|
+
if (typeof b !== "function" && b !== null)
|
|
10798
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10799
|
+
extendStatics(d, b);
|
|
10800
|
+
function __() { this.constructor = d; }
|
|
10801
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
10802
|
+
};
|
|
10803
|
+
})();
|
|
10385
10804
|
/**
|
|
10386
10805
|
* A vector tile source describes how to access a vector tile layer.
|
|
10387
10806
|
* Vector tile sources can be used with; SymbolLayer, LineLayer, PolygonLayer, BubbleLayer, HeatmapLayer and VectorTileLayer.
|
|
10388
10807
|
*/
|
|
10389
10808
|
var VectorTileSource = /** @class */ (function (_super) {
|
|
10390
|
-
__extends(VectorTileSource, _super);
|
|
10809
|
+
__extends$o(VectorTileSource, _super);
|
|
10391
10810
|
function VectorTileSource(id, options) {
|
|
10392
10811
|
var _this = _super.call(this, id) || this;
|
|
10393
10812
|
_this.options = new VectorTileSourceOptions().merge(cloneDeep_1(options));
|
|
@@ -10442,11 +10861,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10442
10861
|
VectorTileSource: VectorTileSource
|
|
10443
10862
|
});
|
|
10444
10863
|
|
|
10864
|
+
var __extends$p = (window && window.__extends) || (function () {
|
|
10865
|
+
var extendStatics = function (d, b) {
|
|
10866
|
+
extendStatics = Object.setPrototypeOf ||
|
|
10867
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
10868
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10869
|
+
return extendStatics(d, b);
|
|
10870
|
+
};
|
|
10871
|
+
return function (d, b) {
|
|
10872
|
+
if (typeof b !== "function" && b !== null)
|
|
10873
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10874
|
+
extendStatics(d, b);
|
|
10875
|
+
function __() { this.constructor = d; }
|
|
10876
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
10877
|
+
};
|
|
10878
|
+
})();
|
|
10445
10879
|
/**
|
|
10446
10880
|
* Abstract class for other layer classes to extend.
|
|
10447
10881
|
*/
|
|
10448
10882
|
var Layer = /** @class */ (function (_super) {
|
|
10449
|
-
__extends(Layer, _super);
|
|
10883
|
+
__extends$p(Layer, _super);
|
|
10450
10884
|
function Layer(id) {
|
|
10451
10885
|
var _this =
|
|
10452
10886
|
// Assign an random id using a UUID if none was specified.
|
|
@@ -10551,11 +10985,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10551
10985
|
return Layer;
|
|
10552
10986
|
}(EventEmitter));
|
|
10553
10987
|
|
|
10988
|
+
var __extends$q = (window && window.__extends) || (function () {
|
|
10989
|
+
var extendStatics = function (d, b) {
|
|
10990
|
+
extendStatics = Object.setPrototypeOf ||
|
|
10991
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
10992
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10993
|
+
return extendStatics(d, b);
|
|
10994
|
+
};
|
|
10995
|
+
return function (d, b) {
|
|
10996
|
+
if (typeof b !== "function" && b !== null)
|
|
10997
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10998
|
+
extendStatics(d, b);
|
|
10999
|
+
function __() { this.constructor = d; }
|
|
11000
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
11001
|
+
};
|
|
11002
|
+
})();
|
|
10554
11003
|
/**
|
|
10555
11004
|
* A base class which all other layer options inherit from.
|
|
10556
11005
|
*/
|
|
10557
11006
|
var LayerOptions = /** @class */ (function (_super) {
|
|
10558
|
-
__extends(LayerOptions, _super);
|
|
11007
|
+
__extends$q(LayerOptions, _super);
|
|
10559
11008
|
function LayerOptions() {
|
|
10560
11009
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
10561
11010
|
/**
|
|
@@ -10602,11 +11051,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10602
11051
|
return LayerOptions;
|
|
10603
11052
|
}(Options));
|
|
10604
11053
|
|
|
11054
|
+
var __extends$r = (window && window.__extends) || (function () {
|
|
11055
|
+
var extendStatics = function (d, b) {
|
|
11056
|
+
extendStatics = Object.setPrototypeOf ||
|
|
11057
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11058
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
11059
|
+
return extendStatics(d, b);
|
|
11060
|
+
};
|
|
11061
|
+
return function (d, b) {
|
|
11062
|
+
if (typeof b !== "function" && b !== null)
|
|
11063
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11064
|
+
extendStatics(d, b);
|
|
11065
|
+
function __() { this.constructor = d; }
|
|
11066
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
11067
|
+
};
|
|
11068
|
+
})();
|
|
10605
11069
|
/**
|
|
10606
11070
|
* Options used when rendering Point objects in a BubbleLayer.
|
|
10607
11071
|
*/
|
|
10608
11072
|
var BubbleLayerOptions = /** @class */ (function (_super) {
|
|
10609
|
-
__extends(BubbleLayerOptions, _super);
|
|
11073
|
+
__extends$r(BubbleLayerOptions, _super);
|
|
10610
11074
|
function BubbleLayerOptions() {
|
|
10611
11075
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
10612
11076
|
/**
|
|
@@ -10676,11 +11140,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10676
11140
|
return BubbleLayerOptions;
|
|
10677
11141
|
}(LayerOptions));
|
|
10678
11142
|
|
|
11143
|
+
var __extends$s = (window && window.__extends) || (function () {
|
|
11144
|
+
var extendStatics = function (d, b) {
|
|
11145
|
+
extendStatics = Object.setPrototypeOf ||
|
|
11146
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11147
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
11148
|
+
return extendStatics(d, b);
|
|
11149
|
+
};
|
|
11150
|
+
return function (d, b) {
|
|
11151
|
+
if (typeof b !== "function" && b !== null)
|
|
11152
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11153
|
+
extendStatics(d, b);
|
|
11154
|
+
function __() { this.constructor = d; }
|
|
11155
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
11156
|
+
};
|
|
11157
|
+
})();
|
|
10679
11158
|
/**
|
|
10680
11159
|
* Renders Point objects as scalable circles (bubbles).
|
|
10681
11160
|
*/
|
|
10682
11161
|
var BubbleLayer = /** @class */ (function (_super) {
|
|
10683
|
-
__extends(BubbleLayer, _super);
|
|
11162
|
+
__extends$s(BubbleLayer, _super);
|
|
10684
11163
|
/**
|
|
10685
11164
|
* Constructs a new BubbleLayer.
|
|
10686
11165
|
* @param source The id or instance of a data source which the layer will render.
|
|
@@ -10790,11 +11269,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10790
11269
|
return BubbleLayer;
|
|
10791
11270
|
}(Layer));
|
|
10792
11271
|
|
|
11272
|
+
var __extends$t = (window && window.__extends) || (function () {
|
|
11273
|
+
var extendStatics = function (d, b) {
|
|
11274
|
+
extendStatics = Object.setPrototypeOf ||
|
|
11275
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11276
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
11277
|
+
return extendStatics(d, b);
|
|
11278
|
+
};
|
|
11279
|
+
return function (d, b) {
|
|
11280
|
+
if (typeof b !== "function" && b !== null)
|
|
11281
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11282
|
+
extendStatics(d, b);
|
|
11283
|
+
function __() { this.constructor = d; }
|
|
11284
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
11285
|
+
};
|
|
11286
|
+
})();
|
|
10793
11287
|
/**
|
|
10794
11288
|
* Options used when rendering Point objects in a HeatMapLayer.
|
|
10795
11289
|
*/
|
|
10796
11290
|
var HeatMapLayerOptions = /** @class */ (function (_super) {
|
|
10797
|
-
__extends(HeatMapLayerOptions, _super);
|
|
11291
|
+
__extends$t(HeatMapLayerOptions, _super);
|
|
10798
11292
|
function HeatMapLayerOptions() {
|
|
10799
11293
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
10800
11294
|
/**
|
|
@@ -10861,11 +11355,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10861
11355
|
return HeatMapLayerOptions;
|
|
10862
11356
|
}(LayerOptions));
|
|
10863
11357
|
|
|
11358
|
+
var __extends$u = (window && window.__extends) || (function () {
|
|
11359
|
+
var extendStatics = function (d, b) {
|
|
11360
|
+
extendStatics = Object.setPrototypeOf ||
|
|
11361
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11362
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
11363
|
+
return extendStatics(d, b);
|
|
11364
|
+
};
|
|
11365
|
+
return function (d, b) {
|
|
11366
|
+
if (typeof b !== "function" && b !== null)
|
|
11367
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11368
|
+
extendStatics(d, b);
|
|
11369
|
+
function __() { this.constructor = d; }
|
|
11370
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
11371
|
+
};
|
|
11372
|
+
})();
|
|
10864
11373
|
/**
|
|
10865
11374
|
* Represent the density of data using different colors (HeatMap).
|
|
10866
11375
|
*/
|
|
10867
11376
|
var HeatMapLayer = /** @class */ (function (_super) {
|
|
10868
|
-
__extends(HeatMapLayer, _super);
|
|
11377
|
+
__extends$u(HeatMapLayer, _super);
|
|
10869
11378
|
/**
|
|
10870
11379
|
* Constructs a new HeatMapLayer.
|
|
10871
11380
|
* @param source The id or instance of a data source which the layer will render.
|
|
@@ -10969,11 +11478,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10969
11478
|
return HeatMapLayer;
|
|
10970
11479
|
}(Layer));
|
|
10971
11480
|
|
|
11481
|
+
var __extends$v = (window && window.__extends) || (function () {
|
|
11482
|
+
var extendStatics = function (d, b) {
|
|
11483
|
+
extendStatics = Object.setPrototypeOf ||
|
|
11484
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11485
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
11486
|
+
return extendStatics(d, b);
|
|
11487
|
+
};
|
|
11488
|
+
return function (d, b) {
|
|
11489
|
+
if (typeof b !== "function" && b !== null)
|
|
11490
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11491
|
+
extendStatics(d, b);
|
|
11492
|
+
function __() { this.constructor = d; }
|
|
11493
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
11494
|
+
};
|
|
11495
|
+
})();
|
|
10972
11496
|
/**
|
|
10973
11497
|
* Options used when rendering canvas, image, raster tile, and video layers
|
|
10974
11498
|
*/
|
|
10975
11499
|
var MediaLayerOptions = /** @class */ (function (_super) {
|
|
10976
|
-
__extends(MediaLayerOptions, _super);
|
|
11500
|
+
__extends$v(MediaLayerOptions, _super);
|
|
10977
11501
|
function MediaLayerOptions() {
|
|
10978
11502
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
10979
11503
|
/**
|
|
@@ -11025,11 +11549,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11025
11549
|
return MediaLayerOptions;
|
|
11026
11550
|
}(LayerOptions));
|
|
11027
11551
|
|
|
11552
|
+
var __extends$w = (window && window.__extends) || (function () {
|
|
11553
|
+
var extendStatics = function (d, b) {
|
|
11554
|
+
extendStatics = Object.setPrototypeOf ||
|
|
11555
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11556
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
11557
|
+
return extendStatics(d, b);
|
|
11558
|
+
};
|
|
11559
|
+
return function (d, b) {
|
|
11560
|
+
if (typeof b !== "function" && b !== null)
|
|
11561
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11562
|
+
extendStatics(d, b);
|
|
11563
|
+
function __() { this.constructor = d; }
|
|
11564
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
11565
|
+
};
|
|
11566
|
+
})();
|
|
11028
11567
|
/**
|
|
11029
11568
|
* Options used when rendering Point objects in a ImageLayer.
|
|
11030
11569
|
*/
|
|
11031
11570
|
var ImageLayerOptions = /** @class */ (function (_super) {
|
|
11032
|
-
__extends(ImageLayerOptions, _super);
|
|
11571
|
+
__extends$w(ImageLayerOptions, _super);
|
|
11033
11572
|
function ImageLayerOptions() {
|
|
11034
11573
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
11035
11574
|
/**
|
|
@@ -11059,12 +11598,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11059
11598
|
return ImageLayerOptions;
|
|
11060
11599
|
}(MediaLayerOptions));
|
|
11061
11600
|
|
|
11601
|
+
var __extends$x = (window && window.__extends) || (function () {
|
|
11602
|
+
var extendStatics = function (d, b) {
|
|
11603
|
+
extendStatics = Object.setPrototypeOf ||
|
|
11604
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11605
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
11606
|
+
return extendStatics(d, b);
|
|
11607
|
+
};
|
|
11608
|
+
return function (d, b) {
|
|
11609
|
+
if (typeof b !== "function" && b !== null)
|
|
11610
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11611
|
+
extendStatics(d, b);
|
|
11612
|
+
function __() { this.constructor = d; }
|
|
11613
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
11614
|
+
};
|
|
11615
|
+
})();
|
|
11062
11616
|
/**
|
|
11063
11617
|
* Abstract class for other layer classes which have to build sources.
|
|
11064
11618
|
* @internal
|
|
11065
11619
|
*/
|
|
11066
11620
|
var SourceBuildingLayer = /** @class */ (function (_super) {
|
|
11067
|
-
__extends(SourceBuildingLayer, _super);
|
|
11621
|
+
__extends$x(SourceBuildingLayer, _super);
|
|
11068
11622
|
function SourceBuildingLayer() {
|
|
11069
11623
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
11070
11624
|
}
|
|
@@ -11079,11 +11633,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11079
11633
|
return SourceBuildingLayer;
|
|
11080
11634
|
}(Layer));
|
|
11081
11635
|
|
|
11636
|
+
var __extends$y = (window && window.__extends) || (function () {
|
|
11637
|
+
var extendStatics = function (d, b) {
|
|
11638
|
+
extendStatics = Object.setPrototypeOf ||
|
|
11639
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11640
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
11641
|
+
return extendStatics(d, b);
|
|
11642
|
+
};
|
|
11643
|
+
return function (d, b) {
|
|
11644
|
+
if (typeof b !== "function" && b !== null)
|
|
11645
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11646
|
+
extendStatics(d, b);
|
|
11647
|
+
function __() { this.constructor = d; }
|
|
11648
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
11649
|
+
};
|
|
11650
|
+
})();
|
|
11082
11651
|
/**
|
|
11083
11652
|
* 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
11653
|
*/
|
|
11085
11654
|
var ImageLayer = /** @class */ (function (_super) {
|
|
11086
|
-
__extends(ImageLayer, _super);
|
|
11655
|
+
__extends$y(ImageLayer, _super);
|
|
11087
11656
|
/**
|
|
11088
11657
|
* Constructs a new ImageLayer.
|
|
11089
11658
|
* @param id The id of the layer. If not specified a random one will be generated.
|
|
@@ -11286,12 +11855,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11286
11855
|
return ImageLayer;
|
|
11287
11856
|
}(SourceBuildingLayer));
|
|
11288
11857
|
|
|
11858
|
+
var __extends$z = (window && window.__extends) || (function () {
|
|
11859
|
+
var extendStatics = function (d, b) {
|
|
11860
|
+
extendStatics = Object.setPrototypeOf ||
|
|
11861
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11862
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
11863
|
+
return extendStatics(d, b);
|
|
11864
|
+
};
|
|
11865
|
+
return function (d, b) {
|
|
11866
|
+
if (typeof b !== "function" && b !== null)
|
|
11867
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11868
|
+
extendStatics(d, b);
|
|
11869
|
+
function __() { this.constructor = d; }
|
|
11870
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
11871
|
+
};
|
|
11872
|
+
})();
|
|
11289
11873
|
/**
|
|
11290
11874
|
* Options used when rendering SimpleLine, SimplePolygon, CirclePolygon,
|
|
11291
11875
|
* LineString, MultiLineString, Polygon, and MultiPolygon objects in a line layer.
|
|
11292
11876
|
*/
|
|
11293
11877
|
var LineLayerOptions = /** @class */ (function (_super) {
|
|
11294
|
-
__extends(LineLayerOptions, _super);
|
|
11878
|
+
__extends$z(LineLayerOptions, _super);
|
|
11295
11879
|
function LineLayerOptions() {
|
|
11296
11880
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
11297
11881
|
/**
|
|
@@ -11391,12 +11975,38 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11391
11975
|
return LineLayerOptions;
|
|
11392
11976
|
}(LayerOptions));
|
|
11393
11977
|
|
|
11978
|
+
var __extends$A = (window && window.__extends) || (function () {
|
|
11979
|
+
var extendStatics = function (d, b) {
|
|
11980
|
+
extendStatics = Object.setPrototypeOf ||
|
|
11981
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11982
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
11983
|
+
return extendStatics(d, b);
|
|
11984
|
+
};
|
|
11985
|
+
return function (d, b) {
|
|
11986
|
+
if (typeof b !== "function" && b !== null)
|
|
11987
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11988
|
+
extendStatics(d, b);
|
|
11989
|
+
function __() { this.constructor = d; }
|
|
11990
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
11991
|
+
};
|
|
11992
|
+
})();
|
|
11993
|
+
var __assign = (window && window.__assign) || function () {
|
|
11994
|
+
__assign = Object.assign || function(t) {
|
|
11995
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
11996
|
+
s = arguments[i];
|
|
11997
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11998
|
+
t[p] = s[p];
|
|
11999
|
+
}
|
|
12000
|
+
return t;
|
|
12001
|
+
};
|
|
12002
|
+
return __assign.apply(this, arguments);
|
|
12003
|
+
};
|
|
11394
12004
|
/**
|
|
11395
12005
|
* Renders line data on the map. Can be used with SimpleLine, SimplePolygon,
|
|
11396
12006
|
* CirclePolygon, LineString, MultiLineString, Polygon, and MultiPolygon objects.
|
|
11397
12007
|
*/
|
|
11398
12008
|
var LineLayer = /** @class */ (function (_super) {
|
|
11399
|
-
__extends(LineLayer, _super);
|
|
12009
|
+
__extends$A(LineLayer, _super);
|
|
11400
12010
|
/**
|
|
11401
12011
|
* Constructs a new LineLayer.
|
|
11402
12012
|
* @param source The id or instance of a data source which the layer will render.
|
|
@@ -11487,11 +12097,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11487
12097
|
return LineLayer;
|
|
11488
12098
|
}(Layer));
|
|
11489
12099
|
|
|
12100
|
+
var __extends$B = (window && window.__extends) || (function () {
|
|
12101
|
+
var extendStatics = function (d, b) {
|
|
12102
|
+
extendStatics = Object.setPrototypeOf ||
|
|
12103
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
12104
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
12105
|
+
return extendStatics(d, b);
|
|
12106
|
+
};
|
|
12107
|
+
return function (d, b) {
|
|
12108
|
+
if (typeof b !== "function" && b !== null)
|
|
12109
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12110
|
+
extendStatics(d, b);
|
|
12111
|
+
function __() { this.constructor = d; }
|
|
12112
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12113
|
+
};
|
|
12114
|
+
})();
|
|
11490
12115
|
/**
|
|
11491
12116
|
* Options used when rendering `Polygon` and `MultiPolygon` objects in a `PolygonExtrusionLayer`.
|
|
11492
12117
|
*/
|
|
11493
12118
|
var PolygonExtrusionLayerOptions = /** @class */ (function (_super) {
|
|
11494
|
-
__extends(PolygonExtrusionLayerOptions, _super);
|
|
12119
|
+
__extends$B(PolygonExtrusionLayerOptions, _super);
|
|
11495
12120
|
function PolygonExtrusionLayerOptions() {
|
|
11496
12121
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
11497
12122
|
/**
|
|
@@ -11564,11 +12189,37 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11564
12189
|
return PolygonExtrusionLayerOptions;
|
|
11565
12190
|
}(LayerOptions));
|
|
11566
12191
|
|
|
12192
|
+
var __extends$C = (window && window.__extends) || (function () {
|
|
12193
|
+
var extendStatics = function (d, b) {
|
|
12194
|
+
extendStatics = Object.setPrototypeOf ||
|
|
12195
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
12196
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
12197
|
+
return extendStatics(d, b);
|
|
12198
|
+
};
|
|
12199
|
+
return function (d, b) {
|
|
12200
|
+
if (typeof b !== "function" && b !== null)
|
|
12201
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12202
|
+
extendStatics(d, b);
|
|
12203
|
+
function __() { this.constructor = d; }
|
|
12204
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12205
|
+
};
|
|
12206
|
+
})();
|
|
12207
|
+
var __assign$1 = (window && window.__assign) || function () {
|
|
12208
|
+
__assign$1 = Object.assign || function(t) {
|
|
12209
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
12210
|
+
s = arguments[i];
|
|
12211
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
12212
|
+
t[p] = s[p];
|
|
12213
|
+
}
|
|
12214
|
+
return t;
|
|
12215
|
+
};
|
|
12216
|
+
return __assign$1.apply(this, arguments);
|
|
12217
|
+
};
|
|
11567
12218
|
/**
|
|
11568
12219
|
* Renders extruded filled `Polygon` and `MultiPolygon` objects on the map.
|
|
11569
12220
|
*/
|
|
11570
12221
|
var PolygonExtrusionLayer = /** @class */ (function (_super) {
|
|
11571
|
-
__extends(PolygonExtrusionLayer, _super);
|
|
12222
|
+
__extends$C(PolygonExtrusionLayer, _super);
|
|
11572
12223
|
/**
|
|
11573
12224
|
* Constructs a new PolygonExtrusionLayer.
|
|
11574
12225
|
* @param source The id or instance of a data source which the layer will render.
|
|
@@ -11628,11 +12279,11 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11628
12279
|
* @internal
|
|
11629
12280
|
*/
|
|
11630
12281
|
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 ?
|
|
12282
|
+
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
12283
|
this.options.source.getId() :
|
|
11633
12284
|
this.options.source, layout: {
|
|
11634
12285
|
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 ?
|
|
12286
|
+
}, 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
12287
|
{ "fill-extrusion-pattern": this.options.fillPattern } :
|
|
11637
12288
|
{ "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
12289
|
return [layer];
|
|
@@ -11656,11 +12307,58 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11656
12307
|
return PolygonExtrusionLayer;
|
|
11657
12308
|
}(Layer));
|
|
11658
12309
|
|
|
12310
|
+
var __extends$D = (window && window.__extends) || (function () {
|
|
12311
|
+
var extendStatics = function (d, b) {
|
|
12312
|
+
extendStatics = Object.setPrototypeOf ||
|
|
12313
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
12314
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
12315
|
+
return extendStatics(d, b);
|
|
12316
|
+
};
|
|
12317
|
+
return function (d, b) {
|
|
12318
|
+
if (typeof b !== "function" && b !== null)
|
|
12319
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12320
|
+
extendStatics(d, b);
|
|
12321
|
+
function __() { this.constructor = d; }
|
|
12322
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12323
|
+
};
|
|
12324
|
+
})();
|
|
12325
|
+
var __values$7 = (window && window.__values) || function(o) {
|
|
12326
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
12327
|
+
if (m) return m.call(o);
|
|
12328
|
+
if (o && typeof o.length === "number") return {
|
|
12329
|
+
next: function () {
|
|
12330
|
+
if (o && i >= o.length) o = void 0;
|
|
12331
|
+
return { value: o && o[i++], done: !o };
|
|
12332
|
+
}
|
|
12333
|
+
};
|
|
12334
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
12335
|
+
};
|
|
12336
|
+
var __read$3 = (window && window.__read) || function (o, n) {
|
|
12337
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
12338
|
+
if (!m) return o;
|
|
12339
|
+
var i = m.call(o), r, ar = [], e;
|
|
12340
|
+
try {
|
|
12341
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
12342
|
+
}
|
|
12343
|
+
catch (error) { e = { error: error }; }
|
|
12344
|
+
finally {
|
|
12345
|
+
try {
|
|
12346
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
12347
|
+
}
|
|
12348
|
+
finally { if (e) throw e.error; }
|
|
12349
|
+
}
|
|
12350
|
+
return ar;
|
|
12351
|
+
};
|
|
12352
|
+
var __spreadArray = (window && window.__spreadArray) || function (to, from) {
|
|
12353
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
12354
|
+
to[j] = from[i];
|
|
12355
|
+
return to;
|
|
12356
|
+
};
|
|
11659
12357
|
/**
|
|
11660
12358
|
* Options used when rendering Polygon and MultiPolygon objects in a PolygonLayer.
|
|
11661
12359
|
*/
|
|
11662
12360
|
var PolygonLayerOptions = /** @class */ (function (_super) {
|
|
11663
|
-
__extends(PolygonLayerOptions, _super);
|
|
12361
|
+
__extends$D(PolygonLayerOptions, _super);
|
|
11664
12362
|
function PolygonLayerOptions() {
|
|
11665
12363
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
11666
12364
|
/**
|
|
@@ -11704,7 +12402,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11704
12402
|
var isNewColorSet = false;
|
|
11705
12403
|
var isNewPatternSet = false;
|
|
11706
12404
|
try {
|
|
11707
|
-
for (var valueList_1 = __values(valueList), valueList_1_1 = valueList_1.next(); !valueList_1_1.done; valueList_1_1 = valueList_1.next()) {
|
|
12405
|
+
for (var valueList_1 = __values$7(valueList), valueList_1_1 = valueList_1.next(); !valueList_1_1.done; valueList_1_1 = valueList_1.next()) {
|
|
11708
12406
|
var value = valueList_1_1.value;
|
|
11709
12407
|
if (value) {
|
|
11710
12408
|
if (value.hasOwnProperty("fillColor")) {
|
|
@@ -11726,7 +12424,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11726
12424
|
finally { if (e_1) throw e_1.error; }
|
|
11727
12425
|
}
|
|
11728
12426
|
// Then execute the standard merge behavior.
|
|
11729
|
-
var merged = _super.prototype.merge.apply(this,
|
|
12427
|
+
var merged = _super.prototype.merge.apply(this, __spreadArray([], __read$3(valueList)));
|
|
11730
12428
|
if (isNewColorSet) {
|
|
11731
12429
|
merged.fillPattern = undefined;
|
|
11732
12430
|
}
|
|
@@ -11738,11 +12436,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11738
12436
|
return PolygonLayerOptions;
|
|
11739
12437
|
}(LayerOptions));
|
|
11740
12438
|
|
|
12439
|
+
var __extends$E = (window && window.__extends) || (function () {
|
|
12440
|
+
var extendStatics = function (d, b) {
|
|
12441
|
+
extendStatics = Object.setPrototypeOf ||
|
|
12442
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
12443
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
12444
|
+
return extendStatics(d, b);
|
|
12445
|
+
};
|
|
12446
|
+
return function (d, b) {
|
|
12447
|
+
if (typeof b !== "function" && b !== null)
|
|
12448
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12449
|
+
extendStatics(d, b);
|
|
12450
|
+
function __() { this.constructor = d; }
|
|
12451
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12452
|
+
};
|
|
12453
|
+
})();
|
|
11741
12454
|
/**
|
|
11742
12455
|
* Renders filled Polygon and MultiPolygon objects on the map.
|
|
11743
12456
|
*/
|
|
11744
12457
|
var PolygonLayer = /** @class */ (function (_super) {
|
|
11745
|
-
__extends(PolygonLayer, _super);
|
|
12458
|
+
__extends$E(PolygonLayer, _super);
|
|
11746
12459
|
/**
|
|
11747
12460
|
* Constructs a new PolygonLayer.
|
|
11748
12461
|
* @param source The id or instance of a data source which the layer will render.
|
|
@@ -11848,11 +12561,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11848
12561
|
return PolygonLayer;
|
|
11849
12562
|
}(Layer));
|
|
11850
12563
|
|
|
12564
|
+
var __extends$F = (window && window.__extends) || (function () {
|
|
12565
|
+
var extendStatics = function (d, b) {
|
|
12566
|
+
extendStatics = Object.setPrototypeOf ||
|
|
12567
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
12568
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
12569
|
+
return extendStatics(d, b);
|
|
12570
|
+
};
|
|
12571
|
+
return function (d, b) {
|
|
12572
|
+
if (typeof b !== "function" && b !== null)
|
|
12573
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12574
|
+
extendStatics(d, b);
|
|
12575
|
+
function __() { this.constructor = d; }
|
|
12576
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12577
|
+
};
|
|
12578
|
+
})();
|
|
11851
12579
|
/**
|
|
11852
12580
|
* Options used to customize the icons in a SymbolLayer
|
|
11853
12581
|
*/
|
|
11854
12582
|
var IconOptions = /** @class */ (function (_super) {
|
|
11855
|
-
__extends(IconOptions, _super);
|
|
12583
|
+
__extends$F(IconOptions, _super);
|
|
11856
12584
|
function IconOptions() {
|
|
11857
12585
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
11858
12586
|
/**
|
|
@@ -11962,11 +12690,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11962
12690
|
return IconOptions;
|
|
11963
12691
|
}(Options));
|
|
11964
12692
|
|
|
12693
|
+
var __extends$G = (window && window.__extends) || (function () {
|
|
12694
|
+
var extendStatics = function (d, b) {
|
|
12695
|
+
extendStatics = Object.setPrototypeOf ||
|
|
12696
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
12697
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
12698
|
+
return extendStatics(d, b);
|
|
12699
|
+
};
|
|
12700
|
+
return function (d, b) {
|
|
12701
|
+
if (typeof b !== "function" && b !== null)
|
|
12702
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12703
|
+
extendStatics(d, b);
|
|
12704
|
+
function __() { this.constructor = d; }
|
|
12705
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12706
|
+
};
|
|
12707
|
+
})();
|
|
11965
12708
|
/**
|
|
11966
12709
|
* Options used to customize the text in a SymbolLayer
|
|
11967
12710
|
*/
|
|
11968
12711
|
var TextOptions = /** @class */ (function (_super) {
|
|
11969
|
-
__extends(TextOptions, _super);
|
|
12712
|
+
__extends$G(TextOptions, _super);
|
|
11970
12713
|
function TextOptions() {
|
|
11971
12714
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
11972
12715
|
/**
|
|
@@ -12120,11 +12863,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
12120
12863
|
return TextOptions;
|
|
12121
12864
|
}(Options));
|
|
12122
12865
|
|
|
12866
|
+
var __extends$H = (window && window.__extends) || (function () {
|
|
12867
|
+
var extendStatics = function (d, b) {
|
|
12868
|
+
extendStatics = Object.setPrototypeOf ||
|
|
12869
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
12870
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
12871
|
+
return extendStatics(d, b);
|
|
12872
|
+
};
|
|
12873
|
+
return function (d, b) {
|
|
12874
|
+
if (typeof b !== "function" && b !== null)
|
|
12875
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12876
|
+
extendStatics(d, b);
|
|
12877
|
+
function __() { this.constructor = d; }
|
|
12878
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12879
|
+
};
|
|
12880
|
+
})();
|
|
12123
12881
|
/**
|
|
12124
12882
|
* Options used when rendering geometries in a SymbolLayer.
|
|
12125
12883
|
*/
|
|
12126
12884
|
var SymbolLayerOptions = /** @class */ (function (_super) {
|
|
12127
|
-
__extends(SymbolLayerOptions, _super);
|
|
12885
|
+
__extends$H(SymbolLayerOptions, _super);
|
|
12128
12886
|
function SymbolLayerOptions() {
|
|
12129
12887
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
12130
12888
|
/**
|
|
@@ -12182,12 +12940,38 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
12182
12940
|
return SymbolLayerOptions;
|
|
12183
12941
|
}(LayerOptions));
|
|
12184
12942
|
|
|
12943
|
+
var __extends$I = (window && window.__extends) || (function () {
|
|
12944
|
+
var extendStatics = function (d, b) {
|
|
12945
|
+
extendStatics = Object.setPrototypeOf ||
|
|
12946
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
12947
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
12948
|
+
return extendStatics(d, b);
|
|
12949
|
+
};
|
|
12950
|
+
return function (d, b) {
|
|
12951
|
+
if (typeof b !== "function" && b !== null)
|
|
12952
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12953
|
+
extendStatics(d, b);
|
|
12954
|
+
function __() { this.constructor = d; }
|
|
12955
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12956
|
+
};
|
|
12957
|
+
})();
|
|
12958
|
+
var __assign$2 = (window && window.__assign) || function () {
|
|
12959
|
+
__assign$2 = Object.assign || function(t) {
|
|
12960
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
12961
|
+
s = arguments[i];
|
|
12962
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
12963
|
+
t[p] = s[p];
|
|
12964
|
+
}
|
|
12965
|
+
return t;
|
|
12966
|
+
};
|
|
12967
|
+
return __assign$2.apply(this, arguments);
|
|
12968
|
+
};
|
|
12185
12969
|
/**
|
|
12186
12970
|
* Renders point based data as symbols on the map using text and/or icons.
|
|
12187
12971
|
* Symbols can also be created for line and polygon data as well.
|
|
12188
12972
|
*/
|
|
12189
12973
|
var SymbolLayer = /** @class */ (function (_super) {
|
|
12190
|
-
__extends(SymbolLayer, _super);
|
|
12974
|
+
__extends$I(SymbolLayer, _super);
|
|
12191
12975
|
/**
|
|
12192
12976
|
* Constructs a new SymbolLayer.
|
|
12193
12977
|
* @param source The id or instance of a data source which the layer will render.
|
|
@@ -12281,9 +13065,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
12281
13065
|
* @internal
|
|
12282
13066
|
*/
|
|
12283
13067
|
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 ?
|
|
13068
|
+
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
13069
|
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,
|
|
13070
|
+
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
13071
|
// Text options.
|
|
12288
13072
|
"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
13073
|
// Icon options.
|
|
@@ -12329,11 +13113,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
12329
13113
|
return SymbolLayer;
|
|
12330
13114
|
}(Layer));
|
|
12331
13115
|
|
|
13116
|
+
var __extends$J = (window && window.__extends) || (function () {
|
|
13117
|
+
var extendStatics = function (d, b) {
|
|
13118
|
+
extendStatics = Object.setPrototypeOf ||
|
|
13119
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
13120
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
13121
|
+
return extendStatics(d, b);
|
|
13122
|
+
};
|
|
13123
|
+
return function (d, b) {
|
|
13124
|
+
if (typeof b !== "function" && b !== null)
|
|
13125
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
13126
|
+
extendStatics(d, b);
|
|
13127
|
+
function __() { this.constructor = d; }
|
|
13128
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13129
|
+
};
|
|
13130
|
+
})();
|
|
12332
13131
|
/**
|
|
12333
13132
|
* Options used when rendering raster tiled images in a TileLayer.
|
|
12334
13133
|
*/
|
|
12335
13134
|
var TileLayerOptions = /** @class */ (function (_super) {
|
|
12336
|
-
__extends(TileLayerOptions, _super);
|
|
13135
|
+
__extends$J(TileLayerOptions, _super);
|
|
12337
13136
|
function TileLayerOptions() {
|
|
12338
13137
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
12339
13138
|
/**
|
|
@@ -12389,11 +13188,48 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
12389
13188
|
return TileLayerOptions;
|
|
12390
13189
|
}(MediaLayerOptions));
|
|
12391
13190
|
|
|
13191
|
+
var __extends$K = (window && window.__extends) || (function () {
|
|
13192
|
+
var extendStatics = function (d, b) {
|
|
13193
|
+
extendStatics = Object.setPrototypeOf ||
|
|
13194
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
13195
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
13196
|
+
return extendStatics(d, b);
|
|
13197
|
+
};
|
|
13198
|
+
return function (d, b) {
|
|
13199
|
+
if (typeof b !== "function" && b !== null)
|
|
13200
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
13201
|
+
extendStatics(d, b);
|
|
13202
|
+
function __() { this.constructor = d; }
|
|
13203
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13204
|
+
};
|
|
13205
|
+
})();
|
|
13206
|
+
var __assign$3 = (window && window.__assign) || function () {
|
|
13207
|
+
__assign$3 = Object.assign || function(t) {
|
|
13208
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
13209
|
+
s = arguments[i];
|
|
13210
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
13211
|
+
t[p] = s[p];
|
|
13212
|
+
}
|
|
13213
|
+
return t;
|
|
13214
|
+
};
|
|
13215
|
+
return __assign$3.apply(this, arguments);
|
|
13216
|
+
};
|
|
13217
|
+
var __values$8 = (window && window.__values) || function(o) {
|
|
13218
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
13219
|
+
if (m) return m.call(o);
|
|
13220
|
+
if (o && typeof o.length === "number") return {
|
|
13221
|
+
next: function () {
|
|
13222
|
+
if (o && i >= o.length) o = void 0;
|
|
13223
|
+
return { value: o && o[i++], done: !o };
|
|
13224
|
+
}
|
|
13225
|
+
};
|
|
13226
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
13227
|
+
};
|
|
12392
13228
|
/**
|
|
12393
13229
|
* Renders raster tiled images on top of the map tiles.
|
|
12394
13230
|
*/
|
|
12395
13231
|
var TileLayer = /** @class */ (function (_super) {
|
|
12396
|
-
__extends(TileLayer, _super);
|
|
13232
|
+
__extends$K(TileLayer, _super);
|
|
12397
13233
|
/**
|
|
12398
13234
|
* Constructs a new TileLayer.
|
|
12399
13235
|
* @param options The options for the tile layer.
|
|
@@ -12455,7 +13291,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
12455
13291
|
* @internal
|
|
12456
13292
|
*/
|
|
12457
13293
|
TileLayer.prototype._buildLayers = function () {
|
|
12458
|
-
var layer = __assign(__assign({ id: this.id, type: "raster", source: this._getSourceId(), layout: {
|
|
13294
|
+
var layer = __assign$3(__assign$3({ id: this.id, type: "raster", source: this._getSourceId(), layout: {
|
|
12459
13295
|
visibility: this.options.visible ? "visible" : "none"
|
|
12460
13296
|
}, paint: {
|
|
12461
13297
|
"raster-contrast": this.options.contrast,
|
|
@@ -12492,7 +13328,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
12492
13328
|
if (this.options.subdomains && this.options.subdomains.length > 0) {
|
|
12493
13329
|
var urls = [];
|
|
12494
13330
|
try {
|
|
12495
|
-
for (var _b = __values(this.options.subdomains), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
13331
|
+
for (var _b = __values$8(this.options.subdomains), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
12496
13332
|
var subdomain = _c.value;
|
|
12497
13333
|
urls.push(this.options.tileUrl.replace(/{subdomain}/g, subdomain));
|
|
12498
13334
|
}
|
|
@@ -12524,7 +13360,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
12524
13360
|
};
|
|
12525
13361
|
}
|
|
12526
13362
|
}
|
|
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 }));
|
|
13363
|
+
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
13364
|
};
|
|
12529
13365
|
/**
|
|
12530
13366
|
* Gets the id of the source to be paired with this layer.
|
|
@@ -12536,11 +13372,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
12536
13372
|
return TileLayer;
|
|
12537
13373
|
}(SourceBuildingLayer));
|
|
12538
13374
|
|
|
13375
|
+
var __extends$L = (window && window.__extends) || (function () {
|
|
13376
|
+
var extendStatics = function (d, b) {
|
|
13377
|
+
extendStatics = Object.setPrototypeOf ||
|
|
13378
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
13379
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
13380
|
+
return extendStatics(d, b);
|
|
13381
|
+
};
|
|
13382
|
+
return function (d, b) {
|
|
13383
|
+
if (typeof b !== "function" && b !== null)
|
|
13384
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
13385
|
+
extendStatics(d, b);
|
|
13386
|
+
function __() { this.constructor = d; }
|
|
13387
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13388
|
+
};
|
|
13389
|
+
})();
|
|
12539
13390
|
/**
|
|
12540
13391
|
* Options used to render graphics in a WebGLLayer.
|
|
12541
13392
|
*/
|
|
12542
13393
|
var WebGLLayerOptions = /** @class */ (function (_super) {
|
|
12543
|
-
__extends(WebGLLayerOptions, _super);
|
|
13394
|
+
__extends$L(WebGLLayerOptions, _super);
|
|
12544
13395
|
function WebGLLayerOptions() {
|
|
12545
13396
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
12546
13397
|
/**
|
|
@@ -12552,11 +13403,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
12552
13403
|
return WebGLLayerOptions;
|
|
12553
13404
|
}(LayerOptions));
|
|
12554
13405
|
|
|
13406
|
+
var __extends$M = (window && window.__extends) || (function () {
|
|
13407
|
+
var extendStatics = function (d, b) {
|
|
13408
|
+
extendStatics = Object.setPrototypeOf ||
|
|
13409
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
13410
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
13411
|
+
return extendStatics(d, b);
|
|
13412
|
+
};
|
|
13413
|
+
return function (d, b) {
|
|
13414
|
+
if (typeof b !== "function" && b !== null)
|
|
13415
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
13416
|
+
extendStatics(d, b);
|
|
13417
|
+
function __() { this.constructor = d; }
|
|
13418
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13419
|
+
};
|
|
13420
|
+
})();
|
|
12555
13421
|
/**
|
|
12556
13422
|
* Enables custom rendering logic with access to the WebGL context of the map.
|
|
12557
13423
|
*/
|
|
12558
13424
|
var WebGLLayer = /** @class */ (function (_super) {
|
|
12559
|
-
__extends(WebGLLayer, _super);
|
|
13425
|
+
__extends$M(WebGLLayer, _super);
|
|
12560
13426
|
/**
|
|
12561
13427
|
* Constructs a new WebGLLayer.
|
|
12562
13428
|
* @param id The id of the layer. If not specified a random one will be generated.
|
|
@@ -12786,11 +13652,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
12786
13652
|
|
|
12787
13653
|
var isElement_1 = isElement;
|
|
12788
13654
|
|
|
13655
|
+
var __extends$N = (window && window.__extends) || (function () {
|
|
13656
|
+
var extendStatics = function (d, b) {
|
|
13657
|
+
extendStatics = Object.setPrototypeOf ||
|
|
13658
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
13659
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
13660
|
+
return extendStatics(d, b);
|
|
13661
|
+
};
|
|
13662
|
+
return function (d, b) {
|
|
13663
|
+
if (typeof b !== "function" && b !== null)
|
|
13664
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
13665
|
+
extendStatics(d, b);
|
|
13666
|
+
function __() { this.constructor = d; }
|
|
13667
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13668
|
+
};
|
|
13669
|
+
})();
|
|
12789
13670
|
/**
|
|
12790
13671
|
* The options for a popup.
|
|
12791
13672
|
*/
|
|
12792
13673
|
var PopupOptions = /** @class */ (function (_super) {
|
|
12793
|
-
__extends(PopupOptions, _super);
|
|
13674
|
+
__extends$N(PopupOptions, _super);
|
|
12794
13675
|
function PopupOptions() {
|
|
12795
13676
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
12796
13677
|
/**
|
|
@@ -12859,11 +13740,42 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
12859
13740
|
return PopupOptions;
|
|
12860
13741
|
}(Options));
|
|
12861
13742
|
|
|
13743
|
+
var __extends$O = (window && window.__extends) || (function () {
|
|
13744
|
+
var extendStatics = function (d, b) {
|
|
13745
|
+
extendStatics = Object.setPrototypeOf ||
|
|
13746
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
13747
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
13748
|
+
return extendStatics(d, b);
|
|
13749
|
+
};
|
|
13750
|
+
return function (d, b) {
|
|
13751
|
+
if (typeof b !== "function" && b !== null)
|
|
13752
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
13753
|
+
extendStatics(d, b);
|
|
13754
|
+
function __() { this.constructor = d; }
|
|
13755
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13756
|
+
};
|
|
13757
|
+
})();
|
|
13758
|
+
var __read$4 = (window && window.__read) || function (o, n) {
|
|
13759
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
13760
|
+
if (!m) return o;
|
|
13761
|
+
var i = m.call(o), r, ar = [], e;
|
|
13762
|
+
try {
|
|
13763
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
13764
|
+
}
|
|
13765
|
+
catch (error) { e = { error: error }; }
|
|
13766
|
+
finally {
|
|
13767
|
+
try {
|
|
13768
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
13769
|
+
}
|
|
13770
|
+
finally { if (e) throw e.error; }
|
|
13771
|
+
}
|
|
13772
|
+
return ar;
|
|
13773
|
+
};
|
|
12862
13774
|
/**
|
|
12863
13775
|
* An information window anchored at a specified position on a map.
|
|
12864
13776
|
*/
|
|
12865
13777
|
var Popup = /** @class */ (function (_super) {
|
|
12866
|
-
__extends(Popup, _super);
|
|
13778
|
+
__extends$O(Popup, _super);
|
|
12867
13779
|
/**
|
|
12868
13780
|
* Constructs a Popup object and initializes it with the specified options.
|
|
12869
13781
|
* @param options The options for the popup.
|
|
@@ -12955,7 +13867,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
12955
13867
|
*/
|
|
12956
13868
|
_this._onDown = function (event) {
|
|
12957
13869
|
_this.map.popups._addDraggedPopup(_this);
|
|
12958
|
-
var _a = __read(_this.map.positionsToPixels([_this.options.position]), 1), anchorPixel = _a[0];
|
|
13870
|
+
var _a = __read$4(_this.map.positionsToPixels([_this.options.position]), 1), anchorPixel = _a[0];
|
|
12959
13871
|
if (event.type === "mousedown") {
|
|
12960
13872
|
event = event;
|
|
12961
13873
|
_this.dragOffset = [
|
|
@@ -13119,7 +14031,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
13119
14031
|
pixel[0] + this.dragOffset[0],
|
|
13120
14032
|
pixel[1] + this.dragOffset[1]
|
|
13121
14033
|
];
|
|
13122
|
-
var _a = __read(this.map.pixelsToPositions([anchorPixel]), 1), anchorPos = _a[0];
|
|
14034
|
+
var _a = __read$4(this.map.pixelsToPositions([anchorPixel]), 1), anchorPos = _a[0];
|
|
13123
14035
|
this.options.position = anchorPos;
|
|
13124
14036
|
this.marker.setLngLat(this.options.position);
|
|
13125
14037
|
this._invokeEvent("drag", { type: "drag", target: this });
|
|
@@ -13273,7 +14185,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
13273
14185
|
posY = pt.y;
|
|
13274
14186
|
}
|
|
13275
14187
|
else {
|
|
13276
|
-
var _a = __read(map.positionsToPixels([options.position]), 1), _b = __read(_a[0], 2), x = _b[0], y = _b[1];
|
|
14188
|
+
var _a = __read$4(map.positionsToPixels([options.position]), 1), _b = __read$4(_a[0], 2), x = _b[0], y = _b[1];
|
|
13277
14189
|
posX = x;
|
|
13278
14190
|
posY = y;
|
|
13279
14191
|
}
|
|
@@ -13334,11 +14246,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
13334
14246
|
return Popup;
|
|
13335
14247
|
}(EventEmitter));
|
|
13336
14248
|
|
|
14249
|
+
var __extends$P = (window && window.__extends) || (function () {
|
|
14250
|
+
var extendStatics = function (d, b) {
|
|
14251
|
+
extendStatics = Object.setPrototypeOf ||
|
|
14252
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
14253
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
14254
|
+
return extendStatics(d, b);
|
|
14255
|
+
};
|
|
14256
|
+
return function (d, b) {
|
|
14257
|
+
if (typeof b !== "function" && b !== null)
|
|
14258
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
14259
|
+
extendStatics(d, b);
|
|
14260
|
+
function __() { this.constructor = d; }
|
|
14261
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14262
|
+
};
|
|
14263
|
+
})();
|
|
13337
14264
|
/**
|
|
13338
14265
|
* Options for rendering an HtmlMarker object
|
|
13339
14266
|
*/
|
|
13340
14267
|
var HtmlMarkerOptions = /** @class */ (function (_super) {
|
|
13341
|
-
__extends(HtmlMarkerOptions, _super);
|
|
14268
|
+
__extends$P(HtmlMarkerOptions, _super);
|
|
13342
14269
|
function HtmlMarkerOptions() {
|
|
13343
14270
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
13344
14271
|
/**
|
|
@@ -13416,11 +14343,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
13416
14343
|
return HtmlMarkerOptions;
|
|
13417
14344
|
}(Options));
|
|
13418
14345
|
|
|
13419
|
-
|
|
14346
|
+
var __extends$Q = (window && window.__extends) || (function () {
|
|
14347
|
+
var extendStatics = function (d, b) {
|
|
14348
|
+
extendStatics = Object.setPrototypeOf ||
|
|
14349
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
14350
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
14351
|
+
return extendStatics(d, b);
|
|
14352
|
+
};
|
|
14353
|
+
return function (d, b) {
|
|
14354
|
+
if (typeof b !== "function" && b !== null)
|
|
14355
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
14356
|
+
extendStatics(d, b);
|
|
14357
|
+
function __() { this.constructor = d; }
|
|
14358
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14359
|
+
};
|
|
14360
|
+
})();
|
|
14361
|
+
/**
|
|
13420
14362
|
* This class wraps an HTML element that can be displayed on the map.
|
|
13421
14363
|
*/
|
|
13422
14364
|
var HtmlMarker = /** @class */ (function (_super) {
|
|
13423
|
-
__extends(HtmlMarker, _super);
|
|
14365
|
+
__extends$Q(HtmlMarker, _super);
|
|
13424
14366
|
/**
|
|
13425
14367
|
* Constructs a new HtmlMarker.
|
|
13426
14368
|
* @param options The options for the HtmlMarker.
|
|
@@ -14112,6 +15054,42 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
14112
15054
|
return UserAgent;
|
|
14113
15055
|
}());
|
|
14114
15056
|
|
|
15057
|
+
var __extends$R = (window && window.__extends) || (function () {
|
|
15058
|
+
var extendStatics = function (d, b) {
|
|
15059
|
+
extendStatics = Object.setPrototypeOf ||
|
|
15060
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
15061
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
15062
|
+
return extendStatics(d, b);
|
|
15063
|
+
};
|
|
15064
|
+
return function (d, b) {
|
|
15065
|
+
if (typeof b !== "function" && b !== null)
|
|
15066
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
15067
|
+
extendStatics(d, b);
|
|
15068
|
+
function __() { this.constructor = d; }
|
|
15069
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15070
|
+
};
|
|
15071
|
+
})();
|
|
15072
|
+
var __read$5 = (window && window.__read) || function (o, n) {
|
|
15073
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
15074
|
+
if (!m) return o;
|
|
15075
|
+
var i = m.call(o), r, ar = [], e;
|
|
15076
|
+
try {
|
|
15077
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
15078
|
+
}
|
|
15079
|
+
catch (error) { e = { error: error }; }
|
|
15080
|
+
finally {
|
|
15081
|
+
try {
|
|
15082
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
15083
|
+
}
|
|
15084
|
+
finally { if (e) throw e.error; }
|
|
15085
|
+
}
|
|
15086
|
+
return ar;
|
|
15087
|
+
};
|
|
15088
|
+
var __spreadArray$1 = (window && window.__spreadArray) || function (to, from) {
|
|
15089
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
15090
|
+
to[j] = from[i];
|
|
15091
|
+
return to;
|
|
15092
|
+
};
|
|
14115
15093
|
(function (AuthenticationType) {
|
|
14116
15094
|
/**
|
|
14117
15095
|
* The subscription key authentication mechanism.
|
|
@@ -14142,7 +15120,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
14142
15120
|
* Options for specifying how the map control should authenticate with the Azure Maps services.
|
|
14143
15121
|
*/
|
|
14144
15122
|
var AuthenticationOptions = /** @class */ (function (_super) {
|
|
14145
|
-
__extends(AuthenticationOptions, _super);
|
|
15123
|
+
__extends$R(AuthenticationOptions, _super);
|
|
14146
15124
|
function AuthenticationOptions() {
|
|
14147
15125
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
14148
15126
|
/**
|
|
@@ -14244,7 +15222,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
14244
15222
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
14245
15223
|
valueList[_i] = arguments[_i];
|
|
14246
15224
|
}
|
|
14247
|
-
var merged = _super.prototype.merge.apply(this,
|
|
15225
|
+
var merged = _super.prototype.merge.apply(this, __spreadArray$1([], __read$5(valueList)));
|
|
14248
15226
|
if (merged.authType === exports.AuthenticationType.subscriptionKey) {
|
|
14249
15227
|
merged.authContext = merged.aadAppId = merged.getToken = undefined;
|
|
14250
15228
|
}
|
|
@@ -14743,11 +15721,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
14743
15721
|
return Media;
|
|
14744
15722
|
}());
|
|
14745
15723
|
|
|
15724
|
+
var __extends$S = (window && window.__extends) || (function () {
|
|
15725
|
+
var extendStatics = function (d, b) {
|
|
15726
|
+
extendStatics = Object.setPrototypeOf ||
|
|
15727
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
15728
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
15729
|
+
return extendStatics(d, b);
|
|
15730
|
+
};
|
|
15731
|
+
return function (d, b) {
|
|
15732
|
+
if (typeof b !== "function" && b !== null)
|
|
15733
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
15734
|
+
extendStatics(d, b);
|
|
15735
|
+
function __() { this.constructor = d; }
|
|
15736
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15737
|
+
};
|
|
15738
|
+
})();
|
|
14746
15739
|
/**
|
|
14747
15740
|
* The options for a CopyrightControl object.
|
|
14748
15741
|
*/
|
|
14749
15742
|
var CopyrightControlOptions = /** @class */ (function (_super) {
|
|
14750
|
-
__extends(CopyrightControlOptions, _super);
|
|
15743
|
+
__extends$S(CopyrightControlOptions, _super);
|
|
14751
15744
|
function CopyrightControlOptions() {
|
|
14752
15745
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
14753
15746
|
/**
|
|
@@ -14776,11 +15769,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
14776
15769
|
return CopyrightControlOptions;
|
|
14777
15770
|
}(Options));
|
|
14778
15771
|
|
|
15772
|
+
var __extends$T = (window && window.__extends) || (function () {
|
|
15773
|
+
var extendStatics = function (d, b) {
|
|
15774
|
+
extendStatics = Object.setPrototypeOf ||
|
|
15775
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
15776
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
15777
|
+
return extendStatics(d, b);
|
|
15778
|
+
};
|
|
15779
|
+
return function (d, b) {
|
|
15780
|
+
if (typeof b !== "function" && b !== null)
|
|
15781
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
15782
|
+
extendStatics(d, b);
|
|
15783
|
+
function __() { this.constructor = d; }
|
|
15784
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15785
|
+
};
|
|
15786
|
+
})();
|
|
14779
15787
|
/**
|
|
14780
15788
|
* @private
|
|
14781
15789
|
*/
|
|
14782
15790
|
var CopyrightControl = /** @class */ (function (_super) {
|
|
14783
|
-
__extends(CopyrightControl, _super);
|
|
15791
|
+
__extends$T(CopyrightControl, _super);
|
|
14784
15792
|
function CopyrightControl(options) {
|
|
14785
15793
|
var _this = _super.call(this) || this;
|
|
14786
15794
|
_this.textAttribution = function (options) {
|
|
@@ -14968,6 +15976,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
14968
15976
|
return ErrorHandler;
|
|
14969
15977
|
}());
|
|
14970
15978
|
|
|
15979
|
+
var __assign$4 = (window && window.__assign) || function () {
|
|
15980
|
+
__assign$4 = Object.assign || function(t) {
|
|
15981
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
15982
|
+
s = arguments[i];
|
|
15983
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
15984
|
+
t[p] = s[p];
|
|
15985
|
+
}
|
|
15986
|
+
return t;
|
|
15987
|
+
};
|
|
15988
|
+
return __assign$4.apply(this, arguments);
|
|
15989
|
+
};
|
|
14971
15990
|
/**
|
|
14972
15991
|
* @private
|
|
14973
15992
|
*/
|
|
@@ -14981,7 +16000,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
14981
16000
|
var urlOptions = {
|
|
14982
16001
|
domain: domain,
|
|
14983
16002
|
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 }))
|
|
16003
|
+
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
16004
|
};
|
|
14986
16005
|
return new Url(((_a = this.map.authentication) === null || _a === void 0 ? void 0 : _a.signRequest(urlOptions)) || urlOptions).get();
|
|
14987
16006
|
};
|
|
@@ -15107,6 +16126,58 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
15107
16126
|
return MapLabelCache;
|
|
15108
16127
|
}());
|
|
15109
16128
|
|
|
16129
|
+
var __awaiter$1 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16130
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16131
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16132
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
16133
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
16134
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
16135
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
16136
|
+
});
|
|
16137
|
+
};
|
|
16138
|
+
var __generator$1 = (window && window.__generator) || function (thisArg, body) {
|
|
16139
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
16140
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
16141
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
16142
|
+
function step(op) {
|
|
16143
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
16144
|
+
while (_) try {
|
|
16145
|
+
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;
|
|
16146
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
16147
|
+
switch (op[0]) {
|
|
16148
|
+
case 0: case 1: t = op; break;
|
|
16149
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
16150
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
16151
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
16152
|
+
default:
|
|
16153
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
16154
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
16155
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
16156
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
16157
|
+
if (t[2]) _.ops.pop();
|
|
16158
|
+
_.trys.pop(); continue;
|
|
16159
|
+
}
|
|
16160
|
+
op = body.call(thisArg, _);
|
|
16161
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
16162
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
16163
|
+
}
|
|
16164
|
+
};
|
|
16165
|
+
var __read$6 = (window && window.__read) || function (o, n) {
|
|
16166
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
16167
|
+
if (!m) return o;
|
|
16168
|
+
var i = m.call(o), r, ar = [], e;
|
|
16169
|
+
try {
|
|
16170
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
16171
|
+
}
|
|
16172
|
+
catch (error) { e = { error: error }; }
|
|
16173
|
+
finally {
|
|
16174
|
+
try {
|
|
16175
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
16176
|
+
}
|
|
16177
|
+
finally { if (e) throw e.error; }
|
|
16178
|
+
}
|
|
16179
|
+
return ar;
|
|
16180
|
+
};
|
|
15110
16181
|
/**
|
|
15111
16182
|
* This class analyizes the current view of a map and provides a description for use by accessibilty tools.
|
|
15112
16183
|
* TODO: Use services when in GeoPol regions. (Kasmir) or when user region sensitive.
|
|
@@ -15345,9 +16416,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
15345
16416
|
// Flag indicating if detailed descriptions which include zoom, lat/lon information should be returned.
|
|
15346
16417
|
this._returnDetailedDescriptions = false;
|
|
15347
16418
|
/** Event handler for shortcuts. */
|
|
15348
|
-
this._shortcutListener = function (e) { return __awaiter(_this, void 0, void 0, function () {
|
|
16419
|
+
this._shortcutListener = function (e) { return __awaiter$1(_this, void 0, void 0, function () {
|
|
15349
16420
|
var cam, styleOps, lang, style, camDesc;
|
|
15350
|
-
return __generator(this, function (_a) {
|
|
16421
|
+
return __generator$1(this, function (_a) {
|
|
15351
16422
|
switch (_a.label) {
|
|
15352
16423
|
case 0:
|
|
15353
16424
|
if (!(e.altKey && e.ctrlKey && e.keyCode === 68)) return [3 /*break*/, 2];
|
|
@@ -15415,9 +16486,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
15415
16486
|
/** Event handler for when the mouse or touch goes down */
|
|
15416
16487
|
this._onPointerDown = function (event) {
|
|
15417
16488
|
_this._lastPointerPos = _this._getEventPos(event);
|
|
15418
|
-
_this._pointerTimeout = setTimeout(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
16489
|
+
_this._pointerTimeout = setTimeout(function () { return __awaiter$1(_this, void 0, void 0, function () {
|
|
15419
16490
|
var styleOps, lang, style, cam, loc;
|
|
15420
|
-
return __generator(this, function (_a) {
|
|
16491
|
+
return __generator$1(this, function (_a) {
|
|
15421
16492
|
switch (_a.label) {
|
|
15422
16493
|
case 0:
|
|
15423
16494
|
styleOps = this._map.getStyle();
|
|
@@ -15475,9 +16546,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
15475
16546
|
delete _this._rotateTimeout;
|
|
15476
16547
|
};
|
|
15477
16548
|
/** 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 () {
|
|
16549
|
+
this._updateStyle = function () { return __awaiter$1(_this, void 0, void 0, function () {
|
|
15479
16550
|
var cam, styleOps, lang, style, camDesc;
|
|
15480
|
-
return __generator(this, function (_a) {
|
|
16551
|
+
return __generator$1(this, function (_a) {
|
|
15481
16552
|
switch (_a.label) {
|
|
15482
16553
|
case 0:
|
|
15483
16554
|
cam = this._map.getCamera();
|
|
@@ -15529,9 +16600,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
15529
16600
|
delete _this._moveTimeout;
|
|
15530
16601
|
}
|
|
15531
16602
|
// Send the new description to the map.
|
|
15532
|
-
_this._moveTimeout = setTimeout(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
16603
|
+
_this._moveTimeout = setTimeout(function () { return __awaiter$1(_this, void 0, void 0, function () {
|
|
15533
16604
|
var loc;
|
|
15534
|
-
return __generator(this, function (_a) {
|
|
16605
|
+
return __generator$1(this, function (_a) {
|
|
15535
16606
|
switch (_a.label) {
|
|
15536
16607
|
case 0:
|
|
15537
16608
|
// Clear the rotate timeout as the move description will cover rotation.
|
|
@@ -15622,7 +16693,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
15622
16693
|
};
|
|
15623
16694
|
/** Checks if the location has changed enough to justify a new description */
|
|
15624
16695
|
MapViewDescriptor.prototype._checkLocThreshold = function (newCenter, lastCenter) {
|
|
15625
|
-
var _a = __read(this._map.positionsToPixels([lastCenter, newCenter]), 2), lastPixel = _a[0], newPixel = _a[1];
|
|
16696
|
+
var _a = __read$6(this._map.positionsToPixels([lastCenter, newCenter]), 2), lastPixel = _a[0], newPixel = _a[1];
|
|
15626
16697
|
return Pixel.getDistance(lastPixel, newPixel) >= this._moveThreshold;
|
|
15627
16698
|
};
|
|
15628
16699
|
/** Checks if the heading has changed enough to justify a new description */
|
|
@@ -15647,10 +16718,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
15647
16718
|
* @param cam The map camera informaiton.
|
|
15648
16719
|
*/
|
|
15649
16720
|
MapViewDescriptor.prototype._getLocDesc = function (cam, lang, style) {
|
|
15650
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
16721
|
+
return __awaiter$1(this, void 0, void 0, function () {
|
|
15651
16722
|
var info_1, cPx_1, intersects_1, intersectingPolygon, intersectingType_1, i, cnt, layerInfo, cl_1;
|
|
15652
16723
|
var _this = this;
|
|
15653
|
-
return __generator(this, function (_a) {
|
|
16724
|
+
return __generator$1(this, function (_a) {
|
|
15654
16725
|
switch (_a.label) {
|
|
15655
16726
|
case 0:
|
|
15656
16727
|
if (!(style !== "blank")) return [3 /*break*/, 3];
|
|
@@ -16346,11 +17417,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
16346
17417
|
return FlowServiceDelegate;
|
|
16347
17418
|
}());
|
|
16348
17419
|
|
|
17420
|
+
var __extends$U = (window && window.__extends) || (function () {
|
|
17421
|
+
var extendStatics = function (d, b) {
|
|
17422
|
+
extendStatics = Object.setPrototypeOf ||
|
|
17423
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
17424
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
17425
|
+
return extendStatics(d, b);
|
|
17426
|
+
};
|
|
17427
|
+
return function (d, b) {
|
|
17428
|
+
if (typeof b !== "function" && b !== null)
|
|
17429
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
17430
|
+
extendStatics(d, b);
|
|
17431
|
+
function __() { this.constructor = d; }
|
|
17432
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
17433
|
+
};
|
|
17434
|
+
})();
|
|
16349
17435
|
/**
|
|
16350
17436
|
* @private
|
|
16351
17437
|
*/
|
|
16352
17438
|
var Incident = /** @class */ (function (_super) {
|
|
16353
|
-
__extends(Incident, _super);
|
|
17439
|
+
__extends$U(Incident, _super);
|
|
16354
17440
|
function Incident(data, point, localizedStrings) {
|
|
16355
17441
|
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;
|
|
16356
17442
|
var _this = this;
|
|
@@ -16565,6 +17651,42 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
16565
17651
|
return IncidentPopupFactory;
|
|
16566
17652
|
}());
|
|
16567
17653
|
|
|
17654
|
+
var __awaiter$2 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
17655
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17656
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17657
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17658
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17659
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
17660
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
17661
|
+
});
|
|
17662
|
+
};
|
|
17663
|
+
var __generator$2 = (window && window.__generator) || function (thisArg, body) {
|
|
17664
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
17665
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
17666
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
17667
|
+
function step(op) {
|
|
17668
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17669
|
+
while (_) try {
|
|
17670
|
+
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;
|
|
17671
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
17672
|
+
switch (op[0]) {
|
|
17673
|
+
case 0: case 1: t = op; break;
|
|
17674
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
17675
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
17676
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
17677
|
+
default:
|
|
17678
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
17679
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
17680
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
17681
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
17682
|
+
if (t[2]) _.ops.pop();
|
|
17683
|
+
_.trys.pop(); continue;
|
|
17684
|
+
}
|
|
17685
|
+
op = body.call(thisArg, _);
|
|
17686
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
17687
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
17688
|
+
}
|
|
17689
|
+
};
|
|
16568
17690
|
/**
|
|
16569
17691
|
* @private
|
|
16570
17692
|
*/
|
|
@@ -16592,10 +17714,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
16592
17714
|
_this.map.events.add('moveend', _this.setAccessiblePopups);
|
|
16593
17715
|
};
|
|
16594
17716
|
this.accessiblePopups = [];
|
|
16595
|
-
this.setAccessiblePopups = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
17717
|
+
this.setAccessiblePopups = function () { return __awaiter$2(_this, void 0, void 0, function () {
|
|
16596
17718
|
var features, localizedStrings, createPopup, insertHiddenBefore, insertHiddenInFront, addHidden;
|
|
16597
17719
|
var _this = this;
|
|
16598
|
-
return __generator(this, function (_a) {
|
|
17720
|
+
return __generator$2(this, function (_a) {
|
|
16599
17721
|
switch (_a.label) {
|
|
16600
17722
|
case 0:
|
|
16601
17723
|
this.accessiblePopups.forEach(function (popup) { return popup.remove(); });
|
|
@@ -16747,7 +17869,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
16747
17869
|
"red",
|
|
16748
17870
|
["==", ['var', 'magnitude'], 4],
|
|
16749
17871
|
"grey",
|
|
16750
|
-
"grey",
|
|
17872
|
+
"grey", // default.
|
|
16751
17873
|
],
|
|
16752
17874
|
];
|
|
16753
17875
|
// incident icon type name expression
|
|
@@ -16809,11 +17931,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
16809
17931
|
return IncidentServiceDelegate;
|
|
16810
17932
|
}());
|
|
16811
17933
|
|
|
17934
|
+
var __extends$V = (window && window.__extends) || (function () {
|
|
17935
|
+
var extendStatics = function (d, b) {
|
|
17936
|
+
extendStatics = Object.setPrototypeOf ||
|
|
17937
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
17938
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
17939
|
+
return extendStatics(d, b);
|
|
17940
|
+
};
|
|
17941
|
+
return function (d, b) {
|
|
17942
|
+
if (typeof b !== "function" && b !== null)
|
|
17943
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
17944
|
+
extendStatics(d, b);
|
|
17945
|
+
function __() { this.constructor = d; }
|
|
17946
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
17947
|
+
};
|
|
17948
|
+
})();
|
|
16812
17949
|
/**
|
|
16813
17950
|
* The options for enabling/disabling user interaction with the map.
|
|
16814
17951
|
*/
|
|
16815
17952
|
var UserInteractionOptions = /** @class */ (function (_super) {
|
|
16816
|
-
__extends(UserInteractionOptions, _super);
|
|
17953
|
+
__extends$V(UserInteractionOptions, _super);
|
|
16817
17954
|
function UserInteractionOptions() {
|
|
16818
17955
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
16819
17956
|
/**
|
|
@@ -19842,6 +20979,33 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
19842
20979
|
return descriptor;
|
|
19843
20980
|
}; };
|
|
19844
20981
|
|
|
20982
|
+
var __decorate = (window && window.__decorate) || function (decorators, target, key, desc) {
|
|
20983
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20984
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20985
|
+
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;
|
|
20986
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20987
|
+
};
|
|
20988
|
+
var __read$7 = (window && window.__read) || function (o, n) {
|
|
20989
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
20990
|
+
if (!m) return o;
|
|
20991
|
+
var i = m.call(o), r, ar = [], e;
|
|
20992
|
+
try {
|
|
20993
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
20994
|
+
}
|
|
20995
|
+
catch (error) { e = { error: error }; }
|
|
20996
|
+
finally {
|
|
20997
|
+
try {
|
|
20998
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
20999
|
+
}
|
|
21000
|
+
finally { if (e) throw e.error; }
|
|
21001
|
+
}
|
|
21002
|
+
return ar;
|
|
21003
|
+
};
|
|
21004
|
+
var __spreadArray$2 = (window && window.__spreadArray) || function (to, from) {
|
|
21005
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
21006
|
+
to[j] = from[i];
|
|
21007
|
+
return to;
|
|
21008
|
+
};
|
|
19845
21009
|
var allowedAttributionTags = [
|
|
19846
21010
|
'DIV',
|
|
19847
21011
|
'SPAN',
|
|
@@ -19855,9 +21019,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
19855
21019
|
'data-azure-maps-attribution-order',
|
|
19856
21020
|
'data-azure-maps-attribution-dynamic'
|
|
19857
21021
|
];
|
|
19858
|
-
var allowedAttributionAttributes =
|
|
21022
|
+
var allowedAttributionAttributes = __spreadArray$2([
|
|
19859
21023
|
'href'
|
|
19860
|
-
], attributionRuleAttributes);
|
|
21024
|
+
], __read$7(attributionRuleAttributes));
|
|
19861
21025
|
var AttributionRuleProxy = /** @class */ (function () {
|
|
19862
21026
|
function AttributionRuleProxy(element, attributionChangeCallback) {
|
|
19863
21027
|
var _this = this;
|
|
@@ -20080,7 +21244,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
20080
21244
|
};
|
|
20081
21245
|
AttributionRuleProxy.prototype.applyAttributionResponse = function (attributions) {
|
|
20082
21246
|
var _this = this;
|
|
20083
|
-
var copyrights = attributions.map(function (resp) { return resp.copyrights || []; }).reduce(function (flat, copyrights) { return
|
|
21247
|
+
var copyrights = attributions.map(function (resp) { return resp.copyrights || []; }).reduce(function (flat, copyrights) { return __spreadArray$2(__spreadArray$2([], __read$7(flat)), __read$7(copyrights)); }, []);
|
|
20084
21248
|
if (copyrights.length == 0) {
|
|
20085
21249
|
// no attribution for a provided tileset/bbox/z
|
|
20086
21250
|
return;
|
|
@@ -20129,6 +21293,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
20129
21293
|
return AttributionRuleProxy;
|
|
20130
21294
|
}());
|
|
20131
21295
|
|
|
21296
|
+
var __read$8 = (window && window.__read) || function (o, n) {
|
|
21297
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
21298
|
+
if (!m) return o;
|
|
21299
|
+
var i = m.call(o), r, ar = [], e;
|
|
21300
|
+
try {
|
|
21301
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
21302
|
+
}
|
|
21303
|
+
catch (error) { e = { error: error }; }
|
|
21304
|
+
finally {
|
|
21305
|
+
try {
|
|
21306
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
21307
|
+
}
|
|
21308
|
+
finally { if (e) throw e.error; }
|
|
21309
|
+
}
|
|
21310
|
+
return ar;
|
|
21311
|
+
};
|
|
21312
|
+
var __spreadArray$3 = (window && window.__spreadArray) || function (to, from) {
|
|
21313
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
21314
|
+
to[j] = from[i];
|
|
21315
|
+
return to;
|
|
21316
|
+
};
|
|
20132
21317
|
// contains phrases that should be filtered out from all attribution content
|
|
20133
21318
|
var attributionFilters = [
|
|
20134
21319
|
/all rights reserved/gi
|
|
@@ -20162,7 +21347,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
20162
21347
|
var style = map.getStyle();
|
|
20163
21348
|
return Object.entries(style.sources)
|
|
20164
21349
|
.filter(function (_a) {
|
|
20165
|
-
var _b = __read(_a, 1), key = _b[0];
|
|
21350
|
+
var _b = __read$8(_a, 1), key = _b[0];
|
|
20166
21351
|
return style.layers
|
|
20167
21352
|
.filter(function (layer) { return layer && layer['source'] == key; })
|
|
20168
21353
|
.reduce(function (isVisible, layer) {
|
|
@@ -20170,7 +21355,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
20170
21355
|
return !isLayerHidden || isVisible;
|
|
20171
21356
|
}, false);
|
|
20172
21357
|
}).map(function (_a) {
|
|
20173
|
-
var _b = __read(_a, 1), key = _b[0];
|
|
21358
|
+
var _b = __read$8(_a, 1), key = _b[0];
|
|
20174
21359
|
return map.getSource(key);
|
|
20175
21360
|
});
|
|
20176
21361
|
};
|
|
@@ -20245,10 +21430,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
20245
21430
|
}, function () { return document.createElement('span'); });
|
|
20246
21431
|
});
|
|
20247
21432
|
var registeredRuleSet = new Set(Object.values(registeredRules));
|
|
20248
|
-
var redundantRules = new Set(
|
|
20249
|
-
var redundantElements = new Set(
|
|
21433
|
+
var redundantRules = new Set(__spreadArray$3([], __read$8(allRules)).filter(function (rule) { return !registeredRuleSet.has(rule); }));
|
|
21434
|
+
var redundantElements = new Set(__spreadArray$3([], __read$8(redundantRules)).map(function (rule) { return rule.getElement(); }));
|
|
20250
21435
|
// eject redundant rules associated elements altogether
|
|
20251
|
-
|
|
21436
|
+
__spreadArray$3([], __read$8(redundantElements)).filter(function (elem) { return elem.parentElement !== null; })
|
|
20252
21437
|
.forEach(function (elem) { return elem.parentElement.removeChild(elem); });
|
|
20253
21438
|
_this.rules = Object.values(registeredRules);
|
|
20254
21439
|
var attributionsToApply = attributions
|
|
@@ -20284,7 +21469,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
20284
21469
|
var visibleTextNodes = function (elem) {
|
|
20285
21470
|
return Array.from(elem.style.display != 'none' ? elem.children : [])
|
|
20286
21471
|
.map(function (elem) { return visibleTextNodes(elem); })
|
|
20287
|
-
.reduce(function (flattened, nodes) { return
|
|
21472
|
+
.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; }));
|
|
20288
21473
|
};
|
|
20289
21474
|
var newRenderContext = _this.virtualContext.cloneNode(true);
|
|
20290
21475
|
var visibleNodes = visibleTextNodes(newRenderContext);
|
|
@@ -20299,7 +21484,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
20299
21484
|
// }
|
|
20300
21485
|
// });
|
|
20301
21486
|
// strip all predefined keywords
|
|
20302
|
-
visibleNodes.forEach(function (node) { return node.textContent =
|
|
21487
|
+
visibleNodes.forEach(function (node) { return node.textContent = __spreadArray$3([], __read$8(attributionFilters)).reduce(function (target, filter) { return target.replace(filter, '').trim(); }, node.textContent); });
|
|
20303
21488
|
// strip year from each node
|
|
20304
21489
|
// visibleNodes.forEach(node => node.textContent = node.textContent.replace(copyrightYearPattern, '').trim());
|
|
20305
21490
|
// deduplicate attribution text
|
|
@@ -22830,6 +24015,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
22830
24015
|
return AuthenticationManager;
|
|
22831
24016
|
}());
|
|
22832
24017
|
|
|
24018
|
+
var __values$9 = (window && window.__values) || function(o) {
|
|
24019
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
24020
|
+
if (m) return m.call(o);
|
|
24021
|
+
if (o && typeof o.length === "number") return {
|
|
24022
|
+
next: function () {
|
|
24023
|
+
if (o && i >= o.length) o = void 0;
|
|
24024
|
+
return { value: o && o[i++], done: !o };
|
|
24025
|
+
}
|
|
24026
|
+
};
|
|
24027
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
24028
|
+
};
|
|
22833
24029
|
/**
|
|
22834
24030
|
* A manager for the map control's controls.
|
|
22835
24031
|
* Exposed through the controls property of the atlas.Map class.
|
|
@@ -22864,7 +24060,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
22864
24060
|
var e_1, _a;
|
|
22865
24061
|
if (Array.isArray(control)) {
|
|
22866
24062
|
try {
|
|
22867
|
-
for (var control_1 = __values(control), control_1_1 = control_1.next(); !control_1_1.done; control_1_1 = control_1.next()) {
|
|
24063
|
+
for (var control_1 = __values$9(control), control_1_1 = control_1.next(); !control_1_1.done; control_1_1 = control_1.next()) {
|
|
22868
24064
|
var c = control_1_1.value;
|
|
22869
24065
|
this._add(c, options);
|
|
22870
24066
|
}
|
|
@@ -22895,7 +24091,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
22895
24091
|
var e_2, _a;
|
|
22896
24092
|
if (Array.isArray(control)) {
|
|
22897
24093
|
try {
|
|
22898
|
-
for (var control_2 = __values(control), control_2_1 = control_2.next(); !control_2_1.done; control_2_1 = control_2.next()) {
|
|
24094
|
+
for (var control_2 = __values$9(control), control_2_1 = control_2.next(); !control_2_1.done; control_2_1 = control_2.next()) {
|
|
22899
24095
|
var c = control_2_1.value;
|
|
22900
24096
|
this._remove(c);
|
|
22901
24097
|
}
|
|
@@ -22939,6 +24135,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
22939
24135
|
return ControlManager;
|
|
22940
24136
|
}());
|
|
22941
24137
|
|
|
24138
|
+
var __assign$5 = (window && window.__assign) || function () {
|
|
24139
|
+
__assign$5 = Object.assign || function(t) {
|
|
24140
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
24141
|
+
s = arguments[i];
|
|
24142
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
24143
|
+
t[p] = s[p];
|
|
24144
|
+
}
|
|
24145
|
+
return t;
|
|
24146
|
+
};
|
|
24147
|
+
return __assign$5.apply(this, arguments);
|
|
24148
|
+
};
|
|
22942
24149
|
/**
|
|
22943
24150
|
* @private
|
|
22944
24151
|
*/
|
|
@@ -22981,7 +24188,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
22981
24188
|
case "sourcedata":
|
|
22982
24189
|
case "styledata":
|
|
22983
24190
|
modifiedCallback = function (data) {
|
|
22984
|
-
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 && {
|
|
24191
|
+
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 && {
|
|
22985
24192
|
tile: {
|
|
22986
24193
|
id: {
|
|
22987
24194
|
x: data.tile.tileID.canonical.x,
|
|
@@ -23222,6 +24429,33 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23222
24429
|
return MapCallbackHandler;
|
|
23223
24430
|
}());
|
|
23224
24431
|
|
|
24432
|
+
var __values$a = (window && window.__values) || function(o) {
|
|
24433
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
24434
|
+
if (m) return m.call(o);
|
|
24435
|
+
if (o && typeof o.length === "number") return {
|
|
24436
|
+
next: function () {
|
|
24437
|
+
if (o && i >= o.length) o = void 0;
|
|
24438
|
+
return { value: o && o[i++], done: !o };
|
|
24439
|
+
}
|
|
24440
|
+
};
|
|
24441
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
24442
|
+
};
|
|
24443
|
+
var __read$9 = (window && window.__read) || function (o, n) {
|
|
24444
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
24445
|
+
if (!m) return o;
|
|
24446
|
+
var i = m.call(o), r, ar = [], e;
|
|
24447
|
+
try {
|
|
24448
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
24449
|
+
}
|
|
24450
|
+
catch (error) { e = { error: error }; }
|
|
24451
|
+
finally {
|
|
24452
|
+
try {
|
|
24453
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
24454
|
+
}
|
|
24455
|
+
finally { if (e) throw e.error; }
|
|
24456
|
+
}
|
|
24457
|
+
return ar;
|
|
24458
|
+
};
|
|
23225
24459
|
// Disable unified signatures linter rule so we can generate separate docs for function overloads.
|
|
23226
24460
|
// tslint:disable:unified-signatures
|
|
23227
24461
|
var MAP_CLIENT_EVENTS = ['maxzoomchanged', 'minzoomchanged', 'mapconfigurationchanged'];
|
|
@@ -23246,7 +24480,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23246
24480
|
else {
|
|
23247
24481
|
targetOrCallback = Array.isArray(targetOrCallback) ? targetOrCallback : [targetOrCallback];
|
|
23248
24482
|
try {
|
|
23249
|
-
for (var targetOrCallback_1 = __values(targetOrCallback), targetOrCallback_1_1 = targetOrCallback_1.next(); !targetOrCallback_1_1.done; targetOrCallback_1_1 = targetOrCallback_1.next()) {
|
|
24483
|
+
for (var targetOrCallback_1 = __values$a(targetOrCallback), targetOrCallback_1_1 = targetOrCallback_1.next(); !targetOrCallback_1_1.done; targetOrCallback_1_1 = targetOrCallback_1.next()) {
|
|
23250
24484
|
var target = targetOrCallback_1_1.value;
|
|
23251
24485
|
if (target instanceof Layer && Layer._isMBoxEvent(eventType)) {
|
|
23252
24486
|
this._addLayerListener(eventType, target, callback, false, false);
|
|
@@ -23297,7 +24531,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23297
24531
|
// Must disable it on every Mapbox layer our layer builds.
|
|
23298
24532
|
if (modifiedCallback && layer) {
|
|
23299
24533
|
try {
|
|
23300
|
-
for (var _c = __values(layer._getLayerIds()), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
24534
|
+
for (var _c = __values$a(layer._getLayerIds()), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
23301
24535
|
var id = _d.value;
|
|
23302
24536
|
this.map._getMap().off(eventType, id, modifiedCallback);
|
|
23303
24537
|
}
|
|
@@ -23317,7 +24551,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23317
24551
|
if (layer) {
|
|
23318
24552
|
modifiedCallback = this.mapCallbackHandler.getModifiedCallback(eventType, layerId, callback);
|
|
23319
24553
|
try {
|
|
23320
|
-
for (var _e = __values(layer._getLayerIds()), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
24554
|
+
for (var _e = __values$a(layer._getLayerIds()), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
23321
24555
|
var id = _f.value;
|
|
23322
24556
|
this.map._getMap().on(eventType, id, modifiedCallback);
|
|
23323
24557
|
}
|
|
@@ -23404,7 +24638,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23404
24638
|
var callbacks = new Dictionary(this.mapCallbackHandler.getEventCallbacks(eventType, layer));
|
|
23405
24639
|
if (callbacks) {
|
|
23406
24640
|
callbacks.forEach(function (_a, callback) {
|
|
23407
|
-
var _b = __read(_a, 2), _ = _b[0], once = _b[1];
|
|
24641
|
+
var _b = __read$9(_a, 2), _ = _b[0], once = _b[1];
|
|
23408
24642
|
// Invoking a listener this way circumvents the fire once logic in the modified callback.
|
|
23409
24643
|
// So we check if the callback was added as a fire once and if so remove it here.
|
|
23410
24644
|
if (once) {
|
|
@@ -23427,7 +24661,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23427
24661
|
else {
|
|
23428
24662
|
targetOrCallback = Array.isArray(targetOrCallback) ? targetOrCallback : [targetOrCallback];
|
|
23429
24663
|
try {
|
|
23430
|
-
for (var targetOrCallback_2 = __values(targetOrCallback), targetOrCallback_2_1 = targetOrCallback_2.next(); !targetOrCallback_2_1.done; targetOrCallback_2_1 = targetOrCallback_2.next()) {
|
|
24664
|
+
for (var targetOrCallback_2 = __values$a(targetOrCallback), targetOrCallback_2_1 = targetOrCallback_2.next(); !targetOrCallback_2_1.done; targetOrCallback_2_1 = targetOrCallback_2.next()) {
|
|
23431
24665
|
var target = targetOrCallback_2_1.value;
|
|
23432
24666
|
if (target instanceof Layer && Layer._isMBoxEvent(eventType)) {
|
|
23433
24667
|
this._removeListener(eventType, target, callback);
|
|
@@ -23477,7 +24711,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23477
24711
|
var layer = this.map.layers.getLayerById(layerId);
|
|
23478
24712
|
if (layer) {
|
|
23479
24713
|
try {
|
|
23480
|
-
for (var _b = __values(layer._getLayerIds()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
24714
|
+
for (var _b = __values$a(layer._getLayerIds()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
23481
24715
|
var id = _c.value;
|
|
23482
24716
|
this.map._getMap().off(eventType, id, modifiedCallback);
|
|
23483
24717
|
}
|
|
@@ -23512,9 +24746,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23512
24746
|
eventDict.forEach(function (callbackDict, eventType) {
|
|
23513
24747
|
callbackDict.forEach(function (_a) {
|
|
23514
24748
|
var e_6, _b;
|
|
23515
|
-
var _c = __read(_a, 1), modifiedCallback = _c[0];
|
|
24749
|
+
var _c = __read$9(_a, 1), modifiedCallback = _c[0];
|
|
23516
24750
|
try {
|
|
23517
|
-
for (var _d = __values(layer._getLayerIds()), _e = _d.next(); !_e.done; _e = _d.next()) {
|
|
24751
|
+
for (var _d = __values$a(layer._getLayerIds()), _e = _d.next(); !_e.done; _e = _d.next()) {
|
|
23518
24752
|
var mbLayerId = _e.value;
|
|
23519
24753
|
_this.map._getMap().on(eventType, mbLayerId, modifiedCallback);
|
|
23520
24754
|
}
|
|
@@ -23545,9 +24779,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23545
24779
|
eventDict.forEach(function (callbackDict, eventType) {
|
|
23546
24780
|
callbackDict.forEach(function (_a) {
|
|
23547
24781
|
var e_7, _b;
|
|
23548
|
-
var _c = __read(_a, 1), modifiedCallback = _c[0];
|
|
24782
|
+
var _c = __read$9(_a, 1), modifiedCallback = _c[0];
|
|
23549
24783
|
try {
|
|
23550
|
-
for (var _d = __values(layer._getLayerIds()), _e = _d.next(); !_e.done; _e = _d.next()) {
|
|
24784
|
+
for (var _d = __values$a(layer._getLayerIds()), _e = _d.next(); !_e.done; _e = _d.next()) {
|
|
23551
24785
|
var mbLayerId = _e.value;
|
|
23552
24786
|
_this.map._getMap().off(eventType, mbLayerId, modifiedCallback);
|
|
23553
24787
|
}
|
|
@@ -23566,6 +24800,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23566
24800
|
return EventManager;
|
|
23567
24801
|
}());
|
|
23568
24802
|
|
|
24803
|
+
var __values$b = (window && window.__values) || function(o) {
|
|
24804
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
24805
|
+
if (m) return m.call(o);
|
|
24806
|
+
if (o && typeof o.length === "number") return {
|
|
24807
|
+
next: function () {
|
|
24808
|
+
if (o && i >= o.length) o = void 0;
|
|
24809
|
+
return { value: o && o[i++], done: !o };
|
|
24810
|
+
}
|
|
24811
|
+
};
|
|
24812
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
24813
|
+
};
|
|
23569
24814
|
/**
|
|
23570
24815
|
* A manager for the map control's HTML markers.
|
|
23571
24816
|
* Exposed through the markers property of the atlas.Map class.
|
|
@@ -23585,7 +24830,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23585
24830
|
var e_1, _a;
|
|
23586
24831
|
if (Array.isArray(element)) {
|
|
23587
24832
|
try {
|
|
23588
|
-
for (var element_1 = __values(element), element_1_1 = element_1.next(); !element_1_1.done; element_1_1 = element_1.next()) {
|
|
24833
|
+
for (var element_1 = __values$b(element), element_1_1 = element_1.next(); !element_1_1.done; element_1_1 = element_1.next()) {
|
|
23589
24834
|
var marker = element_1_1.value;
|
|
23590
24835
|
this._addMarker(marker, position);
|
|
23591
24836
|
}
|
|
@@ -23623,7 +24868,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23623
24868
|
var e_2, _a;
|
|
23624
24869
|
if (Array.isArray(marker)) {
|
|
23625
24870
|
try {
|
|
23626
|
-
for (var marker_1 = __values(marker), marker_1_1 = marker_1.next(); !marker_1_1.done; marker_1_1 = marker_1.next()) {
|
|
24871
|
+
for (var marker_1 = __values$b(marker), marker_1_1 = marker_1.next(); !marker_1_1.done; marker_1_1 = marker_1.next()) {
|
|
23627
24872
|
var singleMarker = marker_1_1.value;
|
|
23628
24873
|
this._removeMarker(singleMarker);
|
|
23629
24874
|
}
|
|
@@ -23828,13 +25073,39 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23828
25073
|
return ImageSpriteManager;
|
|
23829
25074
|
}());
|
|
23830
25075
|
|
|
25076
|
+
var __extends$W = (window && window.__extends) || (function () {
|
|
25077
|
+
var extendStatics = function (d, b) {
|
|
25078
|
+
extendStatics = Object.setPrototypeOf ||
|
|
25079
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
25080
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
25081
|
+
return extendStatics(d, b);
|
|
25082
|
+
};
|
|
25083
|
+
return function (d, b) {
|
|
25084
|
+
if (typeof b !== "function" && b !== null)
|
|
25085
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25086
|
+
extendStatics(d, b);
|
|
25087
|
+
function __() { this.constructor = d; }
|
|
25088
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
25089
|
+
};
|
|
25090
|
+
})();
|
|
25091
|
+
var __values$c = (window && window.__values) || function(o) {
|
|
25092
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
25093
|
+
if (m) return m.call(o);
|
|
25094
|
+
if (o && typeof o.length === "number") return {
|
|
25095
|
+
next: function () {
|
|
25096
|
+
if (o && i >= o.length) o = void 0;
|
|
25097
|
+
return { value: o && o[i++], done: !o };
|
|
25098
|
+
}
|
|
25099
|
+
};
|
|
25100
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
25101
|
+
};
|
|
23831
25102
|
/**
|
|
23832
25103
|
* Used to represent the layer described by a resource files.
|
|
23833
25104
|
* Serves primarily as a wrapper for multiple Mapbox layers in LayerManger.
|
|
23834
25105
|
* @private
|
|
23835
25106
|
*/
|
|
23836
25107
|
var FundamentalMapLayer = /** @class */ (function (_super) {
|
|
23837
|
-
__extends(FundamentalMapLayer, _super);
|
|
25108
|
+
__extends$W(FundamentalMapLayer, _super);
|
|
23838
25109
|
/**
|
|
23839
25110
|
* Constructs a base layer used to represent the base, transit, and labels layers.
|
|
23840
25111
|
* @param mbLayers The stylesheet used to define the style sources and style layers.
|
|
@@ -23864,7 +25135,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23864
25135
|
var e_1, _a;
|
|
23865
25136
|
var ids = new Set();
|
|
23866
25137
|
try {
|
|
23867
|
-
for (var _b = __values(this.layers), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
25138
|
+
for (var _b = __values$c(this.layers), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
23868
25139
|
var layer = _c.value;
|
|
23869
25140
|
if (typeof layer.source === "string") {
|
|
23870
25141
|
// If the layer's source is just a string id use that.
|
|
@@ -23896,6 +25167,38 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23896
25167
|
return FundamentalMapLayer;
|
|
23897
25168
|
}(Layer));
|
|
23898
25169
|
|
|
25170
|
+
var __values$d = (window && window.__values) || function(o) {
|
|
25171
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
25172
|
+
if (m) return m.call(o);
|
|
25173
|
+
if (o && typeof o.length === "number") return {
|
|
25174
|
+
next: function () {
|
|
25175
|
+
if (o && i >= o.length) o = void 0;
|
|
25176
|
+
return { value: o && o[i++], done: !o };
|
|
25177
|
+
}
|
|
25178
|
+
};
|
|
25179
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
25180
|
+
};
|
|
25181
|
+
var __read$a = (window && window.__read) || function (o, n) {
|
|
25182
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
25183
|
+
if (!m) return o;
|
|
25184
|
+
var i = m.call(o), r, ar = [], e;
|
|
25185
|
+
try {
|
|
25186
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
25187
|
+
}
|
|
25188
|
+
catch (error) { e = { error: error }; }
|
|
25189
|
+
finally {
|
|
25190
|
+
try {
|
|
25191
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
25192
|
+
}
|
|
25193
|
+
finally { if (e) throw e.error; }
|
|
25194
|
+
}
|
|
25195
|
+
return ar;
|
|
25196
|
+
};
|
|
25197
|
+
var __spreadArray$4 = (window && window.__spreadArray) || function (to, from) {
|
|
25198
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
25199
|
+
to[j] = from[i];
|
|
25200
|
+
return to;
|
|
25201
|
+
};
|
|
23899
25202
|
/**
|
|
23900
25203
|
* A manager for the map control's layers.
|
|
23901
25204
|
* Exposed through the layers property of the atlas.Map class.
|
|
@@ -23919,7 +25222,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23919
25222
|
before;
|
|
23920
25223
|
if (Array.isArray(layer)) {
|
|
23921
25224
|
try {
|
|
23922
|
-
for (var layer_1 = __values(layer), layer_1_1 = layer_1.next(); !layer_1_1.done; layer_1_1 = layer_1.next()) {
|
|
25225
|
+
for (var layer_1 = __values$d(layer), layer_1_1 = layer_1.next(); !layer_1_1.done; layer_1_1 = layer_1.next()) {
|
|
23923
25226
|
var singleLayer = layer_1_1.value;
|
|
23924
25227
|
this._addLayer(singleLayer, beforeId);
|
|
23925
25228
|
}
|
|
@@ -24032,7 +25335,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24032
25335
|
}
|
|
24033
25336
|
var mbBefore = this._getMapboxBefore(before);
|
|
24034
25337
|
try {
|
|
24035
|
-
for (var _b = __values(layer._buildLayers()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
25338
|
+
for (var _b = __values$d(layer._buildLayers()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
24036
25339
|
var mbLayer = _c.value;
|
|
24037
25340
|
this.map._getMap().addLayer(mbLayer, mbBefore);
|
|
24038
25341
|
}
|
|
@@ -24061,7 +25364,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24061
25364
|
return;
|
|
24062
25365
|
}
|
|
24063
25366
|
try {
|
|
24064
|
-
for (var _b = __values(layer._getLayerIds()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
25367
|
+
for (var _b = __values$d(layer._getLayerIds()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
24065
25368
|
var mbLayerId = _c.value;
|
|
24066
25369
|
// Check if the layer does exist.
|
|
24067
25370
|
if (this.map._getMap().getLayer(mbLayerId)) {
|
|
@@ -24120,7 +25423,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24120
25423
|
// it would build until a layer exists on the mapbox map.
|
|
24121
25424
|
if (beforeLayer) {
|
|
24122
25425
|
try {
|
|
24123
|
-
for (var _c = __values(beforeLayer._getLayerIds()), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
25426
|
+
for (var _c = __values$d(beforeLayer._getLayerIds()), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
24124
25427
|
var layerId = _d.value;
|
|
24125
25428
|
if (this.map._getMap().getLayer(layerId)) {
|
|
24126
25429
|
return layerId;
|
|
@@ -24150,7 +25453,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24150
25453
|
// the mapbox layers built by an atlas layer exists in the mapbox map.
|
|
24151
25454
|
for (var i = before; i < this.layerIndex.length; i++) {
|
|
24152
25455
|
try {
|
|
24153
|
-
for (var _e = (e_5 = void 0, __values(this.layerIndex[i]._getLayerIds())), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
25456
|
+
for (var _e = (e_5 = void 0, __values$d(this.layerIndex[i]._getLayerIds())), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
24154
25457
|
var layerId = _f.value;
|
|
24155
25458
|
if (this.map._getMap().getLayer(layerId)) {
|
|
24156
25459
|
return layerId;
|
|
@@ -24204,7 +25507,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24204
25507
|
var e_6, _a;
|
|
24205
25508
|
var ids = new Set();
|
|
24206
25509
|
try {
|
|
24207
|
-
for (var _b = __values(this.layerIndex), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
25510
|
+
for (var _b = __values$d(this.layerIndex), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
24208
25511
|
var layer = _c.value;
|
|
24209
25512
|
layer._getSourceIds().forEach(function (id) { return ids.add(id); });
|
|
24210
25513
|
}
|
|
@@ -24258,7 +25561,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24258
25561
|
var e_7, _a;
|
|
24259
25562
|
var mbBefore = this._getMapboxBefore(before);
|
|
24260
25563
|
try {
|
|
24261
|
-
for (var _b = __values(layer._getLayerIds()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
25564
|
+
for (var _b = __values$d(layer._getLayerIds()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
24262
25565
|
var mbLayerId = _c.value;
|
|
24263
25566
|
this.map._getMap().moveLayer(mbLayerId, mbBefore);
|
|
24264
25567
|
}
|
|
@@ -24327,8 +25630,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24327
25630
|
// If a specified layer hasn't been added to the map throw an error.
|
|
24328
25631
|
var index = this_1.layerIndex.findIndex(function (l) { return l.getId() === layerId; });
|
|
24329
25632
|
if (index > -1) {
|
|
24330
|
-
layerIds.push.apply(layerIds,
|
|
24331
|
-
.filter(function (id) { return !!_this.map._getMap().getLayer(id); })));
|
|
25633
|
+
layerIds.push.apply(layerIds, __spreadArray$4([], __read$a(this_1.layerIndex[index]._getLayerIds()
|
|
25634
|
+
.filter(function (id) { return !!_this.map._getMap().getLayer(id); }))));
|
|
24332
25635
|
}
|
|
24333
25636
|
else {
|
|
24334
25637
|
throw new Error("The layer '" + layerId + "' has not been added to the map " +
|
|
@@ -24337,7 +25640,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24337
25640
|
};
|
|
24338
25641
|
var this_1 = this;
|
|
24339
25642
|
try {
|
|
24340
|
-
for (var layers_1 = __values(layers), layers_1_1 = layers_1.next(); !layers_1_1.done; layers_1_1 = layers_1.next()) {
|
|
25643
|
+
for (var layers_1 = __values$d(layers), layers_1_1 = layers_1.next(); !layers_1_1.done; layers_1_1 = layers_1.next()) {
|
|
24341
25644
|
var layer = layers_1_1.value;
|
|
24342
25645
|
_loop_1(layer);
|
|
24343
25646
|
}
|
|
@@ -24363,7 +25666,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24363
25666
|
var e_9, _a;
|
|
24364
25667
|
if (Array.isArray(layer)) {
|
|
24365
25668
|
try {
|
|
24366
|
-
for (var layer_2 = __values(layer), layer_2_1 = layer_2.next(); !layer_2_1.done; layer_2_1 = layer_2.next()) {
|
|
25669
|
+
for (var layer_2 = __values$d(layer), layer_2_1 = layer_2.next(); !layer_2_1.done; layer_2_1 = layer_2.next()) {
|
|
24367
25670
|
var singleLayer = layer_2_1.value;
|
|
24368
25671
|
this._removeLayer(singleLayer);
|
|
24369
25672
|
}
|
|
@@ -24402,6 +25705,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24402
25705
|
return LayerManager;
|
|
24403
25706
|
}());
|
|
24404
25707
|
|
|
25708
|
+
var __values$e = (window && window.__values) || function(o) {
|
|
25709
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
25710
|
+
if (m) return m.call(o);
|
|
25711
|
+
if (o && typeof o.length === "number") return {
|
|
25712
|
+
next: function () {
|
|
25713
|
+
if (o && i >= o.length) o = void 0;
|
|
25714
|
+
return { value: o && o[i++], done: !o };
|
|
25715
|
+
}
|
|
25716
|
+
};
|
|
25717
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
25718
|
+
};
|
|
24405
25719
|
/**
|
|
24406
25720
|
* A manager for the map control's popups.
|
|
24407
25721
|
* Exposed through the `popups` property of the `atlas.Map` class.
|
|
@@ -24462,7 +25776,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24462
25776
|
var e_1, _a;
|
|
24463
25777
|
popup = Array.isArray(popup) ? popup : [popup];
|
|
24464
25778
|
try {
|
|
24465
|
-
for (var popup_1 = __values(popup), popup_1_1 = popup_1.next(); !popup_1_1.done; popup_1_1 = popup_1.next()) {
|
|
25779
|
+
for (var popup_1 = __values$e(popup), popup_1_1 = popup_1.next(); !popup_1_1.done; popup_1_1 = popup_1.next()) {
|
|
24466
25780
|
var p = popup_1_1.value;
|
|
24467
25781
|
if (!this.popups.has(p)) {
|
|
24468
25782
|
this.popups.add(p);
|
|
@@ -24496,7 +25810,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24496
25810
|
var e_2, _a;
|
|
24497
25811
|
popup = Array.isArray(popup) ? popup : [popup];
|
|
24498
25812
|
try {
|
|
24499
|
-
for (var popup_2 = __values(popup), popup_2_1 = popup_2.next(); !popup_2_1.done; popup_2_1 = popup_2.next()) {
|
|
25813
|
+
for (var popup_2 = __values$e(popup), popup_2_1 = popup_2.next(); !popup_2_1.done; popup_2_1 = popup_2.next()) {
|
|
24500
25814
|
var p = popup_2_1.value;
|
|
24501
25815
|
if (this.popups.has(p)) {
|
|
24502
25816
|
this.popups.delete(p);
|
|
@@ -24556,12 +25870,38 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24556
25870
|
return PopupManager;
|
|
24557
25871
|
}());
|
|
24558
25872
|
|
|
25873
|
+
var __extends$X = (window && window.__extends) || (function () {
|
|
25874
|
+
var extendStatics = function (d, b) {
|
|
25875
|
+
extendStatics = Object.setPrototypeOf ||
|
|
25876
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
25877
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
25878
|
+
return extendStatics(d, b);
|
|
25879
|
+
};
|
|
25880
|
+
return function (d, b) {
|
|
25881
|
+
if (typeof b !== "function" && b !== null)
|
|
25882
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25883
|
+
extendStatics(d, b);
|
|
25884
|
+
function __() { this.constructor = d; }
|
|
25885
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
25886
|
+
};
|
|
25887
|
+
})();
|
|
25888
|
+
var __assign$6 = (window && window.__assign) || function () {
|
|
25889
|
+
__assign$6 = Object.assign || function(t) {
|
|
25890
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
25891
|
+
s = arguments[i];
|
|
25892
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
25893
|
+
t[p] = s[p];
|
|
25894
|
+
}
|
|
25895
|
+
return t;
|
|
25896
|
+
};
|
|
25897
|
+
return __assign$6.apply(this, arguments);
|
|
25898
|
+
};
|
|
24559
25899
|
/**
|
|
24560
25900
|
* Used to represent the fundamental map source.
|
|
24561
25901
|
* @private
|
|
24562
25902
|
*/
|
|
24563
25903
|
var FundamentalMapSource = /** @class */ (function (_super) {
|
|
24564
|
-
__extends(FundamentalMapSource, _super);
|
|
25904
|
+
__extends$X(FundamentalMapSource, _super);
|
|
24565
25905
|
/**
|
|
24566
25906
|
* Constructs a source from the contents of a layer resource file.
|
|
24567
25907
|
* @param id The source's id.
|
|
@@ -24593,7 +25933,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24593
25933
|
var tileUrl = new Url({
|
|
24594
25934
|
domain: constants.domainPlaceHolder,
|
|
24595
25935
|
path: tile.path,
|
|
24596
|
-
queryParams: __assign(__assign({}, options), tile.queryParams)
|
|
25936
|
+
queryParams: __assign$6(__assign$6({}, options), tile.queryParams)
|
|
24597
25937
|
});
|
|
24598
25938
|
return tileUrl.toString();
|
|
24599
25939
|
});
|
|
@@ -24605,7 +25945,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24605
25945
|
new Url({
|
|
24606
25946
|
domain: constants.domainPlaceHolder,
|
|
24607
25947
|
path: sourceDef.url.path,
|
|
24608
|
-
queryParams: __assign(__assign({}, options), sourceDef.url.queryParams)
|
|
25948
|
+
queryParams: __assign$6(__assign$6({}, options), sourceDef.url.queryParams)
|
|
24609
25949
|
}).toString();
|
|
24610
25950
|
}
|
|
24611
25951
|
else {
|
|
@@ -24616,6 +25956,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24616
25956
|
return FundamentalMapSource;
|
|
24617
25957
|
}(Source));
|
|
24618
25958
|
|
|
25959
|
+
var __values$f = (window && window.__values) || function(o) {
|
|
25960
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
25961
|
+
if (m) return m.call(o);
|
|
25962
|
+
if (o && typeof o.length === "number") return {
|
|
25963
|
+
next: function () {
|
|
25964
|
+
if (o && i >= o.length) o = void 0;
|
|
25965
|
+
return { value: o && o[i++], done: !o };
|
|
25966
|
+
}
|
|
25967
|
+
};
|
|
25968
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
25969
|
+
};
|
|
24619
25970
|
/**
|
|
24620
25971
|
* A manager for the map control's sources.
|
|
24621
25972
|
* Exposed through the sources property of the atlas.Map class.
|
|
@@ -24634,7 +25985,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24634
25985
|
if (update === void 0) { update = true; }
|
|
24635
25986
|
if (Array.isArray(source)) {
|
|
24636
25987
|
try {
|
|
24637
|
-
for (var source_1 = __values(source), source_1_1 = source_1.next(); !source_1_1.done; source_1_1 = source_1.next()) {
|
|
25988
|
+
for (var source_1 = __values$f(source), source_1_1 = source_1.next(); !source_1_1.done; source_1_1 = source_1.next()) {
|
|
24638
25989
|
var singleSource = source_1_1.value;
|
|
24639
25990
|
this._addSource(singleSource, update);
|
|
24640
25991
|
}
|
|
@@ -24760,7 +26111,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24760
26111
|
if (update === void 0) { update = true; }
|
|
24761
26112
|
if (Array.isArray(source)) {
|
|
24762
26113
|
try {
|
|
24763
|
-
for (var source_2 = __values(source), source_2_1 = source_2.next(); !source_2_1.done; source_2_1 = source_2.next()) {
|
|
26114
|
+
for (var source_2 = __values$f(source), source_2_1 = source_2.next(); !source_2_1.done; source_2_1 = source_2.next()) {
|
|
24764
26115
|
var singleSource = source_2_1.value;
|
|
24765
26116
|
this._removeSource(singleSource, update);
|
|
24766
26117
|
}
|
|
@@ -24827,7 +26178,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24827
26178
|
var e_3, _a;
|
|
24828
26179
|
var shapesOrFeatures = [];
|
|
24829
26180
|
try {
|
|
24830
|
-
for (var features_1 = __values(features), features_1_1 = features_1.next(); !features_1_1.done; features_1_1 = features_1.next()) {
|
|
26181
|
+
for (var features_1 = __values$f(features), features_1_1 = features_1.next(); !features_1_1.done; features_1_1 = features_1.next()) {
|
|
24831
26182
|
var feature = features_1_1.value;
|
|
24832
26183
|
if ((dataSource || typeof feature["source"] === "string") &&
|
|
24833
26184
|
typeof feature.properties[Shape._shapeIdPropName] === "string") {
|
|
@@ -24902,11 +26253,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24902
26253
|
return SourceManager;
|
|
24903
26254
|
}());
|
|
24904
26255
|
|
|
26256
|
+
var __extends$Y = (window && window.__extends) || (function () {
|
|
26257
|
+
var extendStatics = function (d, b) {
|
|
26258
|
+
extendStatics = Object.setPrototypeOf ||
|
|
26259
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
26260
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
26261
|
+
return extendStatics(d, b);
|
|
26262
|
+
};
|
|
26263
|
+
return function (d, b) {
|
|
26264
|
+
if (typeof b !== "function" && b !== null)
|
|
26265
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
26266
|
+
extendStatics(d, b);
|
|
26267
|
+
function __() { this.constructor = d; }
|
|
26268
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26269
|
+
};
|
|
26270
|
+
})();
|
|
24905
26271
|
/**
|
|
24906
26272
|
* The options for animating changes to the map control's camera.
|
|
24907
26273
|
*/
|
|
24908
26274
|
var AnimationOptions = /** @class */ (function (_super) {
|
|
24909
|
-
__extends(AnimationOptions, _super);
|
|
26275
|
+
__extends$Y(AnimationOptions, _super);
|
|
24910
26276
|
function AnimationOptions() {
|
|
24911
26277
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
24912
26278
|
/**
|
|
@@ -24930,11 +26296,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24930
26296
|
return AnimationOptions;
|
|
24931
26297
|
}(Options));
|
|
24932
26298
|
|
|
26299
|
+
var __extends$Z = (window && window.__extends) || (function () {
|
|
26300
|
+
var extendStatics = function (d, b) {
|
|
26301
|
+
extendStatics = Object.setPrototypeOf ||
|
|
26302
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
26303
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
26304
|
+
return extendStatics(d, b);
|
|
26305
|
+
};
|
|
26306
|
+
return function (d, b) {
|
|
26307
|
+
if (typeof b !== "function" && b !== null)
|
|
26308
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
26309
|
+
extendStatics(d, b);
|
|
26310
|
+
function __() { this.constructor = d; }
|
|
26311
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26312
|
+
};
|
|
26313
|
+
})();
|
|
24933
26314
|
/**
|
|
24934
26315
|
* Represent the amount of padding in pixels to add to the side of a BoundingBox when setting the camera of a map.
|
|
24935
26316
|
*/
|
|
24936
26317
|
var Padding = /** @class */ (function (_super) {
|
|
24937
|
-
__extends(Padding, _super);
|
|
26318
|
+
__extends$Z(Padding, _super);
|
|
24938
26319
|
function Padding() {
|
|
24939
26320
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
24940
26321
|
/**
|
|
@@ -24966,11 +26347,58 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
24966
26347
|
return Padding;
|
|
24967
26348
|
}(Options));
|
|
24968
26349
|
|
|
26350
|
+
var __extends$_ = (window && window.__extends) || (function () {
|
|
26351
|
+
var extendStatics = function (d, b) {
|
|
26352
|
+
extendStatics = Object.setPrototypeOf ||
|
|
26353
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
26354
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
26355
|
+
return extendStatics(d, b);
|
|
26356
|
+
};
|
|
26357
|
+
return function (d, b) {
|
|
26358
|
+
if (typeof b !== "function" && b !== null)
|
|
26359
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
26360
|
+
extendStatics(d, b);
|
|
26361
|
+
function __() { this.constructor = d; }
|
|
26362
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26363
|
+
};
|
|
26364
|
+
})();
|
|
26365
|
+
var __values$g = (window && window.__values) || function(o) {
|
|
26366
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
26367
|
+
if (m) return m.call(o);
|
|
26368
|
+
if (o && typeof o.length === "number") return {
|
|
26369
|
+
next: function () {
|
|
26370
|
+
if (o && i >= o.length) o = void 0;
|
|
26371
|
+
return { value: o && o[i++], done: !o };
|
|
26372
|
+
}
|
|
26373
|
+
};
|
|
26374
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
26375
|
+
};
|
|
26376
|
+
var __read$b = (window && window.__read) || function (o, n) {
|
|
26377
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
26378
|
+
if (!m) return o;
|
|
26379
|
+
var i = m.call(o), r, ar = [], e;
|
|
26380
|
+
try {
|
|
26381
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
26382
|
+
}
|
|
26383
|
+
catch (error) { e = { error: error }; }
|
|
26384
|
+
finally {
|
|
26385
|
+
try {
|
|
26386
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
26387
|
+
}
|
|
26388
|
+
finally { if (e) throw e.error; }
|
|
26389
|
+
}
|
|
26390
|
+
return ar;
|
|
26391
|
+
};
|
|
26392
|
+
var __spreadArray$5 = (window && window.__spreadArray) || function (to, from) {
|
|
26393
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
26394
|
+
to[j] = from[i];
|
|
26395
|
+
return to;
|
|
26396
|
+
};
|
|
24969
26397
|
/**
|
|
24970
26398
|
* The options for setting the bounds of the map control's camera.
|
|
24971
26399
|
*/
|
|
24972
26400
|
var CameraBoundsOptions = /** @class */ (function (_super) {
|
|
24973
|
-
__extends(CameraBoundsOptions, _super);
|
|
26401
|
+
__extends$_(CameraBoundsOptions, _super);
|
|
24974
26402
|
function CameraBoundsOptions() {
|
|
24975
26403
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
24976
26404
|
/**
|
|
@@ -25017,7 +26445,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25017
26445
|
valuesList[_i] = arguments[_i];
|
|
25018
26446
|
}
|
|
25019
26447
|
try {
|
|
25020
|
-
for (var valuesList_1 = __values(valuesList), valuesList_1_1 = valuesList_1.next(); !valuesList_1_1.done; valuesList_1_1 = valuesList_1.next()) {
|
|
26448
|
+
for (var valuesList_1 = __values$g(valuesList), valuesList_1_1 = valuesList_1.next(); !valuesList_1_1.done; valuesList_1_1 = valuesList_1.next()) {
|
|
25021
26449
|
var value = valuesList_1_1.value;
|
|
25022
26450
|
if (value && typeof value.padding === "number") {
|
|
25023
26451
|
value.padding = {
|
|
@@ -25036,16 +26464,31 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25036
26464
|
}
|
|
25037
26465
|
finally { if (e_1) throw e_1.error; }
|
|
25038
26466
|
}
|
|
25039
|
-
return _super.prototype.merge.apply(this,
|
|
26467
|
+
return _super.prototype.merge.apply(this, __spreadArray$5([], __read$b(valuesList)));
|
|
25040
26468
|
};
|
|
25041
26469
|
return CameraBoundsOptions;
|
|
25042
26470
|
}(Options));
|
|
25043
26471
|
|
|
26472
|
+
var __extends$$ = (window && window.__extends) || (function () {
|
|
26473
|
+
var extendStatics = function (d, b) {
|
|
26474
|
+
extendStatics = Object.setPrototypeOf ||
|
|
26475
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
26476
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
26477
|
+
return extendStatics(d, b);
|
|
26478
|
+
};
|
|
26479
|
+
return function (d, b) {
|
|
26480
|
+
if (typeof b !== "function" && b !== null)
|
|
26481
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
26482
|
+
extendStatics(d, b);
|
|
26483
|
+
function __() { this.constructor = d; }
|
|
26484
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26485
|
+
};
|
|
26486
|
+
})();
|
|
25044
26487
|
/**
|
|
25045
26488
|
* The options for setting the map control's camera.
|
|
25046
26489
|
*/
|
|
25047
26490
|
var CameraOptions = /** @class */ (function (_super) {
|
|
25048
|
-
__extends(CameraOptions, _super);
|
|
26491
|
+
__extends$$(CameraOptions, _super);
|
|
25049
26492
|
function CameraOptions() {
|
|
25050
26493
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
25051
26494
|
/**
|
|
@@ -25104,11 +26547,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25104
26547
|
return CameraOptions;
|
|
25105
26548
|
}(Options));
|
|
25106
26549
|
|
|
26550
|
+
var __extends$10 = (window && window.__extends) || (function () {
|
|
26551
|
+
var extendStatics = function (d, b) {
|
|
26552
|
+
extendStatics = Object.setPrototypeOf ||
|
|
26553
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
26554
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
26555
|
+
return extendStatics(d, b);
|
|
26556
|
+
};
|
|
26557
|
+
return function (d, b) {
|
|
26558
|
+
if (typeof b !== "function" && b !== null)
|
|
26559
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
26560
|
+
extendStatics(d, b);
|
|
26561
|
+
function __() { this.constructor = d; }
|
|
26562
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26563
|
+
};
|
|
26564
|
+
})();
|
|
25107
26565
|
/**
|
|
25108
26566
|
* The options for a layer of the map.
|
|
25109
26567
|
*/
|
|
25110
26568
|
var LayerOptions$1 = /** @class */ (function (_super) {
|
|
25111
|
-
__extends(LayerOptions, _super);
|
|
26569
|
+
__extends$10(LayerOptions, _super);
|
|
25112
26570
|
function LayerOptions() {
|
|
25113
26571
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
25114
26572
|
/**
|
|
@@ -25141,12 +26599,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25141
26599
|
return LayerOptions;
|
|
25142
26600
|
}(Options));
|
|
25143
26601
|
|
|
26602
|
+
var __extends$11 = (window && window.__extends) || (function () {
|
|
26603
|
+
var extendStatics = function (d, b) {
|
|
26604
|
+
extendStatics = Object.setPrototypeOf ||
|
|
26605
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
26606
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
26607
|
+
return extendStatics(d, b);
|
|
26608
|
+
};
|
|
26609
|
+
return function (d, b) {
|
|
26610
|
+
if (typeof b !== "function" && b !== null)
|
|
26611
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
26612
|
+
extendStatics(d, b);
|
|
26613
|
+
function __() { this.constructor = d; }
|
|
26614
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26615
|
+
};
|
|
26616
|
+
})();
|
|
25144
26617
|
/**
|
|
25145
26618
|
* The options for a circle layer.
|
|
25146
26619
|
* @deprecated Use BubbleLayerOptions with atlas.layer.BubbleLayer instead.
|
|
25147
26620
|
*/
|
|
25148
26621
|
var CircleLayerOptions = /** @class */ (function (_super) {
|
|
25149
|
-
__extends(CircleLayerOptions, _super);
|
|
26622
|
+
__extends$11(CircleLayerOptions, _super);
|
|
25150
26623
|
function CircleLayerOptions() {
|
|
25151
26624
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
25152
26625
|
/**
|
|
@@ -25178,12 +26651,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25178
26651
|
return CircleLayerOptions;
|
|
25179
26652
|
}(LayerOptions$1));
|
|
25180
26653
|
|
|
26654
|
+
var __extends$12 = (window && window.__extends) || (function () {
|
|
26655
|
+
var extendStatics = function (d, b) {
|
|
26656
|
+
extendStatics = Object.setPrototypeOf ||
|
|
26657
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
26658
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
26659
|
+
return extendStatics(d, b);
|
|
26660
|
+
};
|
|
26661
|
+
return function (d, b) {
|
|
26662
|
+
if (typeof b !== "function" && b !== null)
|
|
26663
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
26664
|
+
extendStatics(d, b);
|
|
26665
|
+
function __() { this.constructor = d; }
|
|
26666
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26667
|
+
};
|
|
26668
|
+
})();
|
|
25181
26669
|
/**
|
|
25182
26670
|
* The options for a linestring layer.
|
|
25183
26671
|
* @deprecated Use LineLayerOptions with atlas.layer.LineLayer instead.
|
|
25184
26672
|
*/
|
|
25185
26673
|
var LinestringLayerOptions = /** @class */ (function (_super) {
|
|
25186
|
-
__extends(LinestringLayerOptions, _super);
|
|
26674
|
+
__extends$12(LinestringLayerOptions, _super);
|
|
25187
26675
|
function LinestringLayerOptions() {
|
|
25188
26676
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
25189
26677
|
/**
|
|
@@ -25219,12 +26707,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25219
26707
|
return LinestringLayerOptions;
|
|
25220
26708
|
}(LayerOptions$1));
|
|
25221
26709
|
|
|
26710
|
+
var __extends$13 = (window && window.__extends) || (function () {
|
|
26711
|
+
var extendStatics = function (d, b) {
|
|
26712
|
+
extendStatics = Object.setPrototypeOf ||
|
|
26713
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
26714
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
26715
|
+
return extendStatics(d, b);
|
|
26716
|
+
};
|
|
26717
|
+
return function (d, b) {
|
|
26718
|
+
if (typeof b !== "function" && b !== null)
|
|
26719
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
26720
|
+
extendStatics(d, b);
|
|
26721
|
+
function __() { this.constructor = d; }
|
|
26722
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26723
|
+
};
|
|
26724
|
+
})();
|
|
25222
26725
|
/**
|
|
25223
26726
|
* The options for a pin layer.
|
|
25224
26727
|
* @deprecated Use SymbolLayerOptions with atlas.layer.SymbolLayer instead.
|
|
25225
26728
|
*/
|
|
25226
26729
|
var PinLayerOptions = /** @class */ (function (_super) {
|
|
25227
|
-
__extends(PinLayerOptions, _super);
|
|
26730
|
+
__extends$13(PinLayerOptions, _super);
|
|
25228
26731
|
function PinLayerOptions() {
|
|
25229
26732
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
25230
26733
|
/**
|
|
@@ -25274,12 +26777,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25274
26777
|
return PinLayerOptions;
|
|
25275
26778
|
}(LayerOptions$1));
|
|
25276
26779
|
|
|
26780
|
+
var __extends$14 = (window && window.__extends) || (function () {
|
|
26781
|
+
var extendStatics = function (d, b) {
|
|
26782
|
+
extendStatics = Object.setPrototypeOf ||
|
|
26783
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
26784
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
26785
|
+
return extendStatics(d, b);
|
|
26786
|
+
};
|
|
26787
|
+
return function (d, b) {
|
|
26788
|
+
if (typeof b !== "function" && b !== null)
|
|
26789
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
26790
|
+
extendStatics(d, b);
|
|
26791
|
+
function __() { this.constructor = d; }
|
|
26792
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26793
|
+
};
|
|
26794
|
+
})();
|
|
25277
26795
|
/**
|
|
25278
26796
|
* The options for a polygon layer.
|
|
25279
26797
|
* @deprecated Use new PolygonLayerOptions with atlas.layer.PolygonLayer instead.
|
|
25280
26798
|
*/
|
|
25281
26799
|
var PolygonLayerOptions$1 = /** @class */ (function (_super) {
|
|
25282
|
-
__extends(PolygonLayerOptions, _super);
|
|
26800
|
+
__extends$14(PolygonLayerOptions, _super);
|
|
25283
26801
|
function PolygonLayerOptions() {
|
|
25284
26802
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
25285
26803
|
/**
|
|
@@ -25302,12 +26820,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25302
26820
|
return PolygonLayerOptions;
|
|
25303
26821
|
}(LayerOptions$1));
|
|
25304
26822
|
|
|
26823
|
+
var __extends$15 = (window && window.__extends) || (function () {
|
|
26824
|
+
var extendStatics = function (d, b) {
|
|
26825
|
+
extendStatics = Object.setPrototypeOf ||
|
|
26826
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
26827
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
26828
|
+
return extendStatics(d, b);
|
|
26829
|
+
};
|
|
26830
|
+
return function (d, b) {
|
|
26831
|
+
if (typeof b !== "function" && b !== null)
|
|
26832
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
26833
|
+
extendStatics(d, b);
|
|
26834
|
+
function __() { this.constructor = d; }
|
|
26835
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26836
|
+
};
|
|
26837
|
+
})();
|
|
25305
26838
|
/**
|
|
25306
26839
|
* The options for a raster layer.
|
|
25307
26840
|
* @deprecated Use TileLayerOptions with atlas.layer.TileLayer instead.
|
|
25308
26841
|
*/
|
|
25309
26842
|
var RasterLayerOptions = /** @class */ (function (_super) {
|
|
25310
|
-
__extends(RasterLayerOptions, _super);
|
|
26843
|
+
__extends$15(RasterLayerOptions, _super);
|
|
25311
26844
|
function RasterLayerOptions() {
|
|
25312
26845
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
25313
26846
|
/**
|
|
@@ -25319,11 +26852,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25319
26852
|
return RasterLayerOptions;
|
|
25320
26853
|
}(LayerOptions$1));
|
|
25321
26854
|
|
|
26855
|
+
var __extends$16 = (window && window.__extends) || (function () {
|
|
26856
|
+
var extendStatics = function (d, b) {
|
|
26857
|
+
extendStatics = Object.setPrototypeOf ||
|
|
26858
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
26859
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
26860
|
+
return extendStatics(d, b);
|
|
26861
|
+
};
|
|
26862
|
+
return function (d, b) {
|
|
26863
|
+
if (typeof b !== "function" && b !== null)
|
|
26864
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
26865
|
+
extendStatics(d, b);
|
|
26866
|
+
function __() { this.constructor = d; }
|
|
26867
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26868
|
+
};
|
|
26869
|
+
})();
|
|
25322
26870
|
/**
|
|
25323
26871
|
* The options for the map's lighting.
|
|
25324
26872
|
*/
|
|
25325
26873
|
var LightOptions = /** @class */ (function (_super) {
|
|
25326
|
-
__extends(LightOptions, _super);
|
|
26874
|
+
__extends$16(LightOptions, _super);
|
|
25327
26875
|
function LightOptions() {
|
|
25328
26876
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
25329
26877
|
/**
|
|
@@ -25363,11 +26911,58 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25363
26911
|
return LightOptions;
|
|
25364
26912
|
}(Options));
|
|
25365
26913
|
|
|
26914
|
+
var __extends$17 = (window && window.__extends) || (function () {
|
|
26915
|
+
var extendStatics = function (d, b) {
|
|
26916
|
+
extendStatics = Object.setPrototypeOf ||
|
|
26917
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
26918
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
26919
|
+
return extendStatics(d, b);
|
|
26920
|
+
};
|
|
26921
|
+
return function (d, b) {
|
|
26922
|
+
if (typeof b !== "function" && b !== null)
|
|
26923
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
26924
|
+
extendStatics(d, b);
|
|
26925
|
+
function __() { this.constructor = d; }
|
|
26926
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26927
|
+
};
|
|
26928
|
+
})();
|
|
26929
|
+
var __values$h = (window && window.__values) || function(o) {
|
|
26930
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
26931
|
+
if (m) return m.call(o);
|
|
26932
|
+
if (o && typeof o.length === "number") return {
|
|
26933
|
+
next: function () {
|
|
26934
|
+
if (o && i >= o.length) o = void 0;
|
|
26935
|
+
return { value: o && o[i++], done: !o };
|
|
26936
|
+
}
|
|
26937
|
+
};
|
|
26938
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
26939
|
+
};
|
|
26940
|
+
var __read$c = (window && window.__read) || function (o, n) {
|
|
26941
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
26942
|
+
if (!m) return o;
|
|
26943
|
+
var i = m.call(o), r, ar = [], e;
|
|
26944
|
+
try {
|
|
26945
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
26946
|
+
}
|
|
26947
|
+
catch (error) { e = { error: error }; }
|
|
26948
|
+
finally {
|
|
26949
|
+
try {
|
|
26950
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
26951
|
+
}
|
|
26952
|
+
finally { if (e) throw e.error; }
|
|
26953
|
+
}
|
|
26954
|
+
return ar;
|
|
26955
|
+
};
|
|
26956
|
+
var __spreadArray$6 = (window && window.__spreadArray) || function (to, from) {
|
|
26957
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
26958
|
+
to[j] = from[i];
|
|
26959
|
+
return to;
|
|
26960
|
+
};
|
|
25366
26961
|
/**
|
|
25367
26962
|
* The options for the map's style.
|
|
25368
26963
|
*/
|
|
25369
26964
|
var StyleOptions = /** @class */ (function (_super) {
|
|
25370
|
-
__extends(StyleOptions, _super);
|
|
26965
|
+
__extends$17(StyleOptions, _super);
|
|
25371
26966
|
function StyleOptions() {
|
|
25372
26967
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
25373
26968
|
/**
|
|
@@ -25399,6 +26994,20 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25399
26994
|
* @default false
|
|
25400
26995
|
*/
|
|
25401
26996
|
_this.preserveDrawingBuffer = false;
|
|
26997
|
+
/**
|
|
26998
|
+
* If true, the map will try to defer non-essential map layers and show essential layers as early as possible.
|
|
26999
|
+
* This option may only be set when initializing the map.
|
|
27000
|
+
* Default `false`
|
|
27001
|
+
* @default false
|
|
27002
|
+
*/
|
|
27003
|
+
_this.progressiveLoading = false;
|
|
27004
|
+
/**
|
|
27005
|
+
* The list of layer groups to be loaded at the initial stage. Passing an empty array will disable the progressive loading.
|
|
27006
|
+
* This option may only be set when initializing the map.
|
|
27007
|
+
* Default `['base']`
|
|
27008
|
+
* @default ['base']
|
|
27009
|
+
*/
|
|
27010
|
+
_this.progressiveLoadingInitialLayerGroups = ['base'];
|
|
25402
27011
|
/**
|
|
25403
27012
|
* Specifies if multiple copies of the world should be rendered when zoomed out.
|
|
25404
27013
|
* Default `true`
|
|
@@ -25478,7 +27087,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25478
27087
|
valueList[_i] = arguments[_i];
|
|
25479
27088
|
}
|
|
25480
27089
|
try {
|
|
25481
|
-
for (var valueList_1 = __values(valueList), valueList_1_1 = valueList_1.next(); !valueList_1_1.done; valueList_1_1 = valueList_1.next()) {
|
|
27090
|
+
for (var valueList_1 = __values$h(valueList), valueList_1_1 = valueList_1.next(); !valueList_1_1.done; valueList_1_1 = valueList_1.next()) {
|
|
25482
27091
|
var value = valueList_1_1.value;
|
|
25483
27092
|
if (value) {
|
|
25484
27093
|
// Make sure both view and userRegion properties exist. Prefer view's value.
|
|
@@ -25503,24 +27112,82 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25503
27112
|
finally { if (e_1) throw e_1.error; }
|
|
25504
27113
|
}
|
|
25505
27114
|
// Then execute the standard merge behavior.
|
|
25506
|
-
return _super.prototype.merge.apply(this,
|
|
27115
|
+
return _super.prototype.merge.apply(this, __spreadArray$6([], __read$c(valueList)));
|
|
25507
27116
|
};
|
|
25508
27117
|
return StyleOptions;
|
|
25509
27118
|
}(Options));
|
|
25510
27119
|
|
|
27120
|
+
var __extends$18 = (window && window.__extends) || (function () {
|
|
27121
|
+
var extendStatics = function (d, b) {
|
|
27122
|
+
extendStatics = Object.setPrototypeOf ||
|
|
27123
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
27124
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
27125
|
+
return extendStatics(d, b);
|
|
27126
|
+
};
|
|
27127
|
+
return function (d, b) {
|
|
27128
|
+
if (typeof b !== "function" && b !== null)
|
|
27129
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
27130
|
+
extendStatics(d, b);
|
|
27131
|
+
function __() { this.constructor = d; }
|
|
27132
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
27133
|
+
};
|
|
27134
|
+
})();
|
|
27135
|
+
var __assign$7 = (window && window.__assign) || function () {
|
|
27136
|
+
__assign$7 = Object.assign || function(t) {
|
|
27137
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
27138
|
+
s = arguments[i];
|
|
27139
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
27140
|
+
t[p] = s[p];
|
|
27141
|
+
}
|
|
27142
|
+
return t;
|
|
27143
|
+
};
|
|
27144
|
+
return __assign$7.apply(this, arguments);
|
|
27145
|
+
};
|
|
27146
|
+
var __values$i = (window && window.__values) || function(o) {
|
|
27147
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
27148
|
+
if (m) return m.call(o);
|
|
27149
|
+
if (o && typeof o.length === "number") return {
|
|
27150
|
+
next: function () {
|
|
27151
|
+
if (o && i >= o.length) o = void 0;
|
|
27152
|
+
return { value: o && o[i++], done: !o };
|
|
27153
|
+
}
|
|
27154
|
+
};
|
|
27155
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
27156
|
+
};
|
|
27157
|
+
var __read$d = (window && window.__read) || function (o, n) {
|
|
27158
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
27159
|
+
if (!m) return o;
|
|
27160
|
+
var i = m.call(o), r, ar = [], e;
|
|
27161
|
+
try {
|
|
27162
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
27163
|
+
}
|
|
27164
|
+
catch (error) { e = { error: error }; }
|
|
27165
|
+
finally {
|
|
27166
|
+
try {
|
|
27167
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
27168
|
+
}
|
|
27169
|
+
finally { if (e) throw e.error; }
|
|
27170
|
+
}
|
|
27171
|
+
return ar;
|
|
27172
|
+
};
|
|
27173
|
+
var __spreadArray$7 = (window && window.__spreadArray) || function (to, from) {
|
|
27174
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
27175
|
+
to[j] = from[i];
|
|
27176
|
+
return to;
|
|
27177
|
+
};
|
|
25511
27178
|
var composeTransformers = function (transformers) { return transformers.length == 0
|
|
25512
27179
|
? undefined
|
|
25513
27180
|
: transformers.slice(1).reduce(function (chained, transform) {
|
|
25514
27181
|
return function (url, resourceType) {
|
|
25515
27182
|
var resourceParams = chained(url, resourceType);
|
|
25516
|
-
return __assign(__assign({}, resourceParams), transform(resourceParams.url, resourceType));
|
|
27183
|
+
return __assign$7(__assign$7({}, resourceParams), transform(resourceParams.url, resourceType));
|
|
25517
27184
|
};
|
|
25518
27185
|
}, transformers[0]); };
|
|
25519
27186
|
/**
|
|
25520
27187
|
* Global properties used in all atlas service requests.
|
|
25521
27188
|
*/
|
|
25522
27189
|
var ServiceOptions = /** @class */ (function (_super) {
|
|
25523
|
-
__extends(ServiceOptions, _super);
|
|
27190
|
+
__extends$18(ServiceOptions, _super);
|
|
25524
27191
|
function ServiceOptions() {
|
|
25525
27192
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
25526
27193
|
/**
|
|
@@ -25679,7 +27346,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25679
27346
|
}
|
|
25680
27347
|
try {
|
|
25681
27348
|
// Make sure both camel and dash case properties exist. Prefer the camel case ones.
|
|
25682
|
-
for (var valueList_1 = __values(valueList), valueList_1_1 = valueList_1.next(); !valueList_1_1.done; valueList_1_1 = valueList_1.next()) {
|
|
27349
|
+
for (var valueList_1 = __values$i(valueList), valueList_1_1 = valueList_1.next(); !valueList_1_1.done; valueList_1_1 = valueList_1.next()) {
|
|
25683
27350
|
var value = valueList_1_1.value;
|
|
25684
27351
|
if (value) {
|
|
25685
27352
|
// authOptions can also have a subscription key so check for that first.
|
|
@@ -25738,10 +27405,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25738
27405
|
// won't change default behavior in Options as usually that's what desired
|
|
25739
27406
|
// instead capture it here and reassign.
|
|
25740
27407
|
var currentTransforms = this._transformers;
|
|
25741
|
-
var transformersToMerge = valueList ? valueList.filter(function (value) { return value !== undefined; }).reduce(function (flattened, value) { return
|
|
27408
|
+
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 || [])); }, []) : [];
|
|
25742
27409
|
// Then execute the standard merge behavior.
|
|
25743
27410
|
// If subscription key auth method isn't being used then the subscription key property should be undefined.
|
|
25744
|
-
var merged = _super.prototype.merge.apply(this,
|
|
27411
|
+
var merged = _super.prototype.merge.apply(this, __spreadArray$7([], __read$d(valueList)));
|
|
25745
27412
|
if (merged.authOptions.authType !== exports.AuthenticationType.subscriptionKey) {
|
|
25746
27413
|
merged["subscription-key"] = merged.subscriptionKey = undefined;
|
|
25747
27414
|
}
|
|
@@ -25751,9 +27418,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25751
27418
|
}
|
|
25752
27419
|
// reassign properties from legacy mapConfiguration to new structure if needed
|
|
25753
27420
|
if (merged.mapConfiguration && typeof merged.mapConfiguration !== 'string') {
|
|
25754
|
-
merged.mapConfiguration = __assign(__assign({}, merged.mapConfiguration), { defaultConfiguration: merged.mapConfiguration.defaultConfiguration || merged.mapConfiguration['defaultStyle'], configurations: merged.mapConfiguration.configurations || merged.mapConfiguration['styles'] });
|
|
27421
|
+
merged.mapConfiguration = __assign$7(__assign$7({}, merged.mapConfiguration), { defaultConfiguration: merged.mapConfiguration.defaultConfiguration || merged.mapConfiguration['defaultStyle'], configurations: merged.mapConfiguration.configurations || merged.mapConfiguration['styles'] });
|
|
25755
27422
|
}
|
|
25756
|
-
this._transformers =
|
|
27423
|
+
this._transformers = __spreadArray$7(__spreadArray$7([], __read$d(currentTransforms || [])), __read$d(transformersToMerge.filter(function (toMerge) { return !currentTransforms.includes(toMerge); })));
|
|
25757
27424
|
if (this.transformRequest && !this._transformers.includes(this.transformRequest)) {
|
|
25758
27425
|
this._transformers.push(this.transformRequest);
|
|
25759
27426
|
}
|
|
@@ -25939,6 +27606,74 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25939
27606
|
high_contrast_light: "High contrast (Light)"
|
|
25940
27607
|
};
|
|
25941
27608
|
|
|
27609
|
+
var __assign$8 = (window && window.__assign) || function () {
|
|
27610
|
+
__assign$8 = Object.assign || function(t) {
|
|
27611
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
27612
|
+
s = arguments[i];
|
|
27613
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
27614
|
+
t[p] = s[p];
|
|
27615
|
+
}
|
|
27616
|
+
return t;
|
|
27617
|
+
};
|
|
27618
|
+
return __assign$8.apply(this, arguments);
|
|
27619
|
+
};
|
|
27620
|
+
var __awaiter$3 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
27621
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27622
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
27623
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
27624
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
27625
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
27626
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
27627
|
+
});
|
|
27628
|
+
};
|
|
27629
|
+
var __generator$3 = (window && window.__generator) || function (thisArg, body) {
|
|
27630
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
27631
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
27632
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
27633
|
+
function step(op) {
|
|
27634
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
27635
|
+
while (_) try {
|
|
27636
|
+
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;
|
|
27637
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
27638
|
+
switch (op[0]) {
|
|
27639
|
+
case 0: case 1: t = op; break;
|
|
27640
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
27641
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
27642
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
27643
|
+
default:
|
|
27644
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27645
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
27646
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
27647
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
27648
|
+
if (t[2]) _.ops.pop();
|
|
27649
|
+
_.trys.pop(); continue;
|
|
27650
|
+
}
|
|
27651
|
+
op = body.call(thisArg, _);
|
|
27652
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
27653
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
27654
|
+
}
|
|
27655
|
+
};
|
|
27656
|
+
var __read$e = (window && window.__read) || function (o, n) {
|
|
27657
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
27658
|
+
if (!m) return o;
|
|
27659
|
+
var i = m.call(o), r, ar = [], e;
|
|
27660
|
+
try {
|
|
27661
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
27662
|
+
}
|
|
27663
|
+
catch (error) { e = { error: error }; }
|
|
27664
|
+
finally {
|
|
27665
|
+
try {
|
|
27666
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
27667
|
+
}
|
|
27668
|
+
finally { if (e) throw e.error; }
|
|
27669
|
+
}
|
|
27670
|
+
return ar;
|
|
27671
|
+
};
|
|
27672
|
+
var __spreadArray$8 = (window && window.__spreadArray) || function (to, from) {
|
|
27673
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
27674
|
+
to[j] = from[i];
|
|
27675
|
+
return to;
|
|
27676
|
+
};
|
|
25942
27677
|
/**
|
|
25943
27678
|
* @private
|
|
25944
27679
|
*/
|
|
@@ -25961,6 +27696,57 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25961
27696
|
* Preserve the map configuration that was used before the indoor map configuration was set
|
|
25962
27697
|
*/
|
|
25963
27698
|
this.preservedPreindoorMapConfiguration = undefined;
|
|
27699
|
+
this._deferLayerGroupVisibilities = function (layerGroupLayers, initLayerGroups) {
|
|
27700
|
+
var validInitLayerGroups = initLayerGroups.filter(function (groupName) { return groupName in layerGroupLayers; });
|
|
27701
|
+
// If the initial layer groups are invalid, skip the progressive loading.
|
|
27702
|
+
if (validInitLayerGroups.length === 0)
|
|
27703
|
+
return;
|
|
27704
|
+
var map = _this.map._getMap();
|
|
27705
|
+
var currentZoomLevel = map.getZoom();
|
|
27706
|
+
// Select the layers to be deferred
|
|
27707
|
+
var deferredLayers = Object.entries(layerGroupLayers).reduce(function (deferred, _a) {
|
|
27708
|
+
var _b = __read$e(_a, 2), groupName = _b[0], layers = _b[1];
|
|
27709
|
+
var isInInitialLayerGroup = validInitLayerGroups.includes(groupName);
|
|
27710
|
+
return __spreadArray$8(__spreadArray$8([], __read$e(deferred)), __read$e(layers.filter(function (layer) {
|
|
27711
|
+
var _a;
|
|
27712
|
+
// Exclude custom layers
|
|
27713
|
+
if (layer.type === 'custom')
|
|
27714
|
+
return false;
|
|
27715
|
+
// Exclude visible layers from initial layer groups
|
|
27716
|
+
if (isInInitialLayerGroup) {
|
|
27717
|
+
if (typeof layer.maxzoom === 'number' && typeof layer.minzoom === 'number') {
|
|
27718
|
+
if (currentZoomLevel <= layer.maxzoom && currentZoomLevel >= layer.minzoom)
|
|
27719
|
+
return false;
|
|
27720
|
+
}
|
|
27721
|
+
else if (typeof layer.minzoom === 'number') {
|
|
27722
|
+
if (currentZoomLevel >= layer.minzoom)
|
|
27723
|
+
return false;
|
|
27724
|
+
}
|
|
27725
|
+
else if (typeof layer.maxzoom === 'number') {
|
|
27726
|
+
if (currentZoomLevel <= layer.maxzoom)
|
|
27727
|
+
return false;
|
|
27728
|
+
}
|
|
27729
|
+
else {
|
|
27730
|
+
return false;
|
|
27731
|
+
}
|
|
27732
|
+
}
|
|
27733
|
+
// Defer visible layers only.
|
|
27734
|
+
return ((_a = layer.layout) === null || _a === void 0 ? void 0 : _a.visibility) !== 'none';
|
|
27735
|
+
})));
|
|
27736
|
+
}, []);
|
|
27737
|
+
// Hide the deferred layers at initial load, therefore we can save the render time.
|
|
27738
|
+
deferredLayers.forEach(function (layer) {
|
|
27739
|
+
layer.layout = layer.layout || {};
|
|
27740
|
+
layer.layout.visibility = 'none';
|
|
27741
|
+
});
|
|
27742
|
+
// Make the deferred layers visible once the map instance is fully loaded
|
|
27743
|
+
_this.map.events.addOnce('load', function () {
|
|
27744
|
+
deferredLayers.forEach(function (layer) {
|
|
27745
|
+
layer.layout.visibility = 'visible';
|
|
27746
|
+
map.setLayoutProperty(layer.id, 'visibility', 'visible');
|
|
27747
|
+
});
|
|
27748
|
+
});
|
|
27749
|
+
};
|
|
25964
27750
|
this._onStyleData = function () {
|
|
25965
27751
|
_this._lookUpAsync(_this.map.getStyle()).then(function (style) {
|
|
25966
27752
|
_this.map.events.invoke("stylechanged", {
|
|
@@ -25990,9 +27776,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25990
27776
|
|| definitions.configurations[0];
|
|
25991
27777
|
}
|
|
25992
27778
|
};
|
|
25993
|
-
this._lookUpAsync = function (options) { return __awaiter(_this, void 0, void 0, function () {
|
|
27779
|
+
this._lookUpAsync = function (options) { return __awaiter$3(_this, void 0, void 0, function () {
|
|
25994
27780
|
var definitions, result;
|
|
25995
|
-
return __generator(this, function (_a) {
|
|
27781
|
+
return __generator$3(this, function (_a) {
|
|
25996
27782
|
switch (_a.label) {
|
|
25997
27783
|
case 0: return [4 /*yield*/, this.definitions()];
|
|
25998
27784
|
case 1:
|
|
@@ -26102,6 +27888,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
26102
27888
|
path: constants.stylePath + "/" + constants.styleResourcePath + "/" + style.name,
|
|
26103
27889
|
queryParams: {
|
|
26104
27890
|
styleVersion: _this.serviceOptions.styleDefinitionsVersion,
|
|
27891
|
+
// thus far we don't need to differentiate based on parameter here, as stylePatch will be called on cached styles as well
|
|
27892
|
+
//language: styleOptions.language
|
|
26105
27893
|
},
|
|
26106
27894
|
protocol: "https"
|
|
26107
27895
|
}).toString(),
|
|
@@ -26111,7 +27899,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
26111
27899
|
else if (typeof this.serviceOptions.mapConfiguration === 'string') {
|
|
26112
27900
|
newPromise = new HijackablePromise(this._request(this.serviceOptions.domain, constants.styleResourcePath + "/mapconfigurations/metadata/" + this.serviceOptions.mapConfiguration, "StyleDefinitions"
|
|
26113
27901
|
// reassign properties from legacy mapConfiguration to new structure if needed
|
|
26114
|
-
).then(function (definitions) { return (__assign(__assign({}, definitions), { defaultConfiguration: definitions.defaultConfiguration || definitions['defaultStyle'], configurations: definitions.configurations || definitions['styles'] })); }));
|
|
27902
|
+
).then(function (definitions) { return (__assign$8(__assign$8({}, definitions), { defaultConfiguration: definitions.defaultConfiguration || definitions['defaultStyle'], configurations: definitions.configurations || definitions['styles'] })); }));
|
|
26115
27903
|
}
|
|
26116
27904
|
else {
|
|
26117
27905
|
newPromise = HijackablePromise.resolve(this.serviceOptions.mapConfiguration);
|
|
@@ -26149,11 +27937,11 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
26149
27937
|
// should be modified before they are applied to the map.
|
|
26150
27938
|
var styleOptions = this.map.getStyle();
|
|
26151
27939
|
var trafficOptions = this.map.getTraffic();
|
|
26152
|
-
return __assign(__assign({}, nextStyle), {
|
|
27940
|
+
return __assign$8(__assign$8({}, nextStyle), {
|
|
26153
27941
|
// force a replacement of language placeholder in the tileset url to avoid resolution to a same cache with placeholders on language change
|
|
26154
27942
|
sources: Object.entries(nextStyle.sources).reduce(function (newSources, _a) {
|
|
26155
|
-
var _b = __read(_a, 2), sourceKey = _b[0], source = _b[1];
|
|
26156
|
-
var newSource = __assign({}, source);
|
|
27943
|
+
var _b = __read$e(_a, 2), sourceKey = _b[0], source = _b[1];
|
|
27944
|
+
var newSource = __assign$8({}, source);
|
|
26157
27945
|
if ('url' in newSource && typeof newSource.url === 'string') {
|
|
26158
27946
|
if (newSource.url.includes(constants.languagePlaceHolder)) {
|
|
26159
27947
|
newSource.url = newSource.url.replace(constants.languagePlaceHolder, styleOptions.language);
|
|
@@ -26162,8 +27950,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
26162
27950
|
newSources[sourceKey] = newSource;
|
|
26163
27951
|
return newSources;
|
|
26164
27952
|
}, {}), layers: nextStyle.layers.map(function (layer) {
|
|
26165
|
-
var _a, _b, _c, _d, _e;
|
|
26166
|
-
var nextLayer = __assign({}, layer);
|
|
27953
|
+
var _a, _b, _c, _d, _e, _f;
|
|
27954
|
+
var nextLayer = __assign$8({}, layer);
|
|
26167
27955
|
var layerGroup = LayerGroupComparator.getLayerGroup(nextLayer);
|
|
26168
27956
|
if (!layerGroup) {
|
|
26169
27957
|
return nextLayer;
|
|
@@ -26187,12 +27975,12 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
26187
27975
|
// 3. Set visibility of labels
|
|
26188
27976
|
var isLabelLayerGroup = layerGroup === 'labels' || layerGroup === 'labels_places' || layerGroup === 'labels_indoor';
|
|
26189
27977
|
if (isLabelLayerGroup && nextLayer.type === 'symbol') {
|
|
26190
|
-
if (styleOptions.showLabels) {
|
|
26191
|
-
nextLayer.layout = (
|
|
27978
|
+
if (styleOptions.showLabels && ((_d = nextLayer.layout) === null || _d === void 0 ? void 0 : _d.visibility) !== "none") {
|
|
27979
|
+
nextLayer.layout = (_e = nextLayer.layout) !== null && _e !== void 0 ? _e : {};
|
|
26192
27980
|
nextLayer.layout.visibility = "visible";
|
|
26193
27981
|
}
|
|
26194
27982
|
else {
|
|
26195
|
-
nextLayer.layout = (
|
|
27983
|
+
nextLayer.layout = (_f = nextLayer.layout) !== null && _f !== void 0 ? _f : {};
|
|
26196
27984
|
nextLayer.layout.visibility = "none";
|
|
26197
27985
|
}
|
|
26198
27986
|
}
|
|
@@ -26235,7 +28023,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
26235
28023
|
});
|
|
26236
28024
|
}
|
|
26237
28025
|
return style;
|
|
26238
|
-
}, __assign({}, nextStyle));
|
|
28026
|
+
}, __assign$8({}, nextStyle));
|
|
26239
28027
|
};
|
|
26240
28028
|
/**
|
|
26241
28029
|
* @internal
|
|
@@ -26260,13 +28048,23 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
26260
28048
|
.reduce(function (layerGroupLayers, _a) {
|
|
26261
28049
|
var _b;
|
|
26262
28050
|
var nextLayer = _a.nextLayer, layerGroup = _a.layerGroup;
|
|
26263
|
-
return (__assign(__assign({}, layerGroupLayers), (_b = {}, _b[layerGroup] = layerGroup in layerGroupLayers ?
|
|
28051
|
+
return (__assign$8(__assign$8({}, layerGroupLayers), (_b = {}, _b[layerGroup] = layerGroup in layerGroupLayers ? __spreadArray$8(__spreadArray$8([], __read$e(layerGroupLayers[layerGroup])), [nextLayer]) : [nextLayer], _b)));
|
|
26264
28052
|
}, {});
|
|
26265
|
-
// 3.
|
|
28053
|
+
// 3. side effect: progressively render map layers to the canvas to shorten the time to the first meaningful render.
|
|
28054
|
+
var shouldProgressiveLoading = (styleOptions.progressiveLoading &&
|
|
28055
|
+
// The feature only effective at the initial load.
|
|
28056
|
+
!_this.map._isLoaded());
|
|
28057
|
+
if (shouldProgressiveLoading) {
|
|
28058
|
+
var initLayerGroups = styleOptions.progressiveLoadingInitialLayerGroups;
|
|
28059
|
+
if (Array.isArray(initLayerGroups) && initLayerGroups.length > 0) {
|
|
28060
|
+
_this._deferLayerGroupVisibilities(layerGroupLayers, initLayerGroups);
|
|
28061
|
+
}
|
|
28062
|
+
}
|
|
28063
|
+
// 4. copy user layers and sources from previous style into new one
|
|
26266
28064
|
var targetStyleWithUserLayers = _this.injectUserLayersIntoStyle(previousStyle, nextStyle, layerGroupLayers);
|
|
26267
|
-
//
|
|
28065
|
+
// 5. side effects: sync our control's LayerManager and SourceManager
|
|
26268
28066
|
var nextFundamentalLayers = Object.entries(layerGroupLayers).map(function (_a) {
|
|
26269
|
-
var _b = __read(_a, 2), layerGroupId = _b[0], layers = _b[1];
|
|
28067
|
+
var _b = __read$e(_a, 2), layerGroupId = _b[0], layers = _b[1];
|
|
26270
28068
|
return _this._buildFundamentalLayerFrom(layers, layerGroupId);
|
|
26271
28069
|
});
|
|
26272
28070
|
var layerIndex = _this.map.layers._getUserLayers().reduce(function (layerIndex, userLayer) {
|
|
@@ -26308,8 +28106,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
26308
28106
|
return style.theme.toLowerCase();
|
|
26309
28107
|
};
|
|
26310
28108
|
StyleManager.prototype.getThemeAsync = function (styleOptions) {
|
|
26311
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
26312
|
-
return __generator(this, function (_a) {
|
|
28109
|
+
return __awaiter$3(this, void 0, void 0, function () {
|
|
28110
|
+
return __generator$3(this, function (_a) {
|
|
26313
28111
|
switch (_a.label) {
|
|
26314
28112
|
case 0: return [4 /*yield*/, this._lookUpAsync(styleOptions)];
|
|
26315
28113
|
case 1: return [2 /*return*/, (_a.sent()).theme];
|
|
@@ -26402,10 +28200,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
26402
28200
|
StyleManager.prototype._request = function (domain, path, resourceType, customQueryParams) {
|
|
26403
28201
|
var _a;
|
|
26404
28202
|
if (customQueryParams === void 0) { customQueryParams = {}; }
|
|
26405
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
28203
|
+
return __awaiter$3(this, void 0, void 0, function () {
|
|
26406
28204
|
var requestParams, fetchOptions;
|
|
26407
28205
|
var _b;
|
|
26408
|
-
return __generator(this, function (_c) {
|
|
28206
|
+
return __generator$3(this, function (_c) {
|
|
26409
28207
|
switch (_c.label) {
|
|
26410
28208
|
case 0:
|
|
26411
28209
|
requestParams = {
|
|
@@ -26413,7 +28211,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
26413
28211
|
protocol: "https",
|
|
26414
28212
|
domain: domain,
|
|
26415
28213
|
path: path,
|
|
26416
|
-
queryParams: __assign((_b = {}, _b[constants.apiVersionQueryParameter] = this.serviceOptions.styleAPIVersion, _b), customQueryParams)
|
|
28214
|
+
queryParams: __assign$8((_b = {}, _b[constants.apiVersionQueryParameter] = this.serviceOptions.styleAPIVersion, _b), customQueryParams)
|
|
26417
28215
|
}).toString()
|
|
26418
28216
|
};
|
|
26419
28217
|
if (typeof this.serviceOptions.transformRequest === "function" && resourceType) {
|
|
@@ -26450,11 +28248,105 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
26450
28248
|
*/
|
|
26451
28249
|
var isHMREnabled = function () { return 'ENVIRONMENT' in window && !!window['ENVIRONMENT']['hmr']; };
|
|
26452
28250
|
|
|
28251
|
+
var __extends$19 = (window && window.__extends) || (function () {
|
|
28252
|
+
var extendStatics = function (d, b) {
|
|
28253
|
+
extendStatics = Object.setPrototypeOf ||
|
|
28254
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
28255
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
28256
|
+
return extendStatics(d, b);
|
|
28257
|
+
};
|
|
28258
|
+
return function (d, b) {
|
|
28259
|
+
if (typeof b !== "function" && b !== null)
|
|
28260
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
28261
|
+
extendStatics(d, b);
|
|
28262
|
+
function __() { this.constructor = d; }
|
|
28263
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28264
|
+
};
|
|
28265
|
+
})();
|
|
28266
|
+
var __assign$9 = (window && window.__assign) || function () {
|
|
28267
|
+
__assign$9 = Object.assign || function(t) {
|
|
28268
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
28269
|
+
s = arguments[i];
|
|
28270
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
28271
|
+
t[p] = s[p];
|
|
28272
|
+
}
|
|
28273
|
+
return t;
|
|
28274
|
+
};
|
|
28275
|
+
return __assign$9.apply(this, arguments);
|
|
28276
|
+
};
|
|
28277
|
+
var __awaiter$4 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
28278
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
28279
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28280
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
28281
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
28282
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
28283
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
28284
|
+
});
|
|
28285
|
+
};
|
|
28286
|
+
var __generator$4 = (window && window.__generator) || function (thisArg, body) {
|
|
28287
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
28288
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
28289
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
28290
|
+
function step(op) {
|
|
28291
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
28292
|
+
while (_) try {
|
|
28293
|
+
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;
|
|
28294
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
28295
|
+
switch (op[0]) {
|
|
28296
|
+
case 0: case 1: t = op; break;
|
|
28297
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
28298
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
28299
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
28300
|
+
default:
|
|
28301
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
28302
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28303
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
28304
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
28305
|
+
if (t[2]) _.ops.pop();
|
|
28306
|
+
_.trys.pop(); continue;
|
|
28307
|
+
}
|
|
28308
|
+
op = body.call(thisArg, _);
|
|
28309
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
28310
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
28311
|
+
}
|
|
28312
|
+
};
|
|
28313
|
+
var __read$f = (window && window.__read) || function (o, n) {
|
|
28314
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
28315
|
+
if (!m) return o;
|
|
28316
|
+
var i = m.call(o), r, ar = [], e;
|
|
28317
|
+
try {
|
|
28318
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
28319
|
+
}
|
|
28320
|
+
catch (error) { e = { error: error }; }
|
|
28321
|
+
finally {
|
|
28322
|
+
try {
|
|
28323
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
28324
|
+
}
|
|
28325
|
+
finally { if (e) throw e.error; }
|
|
28326
|
+
}
|
|
28327
|
+
return ar;
|
|
28328
|
+
};
|
|
28329
|
+
var __spreadArray$9 = (window && window.__spreadArray) || function (to, from) {
|
|
28330
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
28331
|
+
to[j] = from[i];
|
|
28332
|
+
return to;
|
|
28333
|
+
};
|
|
28334
|
+
var __values$j = (window && window.__values) || function(o) {
|
|
28335
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
28336
|
+
if (m) return m.call(o);
|
|
28337
|
+
if (o && typeof o.length === "number") return {
|
|
28338
|
+
next: function () {
|
|
28339
|
+
if (o && i >= o.length) o = void 0;
|
|
28340
|
+
return { value: o && o[i++], done: !o };
|
|
28341
|
+
}
|
|
28342
|
+
};
|
|
28343
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
28344
|
+
};
|
|
26453
28345
|
/**
|
|
26454
28346
|
* The control for a visual and interactive web map.
|
|
26455
28347
|
*/
|
|
26456
28348
|
var Map$2 = /** @class */ (function (_super) {
|
|
26457
|
-
__extends(Map, _super);
|
|
28349
|
+
__extends$19(Map, _super);
|
|
26458
28350
|
/**
|
|
26459
28351
|
* Displays a map in the specified container.
|
|
26460
28352
|
* @param container The id of the element where the map should be displayed.
|
|
@@ -26592,7 +28484,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
26592
28484
|
_this.localizedStringsPromise = Localizer.getStrings(_this.styleOptions.language);
|
|
26593
28485
|
var stylesInit = _this.styles.initStyleset();
|
|
26594
28486
|
Promise.all([authManInit, stylesInit]).then(function (_a) {
|
|
26595
|
-
var _b = __read(_a, 2), _ = _b[0], definitions = _b[1];
|
|
28487
|
+
var _b = __read$f(_a, 2), _ = _b[0], definitions = _b[1];
|
|
26596
28488
|
// Check that the map hasn't been removed for any reason.
|
|
26597
28489
|
// If so no need to finish styling the map.
|
|
26598
28490
|
if (_this.removed) {
|
|
@@ -26622,7 +28514,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
26622
28514
|
_this.events.invoke("error", errorData);
|
|
26623
28515
|
});
|
|
26624
28516
|
// --> Set initial camera state of map
|
|
26625
|
-
_this.setCamera(__assign(__assign({}, options), { type: "jump", duration: 0 }));
|
|
28517
|
+
_this.setCamera(__assign$9(__assign$9({}, options), { type: "jump", duration: 0 }));
|
|
26626
28518
|
// Add delegates to map
|
|
26627
28519
|
{
|
|
26628
28520
|
_this.incidentDelegate = new IncidentServiceDelegate(_this);
|
|
@@ -26777,10 +28669,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
26777
28669
|
this.map.jumpTo(mapboxCameraOptions, eventData);
|
|
26778
28670
|
}
|
|
26779
28671
|
else if (animOptions.type === "ease") {
|
|
26780
|
-
this.map.easeTo(__assign(__assign({}, mapboxCameraOptions), mapboxAnimationOptions), eventData);
|
|
28672
|
+
this.map.easeTo(__assign$9(__assign$9({}, mapboxCameraOptions), mapboxAnimationOptions), eventData);
|
|
26781
28673
|
}
|
|
26782
28674
|
else if (animOptions.type === "fly") {
|
|
26783
|
-
this.map.flyTo(__assign(__assign({}, mapboxCameraOptions), mapboxAnimationOptions), eventData);
|
|
28675
|
+
this.map.flyTo(__assign$9(__assign$9({}, mapboxCameraOptions), mapboxAnimationOptions), eventData);
|
|
26784
28676
|
}
|
|
26785
28677
|
};
|
|
26786
28678
|
/**
|
|
@@ -27243,7 +29135,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
27243
29135
|
urls = layer.getOptions().subdomains || [];
|
|
27244
29136
|
}
|
|
27245
29137
|
// Add the tile urls to the layer, but don't update the map yet.
|
|
27246
|
-
urls.push.apply(urls,
|
|
29138
|
+
urls.push.apply(urls, __spreadArray$9([], __read$f(tileSources)));
|
|
27247
29139
|
layer._setOptionsNoUpdate({
|
|
27248
29140
|
subdomains: urls
|
|
27249
29141
|
});
|
|
@@ -27265,7 +29157,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
27265
29157
|
Map.prototype.removeLayers = function (layerNames) {
|
|
27266
29158
|
var e_1, _a;
|
|
27267
29159
|
try {
|
|
27268
|
-
for (var layerNames_1 = __values(layerNames), layerNames_1_1 = layerNames_1.next(); !layerNames_1_1.done; layerNames_1_1 = layerNames_1.next()) {
|
|
29160
|
+
for (var layerNames_1 = __values$j(layerNames), layerNames_1_1 = layerNames_1.next(); !layerNames_1_1.done; layerNames_1_1 = layerNames_1.next()) {
|
|
27269
29161
|
var layerName = layerNames_1_1.value;
|
|
27270
29162
|
// Previously calling removeLayers for layers that didn't exist in the map just did nothing.
|
|
27271
29163
|
// Now, LayerManager will throw an error, so we need to check if the layer exists before calling remove.
|
|
@@ -27455,7 +29347,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
27455
29347
|
var e_2, _a;
|
|
27456
29348
|
var positions = [];
|
|
27457
29349
|
try {
|
|
27458
|
-
for (var pixels_1 = __values(pixels), pixels_1_1 = pixels_1.next(); !pixels_1_1.done; pixels_1_1 = pixels_1.next()) {
|
|
29350
|
+
for (var pixels_1 = __values$j(pixels), pixels_1_1 = pixels_1.next(); !pixels_1_1.done; pixels_1_1 = pixels_1.next()) {
|
|
27459
29351
|
var pixel = pixels_1_1.value;
|
|
27460
29352
|
var lngLat = this.map.unproject(pixel);
|
|
27461
29353
|
positions.push(new Position(lngLat.lng, lngLat.lat));
|
|
@@ -27478,7 +29370,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
27478
29370
|
var e_3, _a;
|
|
27479
29371
|
var pixels = [];
|
|
27480
29372
|
try {
|
|
27481
|
-
for (var positions_1 = __values(positions), positions_1_1 = positions_1.next(); !positions_1_1.done; positions_1_1 = positions_1.next()) {
|
|
29373
|
+
for (var positions_1 = __values$j(positions), positions_1_1 = positions_1.next(); !positions_1_1.done; positions_1_1 = positions_1.next()) {
|
|
27482
29374
|
var position = positions_1_1.value;
|
|
27483
29375
|
var point = this.map.project(position);
|
|
27484
29376
|
pixels.push(new Pixel(point.x, point.y));
|
|
@@ -27526,8 +29418,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
27526
29418
|
*/
|
|
27527
29419
|
Map.prototype._rebuildStyle = function (diff) {
|
|
27528
29420
|
if (diff === void 0) { diff = true; }
|
|
27529
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
27530
|
-
return __generator(this, function (_a) {
|
|
29421
|
+
return __awaiter$4(this, void 0, void 0, function () {
|
|
29422
|
+
return __generator$4(this, function (_a) {
|
|
27531
29423
|
this.styles.setStyle(this.styleOptions, diff);
|
|
27532
29424
|
this.imageSprite._restoreImages();
|
|
27533
29425
|
return [2 /*return*/];
|
|
@@ -27572,7 +29464,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
27572
29464
|
// Send the fetch using the transformed parameters.
|
|
27573
29465
|
return fetch(requestParams.url || url, {
|
|
27574
29466
|
credentials: requestParams.credentials,
|
|
27575
|
-
headers: __assign(__assign({}, headers), requestParams.headers),
|
|
29467
|
+
headers: __assign$9(__assign$9({}, headers), requestParams.headers),
|
|
27576
29468
|
method: "GET",
|
|
27577
29469
|
mode: "cors",
|
|
27578
29470
|
});
|
|
@@ -27743,6 +29635,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
27743
29635
|
return Map;
|
|
27744
29636
|
}(EventEmitter));
|
|
27745
29637
|
|
|
29638
|
+
var __read$g = (window && window.__read) || function (o, n) {
|
|
29639
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
29640
|
+
if (!m) return o;
|
|
29641
|
+
var i = m.call(o), r, ar = [], e;
|
|
29642
|
+
try {
|
|
29643
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
29644
|
+
}
|
|
29645
|
+
catch (error) { e = { error: error }; }
|
|
29646
|
+
finally {
|
|
29647
|
+
try {
|
|
29648
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
29649
|
+
}
|
|
29650
|
+
finally { if (e) throw e.error; }
|
|
29651
|
+
}
|
|
29652
|
+
return ar;
|
|
29653
|
+
};
|
|
29654
|
+
var __spreadArray$a = (window && window.__spreadArray) || function (to, from) {
|
|
29655
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
29656
|
+
to[j] = from[i];
|
|
29657
|
+
return to;
|
|
29658
|
+
};
|
|
27746
29659
|
/** A layout template for a popup. */
|
|
27747
29660
|
var PopupTemplate = /** @class */ (function () {
|
|
27748
29661
|
function PopupTemplate() {
|
|
@@ -27884,7 +29797,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
27884
29797
|
lineLength = 50;
|
|
27885
29798
|
}
|
|
27886
29799
|
var lines = c.split(/<(tr|div|br|li|h[0-9]|p>)/);
|
|
27887
|
-
longestStringLength = Math.max.apply(Math,
|
|
29800
|
+
longestStringLength = Math.max.apply(Math, __spreadArray$a([], __read$g((lines.map(function (el) { return el.replace(/<[a-zA-Z0-9\s=\/]+>/g, "").length; }))))) - 1;
|
|
27888
29801
|
var w = Math.ceil(longestStringLength * 3.5);
|
|
27889
29802
|
if (w < width) {
|
|
27890
29803
|
width = w;
|