Created
November 14, 2016 16:18
-
-
Save here-devblog-gists/72d6d2fecd662fa130860a3d2a3a1339 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; | |
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