Skip to content

Instantly share code, notes, and snippets.

@here-devblog-gists
Created November 14, 2016 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save here-devblog-gists/72d6d2fecd662fa130860a3d2a3a1339 to your computer and use it in GitHub Desktop.
Save here-devblog-gists/72d6d2fecd662fa130860a3d2a3a1339 to your computer and use it in GitHub Desktop.
HERERouter.prototype.onRouteSelection = function(route) {
if (this.selectedRoute) {
this.selectedRoute.routeLine.setStyle(this.routeLineStyles.normal).setZIndex(1);
}
route.routeLine.setStyle(this.routeLineStyles.selected).setZIndex(10);
this.selectedRoute = route;
this.map.setViewBounds(route.routeLine.getBounds());
this.onRouteChange(route);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment