Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var onSuccess = function(result) {
if (result.response.route) {
var routeLineGroup = new H.map.Group();
var routes = result.response.route.map(function(route) {
var routeLine = drawRoute(route);
routeLineGroup.addObject(routeLine);
return {
route: route,
routeLine: routeLine
};
});
map.addObject(routeLineGroup);
map.setViewBounds(routeLineGroup.getBounds());
}
};
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.