mobility-toolbox-js 2.0.0-beta.3 → 2.0.0-beta.33
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 +4 -1
- package/api/RealtimeAPI.d.ts +268 -0
- package/api/RealtimeAPI.d.ts.map +1 -0
- package/api/RoutingAPI.d.ts +33 -0
- package/api/RoutingAPI.d.ts.map +1 -0
- package/api/StopsAPI.d.ts +36 -0
- package/api/StopsAPI.d.ts.map +1 -0
- package/api/index.d.ts +5 -0
- package/api/index.d.ts.map +1 -0
- package/api/typedefs.d.ts +105 -0
- package/api/typedefs.d.ts.map +1 -0
- package/common/api/HttpAPI.d.ts +31 -0
- package/common/api/HttpAPI.d.ts.map +1 -0
- package/common/api/WebSocketAPI.d.ts +95 -0
- package/common/api/WebSocketAPI.d.ts.map +1 -0
- package/common/controls/Control.d.ts +74 -0
- package/common/controls/Control.d.ts.map +1 -0
- package/common/index.d.ts +3 -0
- package/common/index.d.ts.map +1 -0
- package/common/layers/Layer.d.ts +80 -0
- package/common/layers/Layer.d.ts.map +1 -0
- package/common/mixins/CopyrightMixin.d.ts +22 -0
- package/common/mixins/CopyrightMixin.d.ts.map +1 -0
- package/common/mixins/MapboxLayerMixin.d.ts +27 -0
- package/common/mixins/MapboxLayerMixin.d.ts.map +1 -0
- package/common/mixins/RealtimeLayerMixin.d.ts +58 -0
- package/common/mixins/RealtimeLayerMixin.d.ts.map +1 -0
- package/common/mixins/StopFinderMixin.d.ts +40 -0
- package/common/mixins/StopFinderMixin.d.ts.map +1 -0
- package/common/mixins/UserInteractionsLayerMixin.d.ts +42 -0
- package/common/mixins/UserInteractionsLayerMixin.d.ts.map +1 -0
- package/common/styles/index.d.ts +5 -0
- package/common/styles/index.d.ts.map +1 -0
- package/common/styles/realtimeDefaultStyle.d.ts +15 -0
- package/common/styles/realtimeDefaultStyle.d.ts.map +1 -0
- package/common/styles/{trackerDelayStyle.js → realtimeDelayStyle.d.ts} +3 -9
- package/common/styles/realtimeDelayStyle.d.ts.map +1 -0
- package/common/styles/realtimeSimpleStyle.d.ts +3 -0
- package/common/styles/realtimeSimpleStyle.d.ts.map +1 -0
- package/common/typedefs.d.ts +50 -0
- package/common/typedefs.d.ts.map +1 -0
- package/common/utils/cleanStopTime.d.ts +7 -0
- package/common/utils/cleanStopTime.d.ts.map +1 -0
- package/common/utils/compareDepartures.d.ts +9 -0
- package/common/utils/compareDepartures.d.ts.map +1 -0
- package/common/utils/createCanvas.d.ts +9 -0
- package/common/utils/createCanvas.d.ts.map +1 -0
- package/common/utils/createTrackerFilters.d.ts +12 -0
- package/common/utils/createTrackerFilters.d.ts.map +1 -0
- package/common/utils/getLayersAsFlatArray.d.ts +3 -0
- package/common/utils/getLayersAsFlatArray.d.ts.map +1 -0
- package/common/utils/getMapboxMapCopyrights.d.ts +8 -0
- package/common/utils/getMapboxMapCopyrights.d.ts.map +1 -0
- package/common/utils/getMapboxRender.d.ts +5 -0
- package/common/utils/getMapboxRender.d.ts.map +1 -0
- package/common/utils/getMaplibreRender.d.ts +5 -0
- package/common/utils/getMaplibreRender.d.ts.map +1 -0
- package/common/utils/getRealtimeModeSuffix.d.ts +8 -0
- package/common/utils/getRealtimeModeSuffix.d.ts.map +1 -0
- package/common/utils/getUrlWithParams.d.ts +9 -0
- package/common/utils/getUrlWithParams.d.ts.map +1 -0
- package/common/utils/getVehiclePosition.d.ts +14 -0
- package/common/utils/getVehiclePosition.d.ts.map +1 -0
- package/common/utils/index.d.ts +12 -0
- package/common/utils/index.d.ts.map +1 -0
- package/common/utils/removeDuplicate.d.ts +10 -0
- package/common/utils/removeDuplicate.d.ts.map +1 -0
- package/common/utils/renderTrajectories.d.ts +20 -0
- package/common/utils/renderTrajectories.d.ts.map +1 -0
- package/common/utils/sortByDelay.d.ts +3 -0
- package/common/utils/sortByDelay.d.ts.map +1 -0
- package/common/utils/timeUtils.d.ts +5 -0
- package/common/utils/timeUtils.d.ts.map +1 -0
- package/common/utils/trackerConfig.d.ts +24 -0
- package/common/utils/trackerConfig.d.ts.map +1 -0
- package/iife.d.ts +3 -0
- package/iife.d.ts.map +1 -0
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -0
- package/mapbox/controls/CopyrightControl.d.ts +32 -0
- package/mapbox/controls/CopyrightControl.d.ts.map +1 -0
- package/mapbox/controls/index.d.ts +2 -0
- package/mapbox/controls/index.d.ts.map +1 -0
- package/mapbox/index.d.ts +5 -0
- package/mapbox/index.d.ts.map +1 -0
- package/mapbox/layers/Layer.d.ts +47 -0
- package/mapbox/layers/Layer.d.ts.map +1 -0
- package/mapbox/layers/RealtimeLayer.d.ts +118 -0
- package/mapbox/layers/RealtimeLayer.d.ts.map +1 -0
- package/mapbox/layers/index.d.ts +3 -0
- package/mapbox/layers/index.d.ts.map +1 -0
- package/mapbox/utils.d.ts +8 -0
- package/mapbox/utils.d.ts.map +1 -0
- package/mbt.js +50042 -0
- package/mbt.js.map +7 -0
- package/mbt.min.js +1008 -0
- package/mbt.min.js.map +7 -0
- package/ol/controls/CopyrightControl.d.ts +31 -0
- package/ol/controls/CopyrightControl.d.ts.map +1 -0
- package/ol/controls/RoutingControl.d.ts +180 -0
- package/ol/controls/RoutingControl.d.ts.map +1 -0
- package/ol/controls/StopFinderControl.d.ts +32 -0
- package/ol/controls/StopFinderControl.d.ts.map +1 -0
- package/ol/controls/index.d.ts +4 -0
- package/ol/controls/index.d.ts.map +1 -0
- package/ol/index.d.ts +6 -0
- package/ol/index.d.ts.map +1 -0
- package/ol/layers/Layer.d.ts +49 -0
- package/ol/layers/Layer.d.ts.map +1 -0
- package/ol/layers/MapboxLayer.d.ts +42 -0
- package/ol/layers/MapboxLayer.d.ts.map +1 -0
- package/ol/layers/MapboxStyleLayer.d.ts +146 -0
- package/ol/layers/MapboxStyleLayer.d.ts.map +1 -0
- package/ol/layers/MaplibreLayer.d.ts +27 -0
- package/ol/layers/MaplibreLayer.d.ts.map +1 -0
- package/ol/layers/RealtimeLayer.d.ts +119 -0
- package/ol/layers/RealtimeLayer.d.ts.map +1 -0
- package/ol/layers/RoutingLayer.d.ts +24 -0
- package/ol/layers/RoutingLayer.d.ts.map +1 -0
- package/ol/layers/VectorLayer.d.ts +23 -0
- package/ol/layers/VectorLayer.d.ts.map +1 -0
- package/ol/layers/WMSLayer.d.ts +38 -0
- package/ol/layers/WMSLayer.d.ts.map +1 -0
- package/ol/layers/index.d.ts +9 -0
- package/ol/layers/index.d.ts.map +1 -0
- package/ol/styles/fullTrajectoryDelayStyle.d.ts +4 -0
- package/ol/styles/fullTrajectoryDelayStyle.d.ts.map +1 -0
- package/ol/styles/fullTrajectoryStyle.d.ts +4 -0
- package/ol/styles/fullTrajectoryStyle.d.ts.map +1 -0
- package/ol/styles/index.d.ts +3 -0
- package/ol/styles/index.d.ts.map +1 -0
- package/package.json +56 -95
- package/setupTests.d.ts +2 -0
- package/setupTests.d.ts.map +1 -0
- package/types/index.d.ts +10 -0
- package/types/realtime.d.ts +24 -0
- package/types/routing.d.ts +206 -0
- package/types/stops.d.ts +143 -0
- package/api/index.js +0 -3
- package/api/routing/RoutingAPI.js +0 -44
- package/api/routing/RoutingAPI.test.js +0 -41
- package/api/stops/StopsAPI.js +0 -41
- package/api/stops/StopsAPI.test.js +0 -34
- package/api/tralis/TralisAPI.js +0 -731
- package/api/tralis/TralisAPI.test.js +0 -75
- package/api/tralis/TralisAPIUtils.js +0 -73
- package/api/tralis/WebSocketConnector.js +0 -338
- package/api/tralis/WebSocketConnector.test.js +0 -356
- package/api/tralis/typedefs.js +0 -81
- package/common/Tracker.js +0 -197
- package/common/api/api.js +0 -64
- package/common/api/api.test.js +0 -68
- package/common/controls/Control.js +0 -146
- package/common/controls/Control.test.js +0 -98
- package/common/layers/Layer.js +0 -404
- package/common/layers/Layer.test.js +0 -585
- package/common/mixins/CopyrightMixin.js +0 -48
- package/common/mixins/SearchMixin.js +0 -176
- package/common/mixins/TralisLayerMixin.js +0 -930
- package/common/styles/index.js +0 -4
- package/common/styles/trackerDefaultStyle.js +0 -333
- package/common/styles/trackerSimpleStyle.js +0 -22
- package/common/trackerConfig.js +0 -190
- package/common/trackerConfig.test.js +0 -25
- package/common/typedefs.js +0 -23
- package/common/utils/createTrackerFilters.js +0 -87
- package/common/utils/createTrackerFilters.test.js +0 -95
- package/common/utils/getMapboxMapCopyrights.js +0 -32
- package/common/utils/getMapboxMapCopyrights.test.js +0 -47
- package/common/utils/getMapboxStyleUrl.js +0 -32
- package/common/utils/getVehiclePosition.js +0 -72
- package/common/utils/index.js +0 -6
- package/common/utils/removeDuplicate.js +0 -22
- package/common/utils/removeDuplicate.test.js +0 -22
- package/common/utils/sortByDelay.js +0 -23
- package/common/utils/timeUtils.js +0 -44
- package/common/utils/timeUtils.test.js +0 -16
- package/index.js +0 -2
- package/index.js.map +0 -1
- package/mapbox/controls/CopyrightControl.js +0 -58
- package/mapbox/index.js +0 -3
- package/mapbox/layers/Layer.js +0 -118
- package/mapbox/layers/Layer.test.js +0 -202
- package/mapbox/layers/TralisLayer.js +0 -329
- package/mapbox/layers/TralisLayer.test.js +0 -40
- package/mapbox/utils.js +0 -46
- package/module.js +0 -23
- package/ol/README.md +0 -0
- package/ol/controls/CopyrightControl.js +0 -80
- package/ol/controls/CopyrightControl.test.js +0 -211
- package/ol/controls/RoutingControl.js +0 -752
- package/ol/controls/RoutingControl.test.js +0 -216
- package/ol/controls/StopFinderControl.js +0 -38
- package/ol/controls/StopFinderControl.test.js +0 -59
- package/ol/controls/snapshots/RoutingControlRouteGen10.json +0 -58
- package/ol/controls/snapshots/RoutingControlRouteGen100.json +0 -292
- package/ol/controls/snapshots/RoutingControlRouteGen30.json +0 -69
- package/ol/controls/snapshots/RoutingControlRouteGen5.json +0 -58
- package/ol/controls/snapshots/RoutingControlRouteOSM.json +0 -759
- package/ol/controls/snapshots/RoutingControlStation1.json +0 -60
- package/ol/controls/snapshots/RoutingControlStation2.json +0 -49
- package/ol/index.js +0 -13
- package/ol/layers/Layer.js +0 -193
- package/ol/layers/Layer.test.js +0 -197
- package/ol/layers/MapboxLayer.js +0 -378
- package/ol/layers/MapboxLayer.test.js +0 -186
- package/ol/layers/MapboxStyleLayer.js +0 -417
- package/ol/layers/MapboxStyleLayer.test.js +0 -262
- package/ol/layers/MaplibreLayer.js +0 -280
- package/ol/layers/RoutingLayer.js +0 -91
- package/ol/layers/RoutingLayer.test.js +0 -49
- package/ol/layers/TralisLayer.js +0 -359
- package/ol/layers/TralisLayer.test.js +0 -97
- package/ol/layers/VectorLayer.js +0 -43
- package/ol/layers/VectorLayer.test.js +0 -98
- package/ol/layers/WMSLayer.js +0 -80
- package/ol/layers/WMSLayer.test.js +0 -84
- package/ol/styles/fullTrajectoryDelayStyle.js +0 -35
- package/ol/styles/fullTrajectoryStyle.js +0 -51
- package/ol/styles/index.js +0 -2
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export default Control;
|
|
2
|
+
/**
|
|
3
|
+
* A class representing a control to display on map.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* const control = new Control();
|
|
7
|
+
*
|
|
8
|
+
* @classproperty {ol/Map~Map|mapboxgl.Map} map - The map which the control refers to.
|
|
9
|
+
* @classproperty {boolean} active - Active the control.
|
|
10
|
+
* @classproperty {HTMLElement} element - The HTML element used to render the control.
|
|
11
|
+
* @classproperty {HTMLElement} target - The HTML element where to render the element property. Default is the map's element. Read only.
|
|
12
|
+
*/
|
|
13
|
+
declare class Control extends BaseObject {
|
|
14
|
+
/**
|
|
15
|
+
* Constructor
|
|
16
|
+
*
|
|
17
|
+
* @param {Object} [options] Control options.
|
|
18
|
+
* @param {boolean} [options.active = true] Whether the control is active or not.
|
|
19
|
+
* @param {HTMLElement} [options.element] The HTML element used to render the control.
|
|
20
|
+
* @param {HTMLElement} [options.target] The HTML element where to render the element property. Default is the map's element.
|
|
21
|
+
* @param {function} [options.render] Render function called whenever the control needs to be rerendered.
|
|
22
|
+
*/
|
|
23
|
+
constructor(options?: {
|
|
24
|
+
active?: boolean;
|
|
25
|
+
element?: HTMLElement;
|
|
26
|
+
target?: HTMLElement;
|
|
27
|
+
render?: Function;
|
|
28
|
+
});
|
|
29
|
+
/**
|
|
30
|
+
* @ignore
|
|
31
|
+
*/
|
|
32
|
+
active: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Define control's properties.
|
|
35
|
+
*
|
|
36
|
+
* @private
|
|
37
|
+
*/
|
|
38
|
+
private defineProperties;
|
|
39
|
+
/**
|
|
40
|
+
* Attach the control to the map. Add events, html element ...
|
|
41
|
+
*/
|
|
42
|
+
attachToMap(map: any): void;
|
|
43
|
+
map: any;
|
|
44
|
+
/**
|
|
45
|
+
* Detach the control From the map. Remove events, html element ..
|
|
46
|
+
*/
|
|
47
|
+
detachFromMap(): void;
|
|
48
|
+
/**
|
|
49
|
+
* Add listeners then renders the control.
|
|
50
|
+
* To be defined in inherited classes.
|
|
51
|
+
*/
|
|
52
|
+
activate(): void;
|
|
53
|
+
/**
|
|
54
|
+
* Remove listeners added by activate() function then renders the control.
|
|
55
|
+
* To be defined in inherited classes.
|
|
56
|
+
*/
|
|
57
|
+
deactivate(): void;
|
|
58
|
+
/**
|
|
59
|
+
* The default render function. It renders content in the HTML element.
|
|
60
|
+
* To be defined in inherited classes.
|
|
61
|
+
*
|
|
62
|
+
* @private
|
|
63
|
+
*/
|
|
64
|
+
private render;
|
|
65
|
+
/**
|
|
66
|
+
* The default element to display if this.element is not defined.
|
|
67
|
+
* To be defined in inherited classes.
|
|
68
|
+
*
|
|
69
|
+
* @private
|
|
70
|
+
*/
|
|
71
|
+
private createDefaultElement;
|
|
72
|
+
}
|
|
73
|
+
import BaseObject from "ol/Object";
|
|
74
|
+
//# sourceMappingURL=Control.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Control.d.ts","sourceRoot":"","sources":["../../../src/common/controls/Control.js"],"names":[],"mappings":";AAEA;;;;;;;;;;GAUG;AACH;IACE;;;;;;;;OAQG;IACH;QAL6B,MAAM,GAAxB,OAAO;QACe,OAAO,GAA7B,WAAW;QACW,MAAM,GAA5B,WAAW;QACQ,MAAM;OAenC;IAJC;;OAEG;IACH,gBAAoB;IAGtB;;;;OAIG;IACH,yBAmEC;IAED;;OAEG;IACH,4BAEC;IADC,SAAc;IAGhB;;OAEG;IACH,sBAEC;IAED;;;OAGG;IACH,iBAEC;IAED;;;OAGG;IAEH,mBAAe;IAEf;;;;;OAKG;IACH,eAAW;IAEX;;;;;OAKG;IAEH,6BAAyB;CAC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/common/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A class representing a layer to display on map.
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* const layer = new Layer({
|
|
6
|
+
* name: 'My Layer',
|
|
7
|
+
* });
|
|
8
|
+
*
|
|
9
|
+
* @classproperty {string} key - Identifier of the layer. Must be unique.
|
|
10
|
+
* @classproperty {string} name - Name of the layer
|
|
11
|
+
* @classproperty {string[]} copyrights - Array of copyrights.
|
|
12
|
+
* @classproperty {Layer[]} children - List of children layers.
|
|
13
|
+
* @classproperty {boolean} visible - Define if the layer is currently display on the map.
|
|
14
|
+
* @classproperty {boolean} disabled - Define if the layer is currently display on the map but can't be seen (extent, zoom ,data restrictions).
|
|
15
|
+
* @classproperty {number} hitTolerance - Hit-detection tolerance in css pixels. Pixels inside the radius around the given position will be checked for features.
|
|
16
|
+
* @classproperty {Object} properties - Custom properties.
|
|
17
|
+
* @classproperty {ol/Map~Map|mapboxgl.Map} map - The map where the layer is displayed.
|
|
18
|
+
*/
|
|
19
|
+
export default class Layer extends BaseObject {
|
|
20
|
+
/**
|
|
21
|
+
* Constructor
|
|
22
|
+
*
|
|
23
|
+
* @param {Object} options
|
|
24
|
+
* @param {string} [options.key=uuid()] Identifier of the layer. Muste be unique. Default use a generated uuid.
|
|
25
|
+
* @param {string} [options.name] Name of the layer.
|
|
26
|
+
* @param {string[]} [options.copyrights] Array of copyrights.
|
|
27
|
+
* @param {Array<Layer>} [options.children=[]] Sublayers, all child layers will have a parent property associated to this layer.
|
|
28
|
+
* @param {boolean} [options.visible=true] Define if the layer is currently display on the map.
|
|
29
|
+
* @param {boolean} [options.disabled=false] Define if the layer is currently display on the map but can't be seen (extent, zoom ,data restrictions).
|
|
30
|
+
* @param {number} [options.hitTolerance=5] Hit-detection tolerance in css pixels. Pixels inside the radius around the given position will be checked for features.
|
|
31
|
+
* @param {Object} [options.properties={}] Application-specific layer properties.
|
|
32
|
+
*/
|
|
33
|
+
constructor(options?: {
|
|
34
|
+
key?: string;
|
|
35
|
+
name?: string;
|
|
36
|
+
copyrights?: string[];
|
|
37
|
+
children?: Array<Layer>;
|
|
38
|
+
visible?: boolean;
|
|
39
|
+
disabled?: boolean;
|
|
40
|
+
hitTolerance?: number;
|
|
41
|
+
properties?: any;
|
|
42
|
+
});
|
|
43
|
+
visible: boolean;
|
|
44
|
+
group: any;
|
|
45
|
+
copyrights: string[];
|
|
46
|
+
children: Layer[];
|
|
47
|
+
/**
|
|
48
|
+
* Define layer's properties that needs custom get and set.
|
|
49
|
+
*
|
|
50
|
+
* @ignore
|
|
51
|
+
*/
|
|
52
|
+
defineProperties(options: any): void;
|
|
53
|
+
/**
|
|
54
|
+
* Initialize the layer with the map passed in parameters.
|
|
55
|
+
*
|
|
56
|
+
* @param {ol/Map~Map|mapboxgl.Map} map A map.
|
|
57
|
+
*/
|
|
58
|
+
attachToMap(map: any): void;
|
|
59
|
+
/** @ignore */
|
|
60
|
+
map: any;
|
|
61
|
+
/**
|
|
62
|
+
* Terminate what was initialized in init function. Remove layer, events...
|
|
63
|
+
*/
|
|
64
|
+
detachFromMap(): void;
|
|
65
|
+
/**
|
|
66
|
+
* Request feature information for a given coordinate.
|
|
67
|
+
* This function must be implemented by inheriting layers.
|
|
68
|
+
*
|
|
69
|
+
* @param {ol/coordinate~Coordinate} coordinate Coordinate.
|
|
70
|
+
* @param {Object} options Some options. See child classes to see which are supported.
|
|
71
|
+
* @return {Promise<FeatureInfo>} An empty response.
|
|
72
|
+
*/
|
|
73
|
+
getFeatureInfoAtCoordinate(coordinate: any, options: any): Promise<FeatureInfo>;
|
|
74
|
+
/**
|
|
75
|
+
* Return the an array containing all the descendants of the layer in a flat array. Including the current layer.
|
|
76
|
+
*/
|
|
77
|
+
flat(): any[];
|
|
78
|
+
}
|
|
79
|
+
import BaseObject from "ol/Object";
|
|
80
|
+
//# sourceMappingURL=Layer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Layer.d.ts","sourceRoot":"","sources":["../../../src/common/layers/Layer.js"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;GAiBG;AACH;IACE;;;;;;;;;;;;OAYG;IACH;QAT4B,GAAG,GAApB,MAAM;QACW,IAAI,GAArB,MAAM;QACa,UAAU,GAA7B,MAAM,EAAE;QACe,QAAQ,GAA/B,MAAM,KAAK,CAAC;QACM,OAAO,GAAzB,OAAO;QACW,QAAQ,GAA1B,OAAO;QACU,YAAY,GAA7B,MAAM;QACW,UAAU;OA+BrC;IAvBC,iBAAuE;IAEvE,WAA0B;IAE1B,qBAAoC;IAEpC,kBAAgC;IAmBlC;;;;OAIG;IACH,qCA0HC;IAED;;;;OAIG;IACH,4BAUC;IARC,cAAc;IACd,SAAc;IAShB;;OAEG;IAEH,sBAGC;IAED;;;;;;;OAOG;IAEH,2DAHY,QAAQ,WAAW,CAAC,CAiB/B;IAED;;OAEG;IACH,cAEC;CACF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright control interface.
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
5
|
+
export class CopyrightInterface {
|
|
6
|
+
/**
|
|
7
|
+
* Return an array of layer's copyright.
|
|
8
|
+
*
|
|
9
|
+
* @return {String[]} A list of copyrights to render.
|
|
10
|
+
*/
|
|
11
|
+
getCopyrights(): string[];
|
|
12
|
+
}
|
|
13
|
+
export default CopyrightMixin;
|
|
14
|
+
/**
|
|
15
|
+
* Mixin for CopyrightInterface.
|
|
16
|
+
*
|
|
17
|
+
* @param {Class} Base A class to extend with {CopyrightInterface} functionnalities.
|
|
18
|
+
* @return {Class} A class that implements <CopyrightInterface> class and extends Base;
|
|
19
|
+
* @private
|
|
20
|
+
*/
|
|
21
|
+
declare function CopyrightMixin(Base: Class): Class;
|
|
22
|
+
//# sourceMappingURL=CopyrightMixin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CopyrightMixin.d.ts","sourceRoot":"","sources":["../../../src/common/mixins/CopyrightMixin.js"],"names":[],"mappings":"AAGA;;;GAGG;AACH;IACE;;;;OAIG;IACH,iBAFY,QAAQ,CAEF;CACnB;;AAED;;;;;;GAMG;AACH,oDAsBG"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MapboxLayerInterface
|
|
3
|
+
*/
|
|
4
|
+
export class MapboxLayerInterface {
|
|
5
|
+
/**
|
|
6
|
+
* Return the render function function for the ol layer.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
getOlLayerRender(): void;
|
|
10
|
+
/**
|
|
11
|
+
* Return the Class to instanciate for the mapbox map.
|
|
12
|
+
*
|
|
13
|
+
* @return {mapboxgl.Map|maplibregl.Map} map
|
|
14
|
+
*/
|
|
15
|
+
getMapboxMapClass(): mapboxgl.Map | maplibregl.Map;
|
|
16
|
+
}
|
|
17
|
+
export default MapboxLayerMixin;
|
|
18
|
+
/**
|
|
19
|
+
* Mixin for MapboxLayerLayerInterface.
|
|
20
|
+
* It's used to share code between Mapbox and Maplibre layers without importing both libs
|
|
21
|
+
*
|
|
22
|
+
* @param {Class} Base A class to extend with {MapboxLayerLayerInterface} functionnalities.
|
|
23
|
+
* @return {Class} A class that implements {MapboxLayerLayerInterface} class and extends Base;
|
|
24
|
+
* @private
|
|
25
|
+
*/
|
|
26
|
+
declare function MapboxLayerMixin(Base: Class): Class;
|
|
27
|
+
//# sourceMappingURL=MapboxLayerMixin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MapboxLayerMixin.d.ts","sourceRoot":"","sources":["../../../src/common/mixins/MapboxLayerMixin.js"],"names":[],"mappings":"AAOA;;GAEG;AACH;IACE;;;OAGG;IAEH,yBAAqB;IAErB;;;;OAIG;IAEH,qBAHY,eAAa,cAAc,CAGjB;CACvB;;AAED;;;;;;;GAOG;AACH,sDA6MG"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RealtimeLayerInterface.
|
|
3
|
+
*/
|
|
4
|
+
export class RealtimeLayerInterface {
|
|
5
|
+
constructor(options?: {});
|
|
6
|
+
/**
|
|
7
|
+
* Initialize the layer subscribing to the Realtime api.
|
|
8
|
+
*
|
|
9
|
+
* @param {ol/Map~Map} map
|
|
10
|
+
*/
|
|
11
|
+
attachToMap(map: any): void;
|
|
12
|
+
/**
|
|
13
|
+
* Terminate the layer unsubscribing to the Realtime api.
|
|
14
|
+
*/
|
|
15
|
+
detachFromMap(): void;
|
|
16
|
+
/**
|
|
17
|
+
* Start the clock.
|
|
18
|
+
*/
|
|
19
|
+
start(): void;
|
|
20
|
+
/**
|
|
21
|
+
* Stop the clock.
|
|
22
|
+
*/
|
|
23
|
+
stop(): void;
|
|
24
|
+
/**
|
|
25
|
+
* Set the Realtime api's bbox.
|
|
26
|
+
*
|
|
27
|
+
* @param {Array<number>} extent Extent to request, [minX, minY, maxX, maxY, zoom].
|
|
28
|
+
* @param {number} zoom Zoom level to request. Must be an integer.
|
|
29
|
+
*/
|
|
30
|
+
setBbox(extent: Array<number>, zoom: number): void;
|
|
31
|
+
/**
|
|
32
|
+
* Set the Realtime api's mode.
|
|
33
|
+
*
|
|
34
|
+
* @param {RealtimeMode} mode Realtime mode
|
|
35
|
+
*/
|
|
36
|
+
setMode(mode: RealtimeMode): void;
|
|
37
|
+
/**
|
|
38
|
+
* Request the stopSequence and the fullTrajectory informations for a vehicle.
|
|
39
|
+
*
|
|
40
|
+
* @param {string} id The vehicle identifier (the train_id property).
|
|
41
|
+
* @param {RealtimeMode} mode The mode to request. If not defined, the layer´s mode propetrty will be used.
|
|
42
|
+
* @return {Promise<{stopSequence: StopSequence, fullTrajectory: FullTrajectory>} A promise that will be resolved with the trajectory informations.
|
|
43
|
+
*/
|
|
44
|
+
getTrajectoryInfos(id: string, mode: RealtimeMode): Promise<{
|
|
45
|
+
stopSequence: StopSequence;
|
|
46
|
+
fullTrajectory: FullTrajectory;
|
|
47
|
+
}>;
|
|
48
|
+
}
|
|
49
|
+
export default RealtimeLayerMixin;
|
|
50
|
+
/**
|
|
51
|
+
* Mixin for RealtimeLayerInterface.
|
|
52
|
+
*
|
|
53
|
+
* @param {Class} Base A class to extend with {RealtimeLayerInterface} functionnalities.
|
|
54
|
+
* @return {Class} A class that implements {RealtimeLayerInterface} class and extends Base;
|
|
55
|
+
* @private
|
|
56
|
+
*/
|
|
57
|
+
declare function RealtimeLayerMixin(Base: Class): Class;
|
|
58
|
+
//# sourceMappingURL=RealtimeLayerMixin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RealtimeLayerMixin.d.ts","sourceRoot":"","sources":["../../../src/common/mixins/RealtimeLayerMixin.js"],"names":[],"mappings":"AAgBA;;GAEG;AACH;IAYE,0BAA4B;IAE5B;;;;OAIG;IACH,4BAAmB;IAEnB;;OAEG;IACH,sBAAkB;IAElB;;OAEG;IACH,cAAU;IAEV;;OAEG;IACH,aAAS;IAET;;;;;OAKG;IACH,gBAHW,MAAM,MAAM,CAAC,QACb,MAAM,QAEO;IAExB;;;;OAIG;IACH,kCAAgB;IAEhB;;;;;;OAMG;IACH,uBAJW,MAAM,uBAEL,QAAQ;QAAC,YAAY,EAAE,YAAY,CAAC;QAAC,cAAc,EAAE,cAAc,CAAA;KAAA,CAAC,CAEjD;CAChC;;AAED;;;;;;GAMG;AACH,wDA8tBG"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* StopFinder control interface.
|
|
3
|
+
*
|
|
4
|
+
* @classproperty {StopsSearchParams} apiParams - Default request parameters used by the search method. See [Stops service documentation](https://developer.geops.io/apis/5dcbd702a256d90001cf1361/).
|
|
5
|
+
*/
|
|
6
|
+
export class StopFinderInterface {
|
|
7
|
+
/**
|
|
8
|
+
* Constructor.
|
|
9
|
+
*
|
|
10
|
+
* @param {Object} options Map options
|
|
11
|
+
* @param {string} options.apiKey Access key for [geOps services](https://developer.geops.io/). See StopsAPI.
|
|
12
|
+
* @param {string} [options.url='https://api.geops.io/tracker/v1'] Stops service url. See StopsAPI.
|
|
13
|
+
* @param {string} [options.placeholder='Search for a stop...'] Input field placeholder.
|
|
14
|
+
* @param {StopsSearchParams} [options.apiParams={ limit: 20 }] Request parameters. See [Stops service documentation](https://developer.geops.io/apis/5dcbd702a256d90001cf1361/).
|
|
15
|
+
*/
|
|
16
|
+
constructor(options?: {
|
|
17
|
+
apiKey: string;
|
|
18
|
+
url?: string;
|
|
19
|
+
placeholder?: string;
|
|
20
|
+
apiParams?: StopsSearchParams;
|
|
21
|
+
});
|
|
22
|
+
/**
|
|
23
|
+
* Launch a search.
|
|
24
|
+
*
|
|
25
|
+
* @param {String} query The query to search for.
|
|
26
|
+
* @param {AbortController} abortController Abort controller used to cancel the request.
|
|
27
|
+
* @return {Promise<Array<GeoJSONFeature>>} An array of GeoJSON features with coordinates in [EPSG:4326](http://epsg.io/4326).
|
|
28
|
+
*/
|
|
29
|
+
search(query: string, abortController: AbortController): Promise<Array<GeoJSONFeature>>;
|
|
30
|
+
}
|
|
31
|
+
export default StopFinderMixin;
|
|
32
|
+
/**
|
|
33
|
+
* Mixin for StopFinderInterface.
|
|
34
|
+
*
|
|
35
|
+
* @param {Class} Base A class to extend with {StopFinderInterface} functionnalities.
|
|
36
|
+
* @return {Class} A class that implements <StopFinderInterface> class and extends Base;
|
|
37
|
+
* @private
|
|
38
|
+
*/
|
|
39
|
+
declare function StopFinderMixin(Base: Class): Class;
|
|
40
|
+
//# sourceMappingURL=StopFinderMixin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StopFinderMixin.d.ts","sourceRoot":"","sources":["../../../src/common/mixins/StopFinderMixin.js"],"names":[],"mappings":"AAMA;;;;GAIG;AACH;IACE;;;;;;;;OAQG;IAEH;QAN2B,MAAM,EAAtB,MAAM;QACW,GAAG,GAApB,MAAM;QACW,WAAW,GAA5B,MAAM;QACsB,SAAS;OAGpB;IAE5B;;;;;;OAMG;IAEH,uCAJW,eAAe,GACd,QAAQ,qBAAqB,CAAC,CAGT;CAClC;;AAED;;;;;;GAMG;AACH,qDAoIG"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UserInteractionsLayerInterface.
|
|
3
|
+
*/
|
|
4
|
+
export class UserInteractionsLayerInterface {
|
|
5
|
+
constructor(options?: {});
|
|
6
|
+
/**
|
|
7
|
+
* Initialize the layer adding user interactions.
|
|
8
|
+
*
|
|
9
|
+
* @param {ol/Map~Map} map
|
|
10
|
+
*/
|
|
11
|
+
attachToMap(map: any): void;
|
|
12
|
+
/**
|
|
13
|
+
* Terminate the layer unsubscribing user interactions.
|
|
14
|
+
*/
|
|
15
|
+
detachFromMap(): void;
|
|
16
|
+
/**
|
|
17
|
+
* Activate map listeners events.
|
|
18
|
+
*/
|
|
19
|
+
activateUserInteractions(): void;
|
|
20
|
+
/**
|
|
21
|
+
* Deactivaet map listeners events.
|
|
22
|
+
*/
|
|
23
|
+
deactivateUserInteractions(): void;
|
|
24
|
+
/**
|
|
25
|
+
* Terminate the layer unsubscribing user interactions.
|
|
26
|
+
*/
|
|
27
|
+
onClick(callback: any): void;
|
|
28
|
+
/**
|
|
29
|
+
* Terminate the layer unsubscribing user interactions.
|
|
30
|
+
*/
|
|
31
|
+
onHover(callback: any): void;
|
|
32
|
+
}
|
|
33
|
+
export default UserInteractionsLayerMixin;
|
|
34
|
+
/**
|
|
35
|
+
* Mixin for UserInteractionsLayerInterface. It provide onClick and onHover functions.
|
|
36
|
+
*
|
|
37
|
+
* @param {Class} Base A class to extend with {UserInteractionsLayerInterface} functionnalities.
|
|
38
|
+
* @return {Class} A class that implements {UserInteractionsLayerInterface} class and extends Base;
|
|
39
|
+
* @private
|
|
40
|
+
*/
|
|
41
|
+
declare function UserInteractionsLayerMixin(Base: Class): Class;
|
|
42
|
+
//# sourceMappingURL=UserInteractionsLayerMixin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserInteractionsLayerMixin.d.ts","sourceRoot":"","sources":["../../../src/common/mixins/UserInteractionsLayerMixin.js"],"names":[],"mappings":"AAQA;;GAEG;AACH;IAUE,0BAA4B;IAE5B;;;;OAIG;IACH,4BAAmB;IAEnB;;OAEG;IACH,sBAAkB;IAElB;;OAEG;IACH,iCAA6B;IAE7B;;OAEG;IACH,mCAA+B;IAE/B;;OAEG;IACH,6BAAoB;IAEpB;;OAEG;IACH,6BAAoB;CACrB;;AAED;;;;;;GAMG;AACH,gEA6KG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as realtimeDefaultStyle } from "./realtimeDefaultStyle";
|
|
2
|
+
export { default as realtimeDelayStyle } from "./realtimeDelayStyle";
|
|
3
|
+
export { default as realtimeSimpleStyle } from "./realtimeSimpleStyle";
|
|
4
|
+
export * from "./realtimeDefaultStyle";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/styles/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export function getDelayBgCanvas(origin: any, radius: any, color: any): any;
|
|
2
|
+
export function getDelayTextCanvas(width: any, text: any, fontSize: any, font: any, delayColor: any, delayOutlineColor?: string, pixelRatio?: number): any;
|
|
3
|
+
export function getCircleCanvas(origin: any, radius: any, color: any, hasStroke: any, hasDash: any, pixelRatio: any): any;
|
|
4
|
+
export function getTextCanvas(text: any, origin: any, textSize: any, fillColor: any, strokeColor: any, hasStroke: any, pixelRatio: any): any;
|
|
5
|
+
export default realtimeDefaultStyle;
|
|
6
|
+
/**
|
|
7
|
+
* A tracker style that take in account the delay.
|
|
8
|
+
*
|
|
9
|
+
* @param {*} trajectory The trajectory to render.
|
|
10
|
+
* @param {*} viewState The view state of the map.
|
|
11
|
+
* @param {*} options Some options to change the rendering
|
|
12
|
+
* @return a canvas
|
|
13
|
+
*/
|
|
14
|
+
declare function realtimeDefaultStyle(trajectory: any, viewState: any, options: any): any;
|
|
15
|
+
//# sourceMappingURL=realtimeDefaultStyle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"realtimeDefaultStyle.d.ts","sourceRoot":"","sources":["../../../src/common/styles/realtimeDefaultStyle.js"],"names":[],"mappings":"AAUO,4EAeN;AAUM,2JA2BN;AAUM,0HAoCN;AAUM,6IAuCN;;AAKD;;;;;;;GAOG;AACH,0FAgMC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export default realtimeDelayStyle;
|
|
3
2
|
/**
|
|
4
3
|
* A tracker style that display the delay as backgroundColor.
|
|
5
4
|
*
|
|
@@ -8,10 +7,5 @@ import trackerDefaultStyle from './trackerDefaultStyle';
|
|
|
8
7
|
* @param {*} options Some options to change the rendering
|
|
9
8
|
* @return a canvas
|
|
10
9
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
...options,
|
|
14
|
-
useDelayStyle: true,
|
|
15
|
-
});
|
|
16
|
-
};
|
|
17
|
-
export default style;
|
|
10
|
+
declare function realtimeDelayStyle(trajectory: any, viewState: any, options: any): any;
|
|
11
|
+
//# sourceMappingURL=realtimeDelayStyle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"realtimeDelayStyle.d.ts","sourceRoot":"","sources":["../../../src/common/styles/realtimeDelayStyle.js"],"names":[],"mappings":";AAEA;;;;;;;GAOG;AACH,wFAKC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"realtimeSimpleStyle.d.ts","sourceRoot":"","sources":["../../../src/common/styles/realtimeSimpleStyle.js"],"names":[],"mappings":";AAKA,4CAeC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
type FilterFunction = Function;
|
|
2
|
+
type ViewState = {
|
|
3
|
+
/**
|
|
4
|
+
* A time in ms.
|
|
5
|
+
*/
|
|
6
|
+
time: number;
|
|
7
|
+
/**
|
|
8
|
+
* A center in mercator coordinate.
|
|
9
|
+
*/
|
|
10
|
+
center: any;
|
|
11
|
+
/**
|
|
12
|
+
* An Extent in mercator coordinates.
|
|
13
|
+
*/
|
|
14
|
+
extent: any;
|
|
15
|
+
/**
|
|
16
|
+
* A size ([width, height]).
|
|
17
|
+
*/
|
|
18
|
+
size: any;
|
|
19
|
+
/**
|
|
20
|
+
* A rotation in radians.
|
|
21
|
+
*/
|
|
22
|
+
rotation: number;
|
|
23
|
+
/**
|
|
24
|
+
* A resolution.
|
|
25
|
+
*/
|
|
26
|
+
resolution: number;
|
|
27
|
+
/**
|
|
28
|
+
* A zoom level.
|
|
29
|
+
*/
|
|
30
|
+
zoom: number;
|
|
31
|
+
/**
|
|
32
|
+
* A pixel ratio.
|
|
33
|
+
*/
|
|
34
|
+
pixelRatio: number;
|
|
35
|
+
};
|
|
36
|
+
type FeatureInfo = {
|
|
37
|
+
/**
|
|
38
|
+
* A layer.
|
|
39
|
+
*/
|
|
40
|
+
layer: Layer;
|
|
41
|
+
/**
|
|
42
|
+
* /Feature~Feature[]} features An array of features.
|
|
43
|
+
*/
|
|
44
|
+
"": ol;
|
|
45
|
+
/**
|
|
46
|
+
* The coordinate where to find the featue.
|
|
47
|
+
*/
|
|
48
|
+
coordinate: any;
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=typedefs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typedefs.d.ts","sourceRoot":"","sources":["../../src/common/typedefs.js"],"names":[],"mappings":";;;;;UAOc,MAAM;;;;;;;;;;;;;;;;cAIN,MAAM;;;;gBACN,MAAM;;;;UACN,MAAM;;;;gBACN,MAAM"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cleanStopTime.d.ts","sourceRoot":"","sources":["../../../src/common/utils/cleanStopTime.js"],"names":[],"mappings":";AAAA;;;GAGG;AACH,kDAsBC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default compareDepartures;
|
|
2
|
+
/**
|
|
3
|
+
* Compare two given departures for sort alogithm,
|
|
4
|
+
* @param {Object} a First departure.
|
|
5
|
+
* @param {Object} b Second departure.
|
|
6
|
+
* @private
|
|
7
|
+
*/
|
|
8
|
+
declare function compareDepartures(a: any, b: any, sortByMinArrivalTime?: boolean): number;
|
|
9
|
+
//# sourceMappingURL=compareDepartures.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compareDepartures.d.ts","sourceRoot":"","sources":["../../../src/common/utils/compareDepartures.js"],"names":[],"mappings":";AAAA;;;;;GAKG;AACH,2FA8BC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default createCanvas;
|
|
2
|
+
/**
|
|
3
|
+
* This function try to create a canvas element and return it.
|
|
4
|
+
* it uses document.createElement('canvas') if document is available
|
|
5
|
+
* or new OffscreenCanvas(width, height) if OffscreenCanvas is avalaible (for web worker)
|
|
6
|
+
* or it returns null if neither is available.
|
|
7
|
+
*/
|
|
8
|
+
declare function createCanvas(width: any, height: any): any;
|
|
9
|
+
//# sourceMappingURL=createCanvas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createCanvas.d.ts","sourceRoot":"","sources":["../../../src/common/utils/createCanvas.js"],"names":[],"mappings":";AAAA;;;;;GAKG;AACH,4DAqBC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default createFilters;
|
|
2
|
+
/**
|
|
3
|
+
* Return a filter functions based on some parameters of a vehicle.
|
|
4
|
+
*
|
|
5
|
+
* @param {string|Array<string>} line - A list of vehicle's name to filter. Names can be separated by a comma. Ex: 'S1,S2,S3'
|
|
6
|
+
* @param {string|Array<string} route - A list of vehicle's route (contained in routeIdentifier property) to filter. Indentifiers can be separated by a comma. Ex: 'id1,id2,id3'
|
|
7
|
+
* @param {string|Array<string} operator A list of vehicle's operator to filter. Operators can be separated by a comma. Ex: 'SBB,DB'
|
|
8
|
+
* @param {Regexp} regexLine - A regex aplly of vehcile's name.
|
|
9
|
+
* @private
|
|
10
|
+
*/
|
|
11
|
+
declare function createFilters(line: string | Array<string>, route: string | Array<string>, operator: string | Array<string>, regexLine: Regexp): (t: any) => boolean;
|
|
12
|
+
//# sourceMappingURL=createTrackerFilters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createTrackerFilters.d.ts","sourceRoot":"","sources":["../../../src/common/utils/createTrackerFilters.js"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;AACH,qCANW,MAAM,GAAC,MAAM,MAAM,CAAC,SACpB,MAAM,GAAC,MAAM,MAAM,CAAA,YACnB,MAAM,GAAC,MAAM,MAAM,CAAA,0CA+E7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getLayersAsFlatArray.d.ts","sourceRoot":"","sources":["../../../src/common/utils/getLayersAsFlatArray.js"],"names":[],"mappings":";AAAA,iEAYC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export default getMapboxMapCopyrights;
|
|
2
|
+
/**
|
|
3
|
+
* Return the copyright a Mapbox map.
|
|
4
|
+
* @param {mapboxgl.Map} map A Mapbox map
|
|
5
|
+
* @ignore
|
|
6
|
+
*/
|
|
7
|
+
declare function getMapboxMapCopyrights(map: mapboxgl.Map): any[];
|
|
8
|
+
//# sourceMappingURL=getMapboxMapCopyrights.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMapboxMapCopyrights.d.ts","sourceRoot":"","sources":["../../../src/common/utils/getMapboxMapCopyrights.js"],"names":[],"mappings":";AAEA;;;;GAIG;AACH,kEAsBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMapboxRender.d.ts","sourceRoot":"","sources":["../../../src/common/utils/getMapboxRender.js"],"names":[],"mappings":"AAGA;;GAEG;AACH,mFA4EC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMaplibreRender.d.ts","sourceRoot":"","sources":["../../../src/common/utils/getMaplibreRender.js"],"names":[],"mappings":"AAGA;;GAEG;AACH,wFAoCC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export default getModeSuffix;
|
|
2
|
+
/**
|
|
3
|
+
* Get the websocket channel suffix, depending on the current mode.
|
|
4
|
+
* @param {String} mode Mode 'topographic' ou 'schematic'.
|
|
5
|
+
* @private
|
|
6
|
+
*/
|
|
7
|
+
declare function getModeSuffix(mode: string, modes: any): "" | "_schematic";
|
|
8
|
+
//# sourceMappingURL=getRealtimeModeSuffix.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRealtimeModeSuffix.d.ts","sourceRoot":"","sources":["../../../src/common/utils/getRealtimeModeSuffix.js"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,4EAC8C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default getUrlWithParams;
|
|
2
|
+
/**
|
|
3
|
+
* Return the styleUrl with apiKey parameters set.
|
|
4
|
+
* @param {string} url a url.
|
|
5
|
+
* @param {Object<String,String>} params a list of key/value pair to add to the url.
|
|
6
|
+
* @ignore
|
|
7
|
+
*/
|
|
8
|
+
declare function getUrlWithParams(url: string, params: any): URL;
|
|
9
|
+
//# sourceMappingURL=getUrlWithParams.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getUrlWithParams.d.ts","sourceRoot":"","sources":["../../../src/common/utils/getUrlWithParams.js"],"names":[],"mappings":";AAAA;;;;;GAKG;AACH,uCAJW,MAAM,oBAgBhB"}
|