Created
October 27, 2016 11:16
-
-
Save here-devblog-gists/ec31420dc353583b06a69543f626a57a 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); | |
} | |
route.routeLine.setStyle(routeLineStyles.selected); selectedRoute = route; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment