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/api/RealtimeAPI.d.ts +1 -1
- package/api/RealtimeAPI.js +1 -3
- package/mbt.js +242 -217
- package/mbt.js.map +4 -4
- package/mbt.min.js +15 -15
- package/mbt.min.js.map +4 -4
- package/ol/layers/Layer.d.ts +1 -1
- package/ol/layers/Layer.js +11 -3
- package/ol/layers/MaplibreLayer.d.ts +14 -14
- package/ol/layers/MaplibreLayer.js +44 -38
- package/ol/layers/MaplibreStyleLayer.d.ts +1 -6
- package/ol/layers/MaplibreStyleLayer.js +20 -22
- package/ol/layers/VectorLayer.d.ts +3 -3
- package/ol/layers/VectorLayer.js +8 -8
- package/ol/mixins/MobilityLayerMixin.d.ts +2 -4
- package/ol/mixins/PropertiesLayerMixin.js +10 -6
- package/package.json +1 -1
package/api/RealtimeAPI.d.ts
CHANGED
|
@@ -295,7 +295,7 @@ declare class RealtimeAPI {
|
|
|
295
295
|
* Unsubscribe from current departures channel.
|
|
296
296
|
* @param {number} stationId UIC of the station.
|
|
297
297
|
* @param {function(data: { content: RealtimeDeparture[] })} onMessage Callback function to unsubscribe. If null all subscriptions for the channel will be unsubscribed.
|
|
298
|
-
* @deprecated Use unsubscribeTimetabe instead.
|
|
298
|
+
* @deprecated Use RealtimeAPI.unsubscribeTimetabe instead.
|
|
299
299
|
*/
|
|
300
300
|
unsubscribeDepartures(stationId: RealtimeStationId, onMessage?: WebSocketAPIMessageCallback<RealtimeDeparture>): void;
|
|
301
301
|
/**
|
package/api/RealtimeAPI.js
CHANGED
|
@@ -419,11 +419,9 @@ class RealtimeAPI {
|
|
|
419
419
|
* Unsubscribe from current departures channel.
|
|
420
420
|
* @param {number} stationId UIC of the station.
|
|
421
421
|
* @param {function(data: { content: RealtimeDeparture[] })} onMessage Callback function to unsubscribe. If null all subscriptions for the channel will be unsubscribed.
|
|
422
|
-
* @deprecated Use unsubscribeTimetabe instead.
|
|
422
|
+
* @deprecated Use RealtimeAPI.unsubscribeTimetabe instead.
|
|
423
423
|
*/
|
|
424
424
|
unsubscribeDepartures(stationId, onMessage) {
|
|
425
|
-
// eslint-disable-next-line no-console
|
|
426
|
-
console.log('RealtimeAPI.unsubscribeDepartures is deprecated. Use RealtimeAPI.unsubscribeTimetabe instead.');
|
|
427
425
|
this.unsubscribeTimetabe(stationId, onMessage);
|
|
428
426
|
}
|
|
429
427
|
/**
|