Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
HERERouter.prototype.getRouteLine = function(route) {
var routeShape = route.shape;
// Create a strip to use as a point source for the route line
var strip = new H.geo.Strip();
// Push all the points in the shape into the strip:
routeShape.forEach(function(point) {
var parts = point.split(',');
strip.pushLatLngAlt(parts[0], parts[1]);
// Create a polyline to display the route:
var routeLine = new,
{ style: this.routeLineStyles.normal }
return routeLine;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.