Created
October 27, 2016 11:07
-
-
Save here-devblog-gists/b74627307b6bff88fd9517d4fdd9ed18 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var drawRoute = function(route) { | |
var routeShape = route.shape; | |
var strip = new H.geo.Strip(); | |
routeShape.forEach(function(point) { | |
var parts = point.split(','); | |
strip.pushLatLngAlt(parts[0], parts[1]); | |
}); | |
var routeLine = new H.map.Polyline(strip, { | |
style: { strokeColor: ‘blue’, lineWidth: 3 } | |
}); | |
map.addObject(routeLine); | |
// map.setViewBounds(routeLine.getBounds()); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment