Commit 15e48be6 authored by Michael Ochmann's avatar Michael Ochmann
Browse files

.

parent 915a9c87
...@@ -15,7 +15,8 @@ class MapController extends UIViewController { ...@@ -15,7 +15,8 @@ class MapController extends UIViewController {
id: 'mapbox.streets', id: 'mapbox.streets',
accessToken: 'pk.eyJ1IjoibWlrbzAwNyIsImEiOiJjampuMGRwN2wxdDNjM3ZuendsZzZod2FtIn0.0kPe41l0WPOHuV0Cr82ZKw' accessToken: 'pk.eyJ1IjoibWlrbzAwNyIsImEiOiJjampuMGRwN2wxdDNjM3ZuendsZzZod2FtIn0.0kPe41l0WPOHuV0Cr82ZKw'
}).addTo(map); }).addTo(map);
let track = L.polyline(this.model.points.map(point => [point.latitude, point.longitude])).addTo(map); let track = L.polyline(this.model.points.map(point => [point.latitude, point.longitude]), {color : "#029BE8"}).addTo(map);
map.fitBounds(track.getBounds());
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment