Skip to content

Instantly share code, notes, and snippets.

@here-devblog-gists
Created November 7, 2016 09:26
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/ed50a5502c247384d796b81adfd32dbe to your computer and use it in GitHub Desktop.
Save here-devblog-gists/ed50a5502c247384d796b81adfd32dbe 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;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment