Adapt transit demo support to new sidebar
This commit is contained in:
parent
208041c3d8
commit
ce279fd464
5 changed files with 27 additions and 10 deletions
|
|
@ -220,11 +220,15 @@
|
|||
trackMessages.onAdd(map);
|
||||
|
||||
sidebar = BR.sidebar({
|
||||
defaultTabId: BR.conf.transit ? 'tab_itinerary' : 'tab_profile',
|
||||
listeningTabs: {
|
||||
'tab_profile': profile,
|
||||
'tab_data': trackMessages
|
||||
}
|
||||
}).addTo(map);
|
||||
if (BR.conf.transit) {
|
||||
sidebar.showPanel('tab_itinerary');
|
||||
}
|
||||
|
||||
nogos.addTo(map);
|
||||
nogos.preventRoutePointOnCreate(routing);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue