Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@here-devblog-gists
Created October 27, 2016 11:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save here-devblog-gists/2455f9a9e35b06d5085d98809cca3d3b to your computer and use it in GitHub Desktop.
Save here-devblog-gists/2455f9a9e35b06d5085d98809cca3d3b to your computer and use it in GitHub Desktop.
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