mobility-toolbox-js 3.0.0-beta.20 → 3.0.0-beta.21

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/mbt.js CHANGED
@@ -402,139 +402,6 @@
402
402
  }
403
403
  });
404
404
 
405
- // node_modules/lodash.debounce/index.js
406
- var require_lodash = __commonJS({
407
- "node_modules/lodash.debounce/index.js"(exports, module) {
408
- var FUNC_ERROR_TEXT = "Expected a function";
409
- var NAN = 0 / 0;
410
- var symbolTag = "[object Symbol]";
411
- var reTrim = /^\s+|\s+$/g;
412
- var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
413
- var reIsBinary = /^0b[01]+$/i;
414
- var reIsOctal = /^0o[0-7]+$/i;
415
- var freeParseInt = parseInt;
416
- var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
417
- var freeSelf = typeof self == "object" && self && self.Object === Object && self;
418
- var root = freeGlobal || freeSelf || Function("return this")();
419
- var objectProto = Object.prototype;
420
- var objectToString = objectProto.toString;
421
- var nativeMax = Math.max;
422
- var nativeMin = Math.min;
423
- var now = function() {
424
- return root.Date.now();
425
- };
426
- function debounce5(func, wait, options) {
427
- var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
428
- if (typeof func != "function") {
429
- throw new TypeError(FUNC_ERROR_TEXT);
430
- }
431
- wait = toNumber(wait) || 0;
432
- if (isObject2(options)) {
433
- leading = !!options.leading;
434
- maxing = "maxWait" in options;
435
- maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
436
- trailing = "trailing" in options ? !!options.trailing : trailing;
437
- }
438
- function invokeFunc(time) {
439
- var args = lastArgs, thisArg = lastThis;
440
- lastArgs = lastThis = void 0;
441
- lastInvokeTime = time;
442
- result = func.apply(thisArg, args);
443
- return result;
444
- }
445
- function leadingEdge(time) {
446
- lastInvokeTime = time;
447
- timerId = setTimeout(timerExpired, wait);
448
- return leading ? invokeFunc(time) : result;
449
- }
450
- function remainingWait(time) {
451
- var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, result2 = wait - timeSinceLastCall;
452
- return maxing ? nativeMin(result2, maxWait - timeSinceLastInvoke) : result2;
453
- }
454
- function shouldInvoke(time) {
455
- var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
456
- return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
457
- }
458
- function timerExpired() {
459
- var time = now();
460
- if (shouldInvoke(time)) {
461
- return trailingEdge(time);
462
- }
463
- timerId = setTimeout(timerExpired, remainingWait(time));
464
- }
465
- function trailingEdge(time) {
466
- timerId = void 0;
467
- if (trailing && lastArgs) {
468
- return invokeFunc(time);
469
- }
470
- lastArgs = lastThis = void 0;
471
- return result;
472
- }
473
- function cancel() {
474
- if (timerId !== void 0) {
475
- clearTimeout(timerId);
476
- }
477
- lastInvokeTime = 0;
478
- lastArgs = lastCallTime = lastThis = timerId = void 0;
479
- }
480
- function flush() {
481
- return timerId === void 0 ? result : trailingEdge(now());
482
- }
483
- function debounced() {
484
- var time = now(), isInvoking = shouldInvoke(time);
485
- lastArgs = arguments;
486
- lastThis = this;
487
- lastCallTime = time;
488
- if (isInvoking) {
489
- if (timerId === void 0) {
490
- return leadingEdge(lastCallTime);
491
- }
492
- if (maxing) {
493
- timerId = setTimeout(timerExpired, wait);
494
- return invokeFunc(lastCallTime);
495
- }
496
- }
497
- if (timerId === void 0) {
498
- timerId = setTimeout(timerExpired, wait);
499
- }
500
- return result;
501
- }
502
- debounced.cancel = cancel;
503
- debounced.flush = flush;
504
- return debounced;
505
- }
506
- function isObject2(value) {
507
- var type = typeof value;
508
- return !!value && (type == "object" || type == "function");
509
- }
510
- function isObjectLike(value) {
511
- return !!value && typeof value == "object";
512
- }
513
- function isSymbol(value) {
514
- return typeof value == "symbol" || isObjectLike(value) && objectToString.call(value) == symbolTag;
515
- }
516
- function toNumber(value) {
517
- if (typeof value == "number") {
518
- return value;
519
- }
520
- if (isSymbol(value)) {
521
- return NAN;
522
- }
523
- if (isObject2(value)) {
524
- var other = typeof value.valueOf == "function" ? value.valueOf() : value;
525
- value = isObject2(other) ? other + "" : other;
526
- }
527
- if (typeof value != "string") {
528
- return value === 0 ? value : +value;
529
- }
530
- value = value.replace(reTrim, "");
531
- var isBinary = reIsBinary.test(value);
532
- return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
533
- }
534
- module.exports = debounce5;
535
- }
536
- });
537
-
538
405
  // node_modules/maplibre-gl/dist/maplibre-gl.js
539
406
  var require_maplibre_gl = __commonJS({
540
407
  "node_modules/maplibre-gl/dist/maplibre-gl.js"(exports, module) {
@@ -17929,6 +17796,139 @@ uniform ${i3} ${a3} u_${s3};
17929
17796
  }
17930
17797
  });
17931
17798
 
17799
+ // node_modules/lodash.debounce/index.js
17800
+ var require_lodash = __commonJS({
17801
+ "node_modules/lodash.debounce/index.js"(exports, module) {
17802
+ var FUNC_ERROR_TEXT = "Expected a function";
17803
+ var NAN = 0 / 0;
17804
+ var symbolTag = "[object Symbol]";
17805
+ var reTrim = /^\s+|\s+$/g;
17806
+ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
17807
+ var reIsBinary = /^0b[01]+$/i;
17808
+ var reIsOctal = /^0o[0-7]+$/i;
17809
+ var freeParseInt = parseInt;
17810
+ var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
17811
+ var freeSelf = typeof self == "object" && self && self.Object === Object && self;
17812
+ var root = freeGlobal || freeSelf || Function("return this")();
17813
+ var objectProto = Object.prototype;
17814
+ var objectToString = objectProto.toString;
17815
+ var nativeMax = Math.max;
17816
+ var nativeMin = Math.min;
17817
+ var now = function() {
17818
+ return root.Date.now();
17819
+ };
17820
+ function debounce7(func, wait, options) {
17821
+ var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
17822
+ if (typeof func != "function") {
17823
+ throw new TypeError(FUNC_ERROR_TEXT);
17824
+ }
17825
+ wait = toNumber(wait) || 0;
17826
+ if (isObject2(options)) {
17827
+ leading = !!options.leading;
17828
+ maxing = "maxWait" in options;
17829
+ maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
17830
+ trailing = "trailing" in options ? !!options.trailing : trailing;
17831
+ }
17832
+ function invokeFunc(time) {
17833
+ var args = lastArgs, thisArg = lastThis;
17834
+ lastArgs = lastThis = void 0;
17835
+ lastInvokeTime = time;
17836
+ result = func.apply(thisArg, args);
17837
+ return result;
17838
+ }
17839
+ function leadingEdge(time) {
17840
+ lastInvokeTime = time;
17841
+ timerId = setTimeout(timerExpired, wait);
17842
+ return leading ? invokeFunc(time) : result;
17843
+ }
17844
+ function remainingWait(time) {
17845
+ var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, result2 = wait - timeSinceLastCall;
17846
+ return maxing ? nativeMin(result2, maxWait - timeSinceLastInvoke) : result2;
17847
+ }
17848
+ function shouldInvoke(time) {
17849
+ var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
17850
+ return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
17851
+ }
17852
+ function timerExpired() {
17853
+ var time = now();
17854
+ if (shouldInvoke(time)) {
17855
+ return trailingEdge(time);
17856
+ }
17857
+ timerId = setTimeout(timerExpired, remainingWait(time));
17858
+ }
17859
+ function trailingEdge(time) {
17860
+ timerId = void 0;
17861
+ if (trailing && lastArgs) {
17862
+ return invokeFunc(time);
17863
+ }
17864
+ lastArgs = lastThis = void 0;
17865
+ return result;
17866
+ }
17867
+ function cancel() {
17868
+ if (timerId !== void 0) {
17869
+ clearTimeout(timerId);
17870
+ }
17871
+ lastInvokeTime = 0;
17872
+ lastArgs = lastCallTime = lastThis = timerId = void 0;
17873
+ }
17874
+ function flush() {
17875
+ return timerId === void 0 ? result : trailingEdge(now());
17876
+ }
17877
+ function debounced() {
17878
+ var time = now(), isInvoking = shouldInvoke(time);
17879
+ lastArgs = arguments;
17880
+ lastThis = this;
17881
+ lastCallTime = time;
17882
+ if (isInvoking) {
17883
+ if (timerId === void 0) {
17884
+ return leadingEdge(lastCallTime);
17885
+ }
17886
+ if (maxing) {
17887
+ timerId = setTimeout(timerExpired, wait);
17888
+ return invokeFunc(lastCallTime);
17889
+ }
17890
+ }
17891
+ if (timerId === void 0) {
17892
+ timerId = setTimeout(timerExpired, wait);
17893
+ }
17894
+ return result;
17895
+ }
17896
+ debounced.cancel = cancel;
17897
+ debounced.flush = flush;
17898
+ return debounced;
17899
+ }
17900
+ function isObject2(value) {
17901
+ var type = typeof value;
17902
+ return !!value && (type == "object" || type == "function");
17903
+ }
17904
+ function isObjectLike(value) {
17905
+ return !!value && typeof value == "object";
17906
+ }
17907
+ function isSymbol(value) {
17908
+ return typeof value == "symbol" || isObjectLike(value) && objectToString.call(value) == symbolTag;
17909
+ }
17910
+ function toNumber(value) {
17911
+ if (typeof value == "number") {
17912
+ return value;
17913
+ }
17914
+ if (isSymbol(value)) {
17915
+ return NAN;
17916
+ }
17917
+ if (isObject2(value)) {
17918
+ var other = typeof value.valueOf == "function" ? value.valueOf() : value;
17919
+ value = isObject2(other) ? other + "" : other;
17920
+ }
17921
+ if (typeof value != "string") {
17922
+ return value === 0 ? value : +value;
17923
+ }
17924
+ value = value.replace(reTrim, "");
17925
+ var isBinary = reIsBinary.test(value);
17926
+ return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
17927
+ }
17928
+ module.exports = debounce7;
17929
+ }
17930
+ });
17931
+
17932
17932
  // node_modules/lodash.throttle/index.js
17933
17933
  var require_lodash2 = __commonJS({
17934
17934
  "node_modules/lodash.throttle/index.js"(exports, module) {
@@ -17950,7 +17950,7 @@ uniform ${i3} ${a3} u_${s3};
17950
17950
  var now = function() {
17951
17951
  return root.Date.now();
17952
17952
  };
17953
- function debounce5(func, wait, options) {
17953
+ function debounce7(func, wait, options) {
17954
17954
  var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
17955
17955
  if (typeof func != "function") {
17956
17956
  throw new TypeError(FUNC_ERROR_TEXT);
@@ -18039,7 +18039,7 @@ uniform ${i3} ${a3} u_${s3};
18039
18039
  leading = "leading" in options ? !!options.leading : leading;
18040
18040
  trailing = "trailing" in options ? !!options.trailing : trailing;
18041
18041
  }
18042
- return debounce5(func, wait, {
18042
+ return debounce7(func, wait, {
18043
18043
  "leading": leading,
18044
18044
  "maxWait": wait,
18045
18045
  "trailing": trailing
@@ -26271,12 +26271,9 @@ uniform ${i3} ${a3} u_${s3};
26271
26271
  * Unsubscribe from current departures channel.
26272
26272
  * @param {number} stationId UIC of the station.
26273
26273
  * @param {function(data: { content: RealtimeDeparture[] })} onMessage Callback function to unsubscribe. If null all subscriptions for the channel will be unsubscribed.
26274
- * @deprecated Use unsubscribeTimetabe instead.
26274
+ * @deprecated Use RealtimeAPI.unsubscribeTimetabe instead.
26275
26275
  */
26276
26276
  unsubscribeDepartures(stationId, onMessage) {
26277
- console.log(
26278
- "RealtimeAPI.unsubscribeDepartures is deprecated. Use RealtimeAPI.unsubscribeTimetabe instead."
26279
- );
26280
26277
  this.unsubscribeTimetabe(stationId, onMessage);
26281
26278
  }
26282
26279
  /**
@@ -51977,9 +51974,6 @@ uniform ${i3} ${a3} u_${s3};
51977
51974
  };
51978
51975
  var StopFinderControl_default = StopFinderControl;
51979
51976
 
51980
- // src/ol/layers/MaplibreLayer.ts
51981
- var import_lodash2 = __toESM(require_lodash());
51982
-
51983
51977
  // node_modules/@geoblocks/ol-maplibre-layer/lib/MapLibreLayer.js
51984
51978
  var import_maplibre_gl = __toESM(require_maplibre_gl(), 1);
51985
51979
 
@@ -52185,11 +52179,18 @@ uniform ${i3} ${a3} u_${s3};
52185
52179
  }
52186
52180
  };
52187
52181
 
52182
+ // src/ol/layers/MaplibreLayer.ts
52183
+ var import_lodash2 = __toESM(require_lodash());
52184
+
52188
52185
  // src/ol/mixins/PropertiesLayerMixin.ts
52189
52186
  var import_lodash = __toESM(require_lodash());
52190
- var deprecated = (0, import_lodash.default)((message) => {
52191
- console.warn(message);
52192
- }, 1e3);
52187
+ var deprecated = () => {
52188
+ };
52189
+ if (typeof window !== "undefined" && new URLSearchParams(window.location.search).get("deprecated")) {
52190
+ deprecated = (0, import_lodash.default)((message) => {
52191
+ console.warn(message);
52192
+ }, 1e3);
52193
+ }
52193
52194
  function PropertiesLayerMixin(Base) {
52194
52195
  return class PropertiesLayer extends Base {
52195
52196
  constructor(...args) {
@@ -52396,37 +52397,14 @@ uniform ${i3} ${a3} u_${s3};
52396
52397
  [apiKeyName]: apiKey
52397
52398
  }).toString();
52398
52399
  };
52400
+ var deprecated2 = () => {
52401
+ };
52402
+ if (typeof window !== "undefined" && new URLSearchParams(window.location.search).get("deprecated")) {
52403
+ deprecated2 = (0, import_lodash2.default)((message) => {
52404
+ console.warn(message);
52405
+ }, 1e3);
52406
+ }
52399
52407
  var MaplibreLayer = class _MaplibreLayer extends MobilityLayerMixin_default(MapLibreLayer) {
52400
- get mbMap() {
52401
- console.warn("MaplibreLayer.mbMap is deprecated. Use layer.maplibreMap.");
52402
- return this.maplibreMap;
52403
- }
52404
- get maplibreMap() {
52405
- console.warn(
52406
- "MaplibreLayer.maplibreMap is deprecated. Use layer.mapLibreMap."
52407
- );
52408
- return this.mapLibreMap;
52409
- }
52410
- // get queryRenderedFeaturesOptions(): maplibregl.QueryRenderedFeaturesOptions {
52411
- // return this.get('queryRenderedFeaturesOptions');
52412
- // }
52413
- // set queryRenderedFeaturesOptions(
52414
- // newValue: maplibregl.QueryRenderedFeaturesOptions,
52415
- // ) {
52416
- // this.set('queryRenderedFeaturesOptions', newValue);
52417
- // }
52418
- get style() {
52419
- return this.get("style");
52420
- }
52421
- set style(newValue) {
52422
- this.set("style", newValue);
52423
- }
52424
- get url() {
52425
- return this.get("url");
52426
- }
52427
- set url(newValue) {
52428
- this.set("url", newValue);
52429
- }
52430
52408
  /**
52431
52409
  * Constructor.
52432
52410
  *
@@ -52475,6 +52453,25 @@ uniform ${i3} ${a3} u_${s3};
52475
52453
  })
52476
52454
  );
52477
52455
  }
52456
+ // get queryRenderedFeaturesOptions(): maplibregl.QueryRenderedFeaturesOptions {
52457
+ // return this.get('queryRenderedFeaturesOptions');
52458
+ // }
52459
+ // set queryRenderedFeaturesOptions(
52460
+ // newValue: maplibregl.QueryRenderedFeaturesOptions,
52461
+ // ) {
52462
+ // this.set('queryRenderedFeaturesOptions', newValue);
52463
+ // }
52464
+ /**
52465
+ * Create a copy of the MaplibreLayer.
52466
+ * @param {MaplibreLayerOptions} newOptions Options to override
52467
+ * @return {MaplibreLayer} A MaplibreLayer layer
52468
+ */
52469
+ clone(newOptions) {
52470
+ return new _MaplibreLayer({
52471
+ ...this.options || {},
52472
+ ...newOptions || {}
52473
+ });
52474
+ }
52478
52475
  getStyle() {
52479
52476
  if (this.style && typeof this.style === "object" && this.style.name && this.style.version) {
52480
52477
  return this.style;
@@ -52496,20 +52493,34 @@ uniform ${i3} ${a3} u_${s3};
52496
52493
  console.error("Error while updating MaplibreMap", e);
52497
52494
  }
52498
52495
  }
52499
- /**
52500
- * Create a copy of the MaplibreLayer.
52501
- * @param {MaplibreLayerOptions} newOptions Options to override
52502
- * @return {MaplibreLayer} A MaplibreLayer layer
52503
- */
52504
- clone(newOptions) {
52505
- return new _MaplibreLayer({
52506
- ...this.options || {},
52507
- ...newOptions || {}
52508
- });
52496
+ get maplibreMap() {
52497
+ deprecated2(
52498
+ "MaplibreLayer.maplibreMap is deprecated. Use layer.mapLibreMap."
52499
+ );
52500
+ return this.mapLibreMap;
52501
+ }
52502
+ get mbMap() {
52503
+ deprecated2("MaplibreLayer.mbMap is deprecated. Use layer.maplibreMap.");
52504
+ return this.maplibreMap;
52505
+ }
52506
+ get style() {
52507
+ return this.get("style");
52508
+ }
52509
+ set style(newValue) {
52510
+ this.set("style", newValue);
52511
+ }
52512
+ get url() {
52513
+ return this.get("url");
52514
+ }
52515
+ set url(newValue) {
52516
+ this.set("url", newValue);
52509
52517
  }
52510
52518
  };
52511
52519
  var MaplibreLayer_default = MaplibreLayer;
52512
52520
 
52521
+ // src/ol/layers/MaplibreStyleLayer.ts
52522
+ var import_lodash3 = __toESM(require_lodash());
52523
+
52513
52524
  // src/ol/renderers/MaplibreStyleLayerRenderer.ts
52514
52525
  var formats2 = {
52515
52526
  "EPSG:3857": new GeoJSON_default({
@@ -52591,6 +52602,13 @@ uniform ${i3} ${a3} u_${s3};
52591
52602
  };
52592
52603
 
52593
52604
  // src/ol/layers/MaplibreStyleLayer.ts
52605
+ var deprecated3 = () => {
52606
+ };
52607
+ if (typeof window !== "undefined" && new URLSearchParams(window.location.search).get("deprecated")) {
52608
+ deprecated3 = (0, import_lodash3.default)((...messages) => {
52609
+ console.warn(...messages);
52610
+ }, 1e3);
52611
+ }
52594
52612
  var MaplibreStyleLayer = class _MaplibreStyleLayer extends MobilityLayerMixin_default(Layer_default) {
52595
52613
  /**
52596
52614
  * Constructor.
@@ -52606,7 +52624,7 @@ uniform ${i3} ${a3} u_${s3};
52606
52624
  mapLibreOptions: { style: { layers: [], sources: {}, version: 8 } }
52607
52625
  }) {
52608
52626
  if (options.mapboxLayer) {
52609
- console.warn(
52627
+ deprecated3(
52610
52628
  "options.mapboxLayer is deprecated. Use options.maplibreLayer instead."
52611
52629
  );
52612
52630
  options.maplibreLayer = options.mapboxLayer;
@@ -52751,7 +52769,7 @@ uniform ${i3} ${a3} u_${s3};
52751
52769
  * @return {Promise<FeatureInfo>} Promise with features, layer and coordinate.
52752
52770
  */
52753
52771
  getFeatureInfoAtCoordinate(coordinate) {
52754
- console.warn(
52772
+ deprecated3(
52755
52773
  `Deprecated. getFeatureInfoAtCoordinate([layer], coordinate) from ol package instead.`
52756
52774
  );
52757
52775
  if (!this.maplibreLayer?.mapLibreMap) {
@@ -52780,7 +52798,7 @@ uniform ${i3} ${a3} u_${s3};
52780
52798
  * @private
52781
52799
  */
52782
52800
  highlight(features = []) {
52783
- console.warn(
52801
+ deprecated3(
52784
52802
  `Deprecated. Use layer.setFeatureState(features, {highlighted: true}) instead.`
52785
52803
  );
52786
52804
  const filtered = this.highlightedFeatures?.filter(
@@ -52843,7 +52861,7 @@ uniform ${i3} ${a3} u_${s3};
52843
52861
  * @private
52844
52862
  */
52845
52863
  select(features = []) {
52846
- console.warn(
52864
+ deprecated3(
52847
52865
  `Deprecated. Use layer.setFeatureState(features, {selected: true}) instead.`
52848
52866
  );
52849
52867
  this.setHoverState(this.selectedFeatures || [], false);
@@ -52865,9 +52883,8 @@ uniform ${i3} ${a3} u_${s3};
52865
52883
  const { source, sourceLayer } = feature2.get(VECTOR_TILE_FEATURE_PROPERTY) || {};
52866
52884
  if (!source && !sourceLayer || !feature2.getId()) {
52867
52885
  if (!feature2.getId()) {
52868
- console.warn(
52886
+ deprecated3(
52869
52887
  "No feature's id found. To use the feature state functionnality, tiles must be generated with --generate-ids. See https://github.com/Maplibre/tippecanoe#adding-calculated-attributes.",
52870
- feature2.getId(),
52871
52888
  feature2.getProperties()
52872
52889
  );
52873
52890
  }
@@ -52890,7 +52907,7 @@ uniform ${i3} ${a3} u_${s3};
52890
52907
  * @private
52891
52908
  */
52892
52909
  setHoverState(features, state) {
52893
- console.warn(
52910
+ deprecated3(
52894
52911
  `Deprecated. Use layer.setFeatureState(features, {hover: ${state}}) instead.`
52895
52912
  );
52896
52913
  this.setFeatureState(features, { hover: state });
@@ -52914,7 +52931,7 @@ uniform ${i3} ${a3} u_${s3};
52914
52931
  this.set("layersFilter", newValue);
52915
52932
  }
52916
52933
  get mapboxLayer() {
52917
- console.warn("Deprecated. Use maplibreLayer instead.");
52934
+ deprecated3("Deprecated. Use maplibreLayer instead.");
52918
52935
  return this.get("maplibreLayer");
52919
52936
  }
52920
52937
  get maplibreLayer() {
@@ -52955,7 +52972,7 @@ uniform ${i3} ${a3} u_${s3};
52955
52972
  * @deprecated
52956
52973
  */
52957
52974
  get styleLayer() {
52958
- console.warn(
52975
+ deprecated3(
52959
52976
  "MaplibreStyleLayer.styleLayer is deprecated. Use MaplibreStyleLayer.layer instead."
52960
52977
  );
52961
52978
  return this.layers[0];
@@ -52964,7 +52981,7 @@ uniform ${i3} ${a3} u_${s3};
52964
52981
  * @deprecated
52965
52982
  */
52966
52983
  set styleLayer(newValue) {
52967
- console.warn(
52984
+ deprecated3(
52968
52985
  "MaplibreStyleLayer.styleLayer is deprecated. Use MaplibreStyleLayer.layer instead."
52969
52986
  );
52970
52987
  this.layers = [newValue];
@@ -52976,7 +52993,7 @@ uniform ${i3} ${a3} u_${s3};
52976
52993
  * @deprecated
52977
52994
  */
52978
52995
  get styleLayers() {
52979
- console.warn(
52996
+ deprecated3(
52980
52997
  "MaplibreStyleLayer.styleLayers is deprecated. Use MaplibreStyleLayer.layers instead."
52981
52998
  );
52982
52999
  return this.layers;
@@ -52985,7 +53002,7 @@ uniform ${i3} ${a3} u_${s3};
52985
53002
  * @deprecated
52986
53003
  */
52987
53004
  set styleLayers(newValue) {
52988
- console.warn(
53005
+ deprecated3(
52989
53006
  "MaplibreStyleLayer.styleLayers is deprecated. Use MaplibreStyleLayer.layers instead."
52990
53007
  );
52991
53008
  this.layers = newValue;
@@ -52994,11 +53011,11 @@ uniform ${i3} ${a3} u_${s3};
52994
53011
  var MaplibreStyleLayer_default = MaplibreStyleLayer;
52995
53012
 
52996
53013
  // src/ol/layers/RealtimeLayer.ts
52997
- var import_lodash5 = __toESM(require_lodash());
53014
+ var import_lodash6 = __toESM(require_lodash());
52998
53015
 
52999
53016
  // src/common/mixins/RealtimeLayerMixin.ts
53000
- var import_lodash3 = __toESM(require_lodash());
53001
- var import_lodash4 = __toESM(require_lodash2());
53017
+ var import_lodash4 = __toESM(require_lodash());
53018
+ var import_lodash5 = __toESM(require_lodash2());
53002
53019
  function RealtimeLayerMixin(Base) {
53003
53020
  return class Mixin extends Base {
53004
53021
  constructor(options) {
@@ -53077,12 +53094,12 @@ uniform ${i3} ${a3} u_${s3};
53077
53094
  return this.renderTimeIntervalByZoom[zoom];
53078
53095
  };
53079
53096
  this.isUpdateBboxOnMoveEnd = options.isUpdateBboxOnMoveEnd !== false;
53080
- this.throttleRenderTrajectories = (0, import_lodash4.default)(
53097
+ this.throttleRenderTrajectories = (0, import_lodash5.default)(
53081
53098
  this.renderTrajectoriesInternal,
53082
53099
  50,
53083
53100
  { leading: false, trailing: true }
53084
53101
  );
53085
- this.debounceRenderTrajectories = (0, import_lodash3.default)(
53102
+ this.debounceRenderTrajectories = (0, import_lodash4.default)(
53086
53103
  this.renderTrajectoriesInternal,
53087
53104
  50,
53088
53105
  { leading: true, maxWait: 5e3, trailing: true }
@@ -53367,13 +53384,13 @@ uniform ${i3} ${a3} u_${s3};
53367
53384
  const nextTick = Math.max(25, timeStep / (this.speed || 1));
53368
53385
  const nextThrottleTick = Math.min(nextTick, 500);
53369
53386
  if (this.useThrottle) {
53370
- this.throttleRenderTrajectories = (0, import_lodash4.default)(
53387
+ this.throttleRenderTrajectories = (0, import_lodash5.default)(
53371
53388
  this.renderTrajectoriesInternal,
53372
53389
  nextThrottleTick,
53373
53390
  { leading: true, trailing: true }
53374
53391
  );
53375
53392
  } else if (this.useDebounce) {
53376
- this.debounceRenderTrajectories = (0, import_lodash3.default)(
53393
+ this.debounceRenderTrajectories = (0, import_lodash4.default)(
53377
53394
  this.renderTrajectoriesInternal,
53378
53395
  nextThrottleTick,
53379
53396
  { leading: true, maxWait: 5e3, trailing: true }
@@ -54068,8 +54085,8 @@ uniform ${i3} ${a3} u_${s3};
54068
54085
  rotation: 0,
54069
54086
  zoom: void 0
54070
54087
  };
54071
- this.onZoomEndDebounced = (0, import_lodash5.default)(this.onZoomEnd, 100);
54072
- this.onMoveEndDebounced = (0, import_lodash5.default)(this.onMoveEnd, 100);
54088
+ this.onZoomEndDebounced = (0, import_lodash6.default)(this.onZoomEnd, 100);
54089
+ this.onMoveEndDebounced = (0, import_lodash6.default)(this.onMoveEnd, 100);
54073
54090
  }
54074
54091
  /** @private */
54075
54092
  attachToMap(map) {
@@ -54322,10 +54339,18 @@ uniform ${i3} ${a3} u_${s3};
54322
54339
  var RealtimeLayer_default = RealtimeLayer;
54323
54340
 
54324
54341
  // src/ol/layers/Layer.ts
54342
+ var import_lodash7 = __toESM(require_lodash());
54343
+ var deprecated4 = () => {
54344
+ };
54345
+ if (typeof window !== "undefined" && new URLSearchParams(window.location.search).get("deprecated")) {
54346
+ deprecated4 = (0, import_lodash7.default)((message) => {
54347
+ console.warn(message);
54348
+ }, 1e3);
54349
+ }
54325
54350
  var Layer2 = class _Layer extends MobilityLayerMixin_default(Layer_default) {
54326
54351
  constructor(options) {
54327
54352
  super(options);
54328
- console.warn("Layer is deprecated. Use an OpenLayers Layer instead.");
54353
+ deprecated4("Layer is deprecated. Use an OpenLayers Layer instead.");
54329
54354
  }
54330
54355
  clone(newOptions) {
54331
54356
  return new _Layer({
@@ -54338,6 +54363,12 @@ uniform ${i3} ${a3} u_${s3};
54338
54363
 
54339
54364
  // src/ol/layers/VectorLayer.ts
54340
54365
  var VectorLayer2 = class _VectorLayer extends Layer_default4 {
54366
+ /**
54367
+ * @deprecated
54368
+ */
54369
+ clone(newOptions) {
54370
+ return new _VectorLayer({ ...this.options, ...newOptions });
54371
+ }
54341
54372
  /**
54342
54373
  * @deprecated
54343
54374
  */
@@ -54346,22 +54377,16 @@ uniform ${i3} ${a3} u_${s3};
54346
54377
  if (this.map) {
54347
54378
  const pixel = this.map.getPixelFromCoordinate(coordinate);
54348
54379
  features = this.map.getFeaturesAtPixel(pixel, {
54349
- layerFilter: (l) => l === this.olLayer,
54350
- hitTolerance: this.hitTolerance || 5
54380
+ hitTolerance: this.hitTolerance || 5,
54381
+ layerFilter: (l) => l === this.olLayer
54351
54382
  });
54352
54383
  }
54353
54384
  return Promise.resolve({
54385
+ coordinate,
54354
54386
  features,
54355
- layer: this,
54356
- coordinate
54387
+ layer: this
54357
54388
  });
54358
54389
  }
54359
- /**
54360
- * @deprecated
54361
- */
54362
- clone(newOptions) {
54363
- return new _VectorLayer({ ...this.options, ...newOptions });
54364
- }
54365
54390
  };
54366
54391
  var VectorLayer_default2 = VectorLayer2;
54367
54392