Created
November 7, 2016 09:26
-
-
Save here-devblog-gists/ed50a5502c247384d796b81adfd32dbe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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