Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Michael Ochmann
trakr.
Commits
15e48be6
Commit
15e48be6
authored
Jul 15, 2018
by
Michael Ochmann
Browse files
.
parent
915a9c87
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/javascript/controllers/MapController.js
View file @
15e48be6
...
...
@@ -15,7 +15,8 @@ class MapController extends UIViewController {
id
:
'
mapbox.streets
'
,
accessToken
:
'
pk.eyJ1IjoibWlrbzAwNyIsImEiOiJjampuMGRwN2wxdDNjM3ZuendsZzZod2FtIn0.0kPe41l0WPOHuV0Cr82ZKw
'
}).
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
());
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment