diff --git a/README.md b/README.md index 04e114a..1b3e45a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ xmas-server =========== -Festive xServer routing. Run it on https://ptv-logistics.github.io/xmas-server/ +Festive xServer routing. Run it on https://ptv-logistics.github.io/xmas-server/ -To use this code you need an installed PTV xRoute/xLocate/xMap or an xServer internet subscription. Go to http://xserver.ptvgroup.com/en-uk/products/ptv-xserver-internet/test/ to get a trial token. +To use this code you need an installed PTV xRoute/xLocate/xMap or an xServer internet subscription. Go to https://xserver-customers.ptvlogistics.com/ for more information. diff --git a/images/PTV_Group.svg b/images/PTV_Group.svg index de8bc44..70ecdce 100644 --- a/images/PTV_Group.svg +++ b/images/PTV_Group.svg @@ -1 +1,5 @@ - \ No newline at end of file + + + + + \ No newline at end of file diff --git a/index.html b/index.html index abefc2d..b73a4da 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ xmas-server - + @@ -26,7 +26,7 @@ - + @@ -103,9 +103,9 @@ - - - + + +
@@ -249,7 +249,7 @@

Powered by

- + @@ -301,7 +301,7 @@
- + diff --git a/index.js b/index.js index 29a8721..edf4c66 100644 --- a/index.js +++ b/index.js @@ -54,7 +54,7 @@ rz = parseInt(params.routeZoom); if (rz) routeZoom = rz; -var attribution = '© 2021 PTV AG, HERE'; +var attribution = '© ' + new Date().getFullYear() +' PTV Logistics, HERE'; map.setView([0, 0], 0); @@ -97,7 +97,7 @@ var vectorStandard = L.maplibreGL({ interactive:false, attribution: attribution }); - + var rasterDark = getLayer("blackmarble"); var rasterLight = getLayer("silica"); @@ -201,9 +201,9 @@ var routingControl = L.Routing.control({ createMarker: function (i, wp) { return L.marker(wp.latLng, { draggable: true, - }).bindTooltip(wp.name? wp.name : String.fromCharCode(65 + i), + }).bindTooltip(wp.name? wp.name : String.fromCharCode(65 + i), { - permanent: true, + permanent: true, direction: 'right' }); }, @@ -309,7 +309,7 @@ routingControl.on('routingerror', function (e) { alert(e.error.responseJSON.errorMessage); }); -// markers are not correctly updated when reverse geocoded +// markers are not correctly updated when reverse geocoded routingControl._plan.on('waypointgeocoded', function(e) { routingControl._plan._updateMarkers(); }, this); @@ -374,7 +374,7 @@ var BigPointLayer = L.CanvasLayer.extend({ }, //Function to move the snowflakes - //angle will be an ongoing incremental flag. Sin and Cos functions will be + //angle will be an ongoing incremental flag. Sin and Cos functions will be //applied to it to create vertical and horizontal movements of the flakes xupdate: function (progress, dProgress) {