Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
function HERERouter (map, platform) {
this.map = map;
this.router = platform.getRoutingService();
this.routePanel = null;
this.selectedRoute = null;
this.routeLineGroup = null;
this.routeLineStyles = {
normal: { strokeColor: 'rgba(0, 85, 170, 0.5)', lineWidth: 3 },
selected: { strokeColor: 'rgba(255, 0, 0, 0.7)', lineWidth: 7 }
};
var panelElement = document.querySelector('#route-panel');
var routePanelOptions = {
onRouteSelection: this.onRouteSelection.bind(this)
};
this.routePanel = new HERERoutesPanel(panelElement, routePanelOptions);
}
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.