Created
October 27, 2016 11:18
-
-
Save here-devblog-gists/2455f9a9e35b06d5085d98809cca3d3b 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
var onRouteSelection = function(route) { | |
console.log('A route has been selected.', route); | |
if (selectedRoute) { | |
selectedRoute.routeLine.setStyle(routeLineStyles.normal).setZIndex(1); | |
} | |
route.routeLine.setStyle(routeLineStyles.selected).setZIndex(10); | |
selectedRoute = route; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment