Skip to content

Instantly share code, notes, and snippets.

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