Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.