mobility-toolbox-js 1.7.10-beta.1 → 1.7.10
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 +2 -0
- package/api/tralis/TralisAPI.js +1 -1
- package/common/mixins/TrackerLayerMixin.js +3 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/ol/layers/TrackerLayer.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -7,6 +7,8 @@ The tools in this library have been inspired by many projects realized for publi
|
|
|
7
7
|
[](https://github.com/geops/mobility-toolbox-js/actions?query=workflow%3ABuild)
|
|
8
8
|
[](https://app.netlify.com/sites/mobility-toolbox-js/deploys)
|
|
9
9
|
|
|
10
|
+
## Version 1.x.x
|
|
11
|
+
The master branch is now open for the version 2 development. The version 1 is now available in 1.x.x branch.
|
|
10
12
|
|
|
11
13
|
## Main Features
|
|
12
14
|
* Display [real-time vehicle positions and prognosis data](http://tracker.geops.ch/) on a map.
|
package/api/tralis/TralisAPI.js
CHANGED
|
@@ -81,7 +81,7 @@ class TralisAPI {
|
|
|
81
81
|
const conn = new WebSocketConnector();
|
|
82
82
|
|
|
83
83
|
if (apiKey) {
|
|
84
|
-
url = `${url || 'wss://
|
|
84
|
+
url = `${url || 'wss://api.geops.io/tracker-ws/v1/'}?key=${apiKey}`;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
Object.defineProperties(this, {
|
|
@@ -272,7 +272,9 @@ const TrackerLayerMixin = (Base) =>
|
|
|
272
272
|
* Id of the selected vehicle.
|
|
273
273
|
*/
|
|
274
274
|
pixelRatio: {
|
|
275
|
-
value:
|
|
275
|
+
value:
|
|
276
|
+
pixelRatio ||
|
|
277
|
+
(typeof window !== 'undefined' ? window.devicePixelRatio : 1),
|
|
276
278
|
writable: true,
|
|
277
279
|
},
|
|
278
280
|
|