rename to itinerary
This commit is contained in:
parent
4f558a0956
commit
8fd789a887
3 changed files with 9 additions and 9 deletions
|
|
@ -43,8 +43,8 @@
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div class="tab-pane hidden" id="tab_iternity">
|
<div class="tab-pane hidden" id="tab_itinerary">
|
||||||
<div id="iternity">
|
<div id="itinerary">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane" id="tab_profile">
|
<div class="tab-pane" id="tab_profile">
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
BR.Iternity = L.Class.extend({
|
BR.Iternity = L.Class.extend({
|
||||||
options: {
|
options: {
|
||||||
heading: 'Iternity'
|
heading: 'Itinerary'
|
||||||
},
|
},
|
||||||
|
|
||||||
onAdd: function (map) {
|
onAdd: function (map) {
|
||||||
this._content = document.getElementById('iternity');
|
this._content = document.getElementById('itinerary');
|
||||||
L.DomUtil.removeClass(this._content.parentElement, 'hidden');
|
L.DomUtil.removeClass(this._content.parentElement, 'hidden');
|
||||||
this.update();
|
this.update();
|
||||||
},
|
},
|
||||||
|
|
|
||||||
10
js/index.js
10
js/index.js
|
|
@ -119,7 +119,7 @@
|
||||||
routingOptions,
|
routingOptions,
|
||||||
nogos,
|
nogos,
|
||||||
stats,
|
stats,
|
||||||
iternity,
|
itinerary,
|
||||||
elevation,
|
elevation,
|
||||||
download,
|
download,
|
||||||
tabs,
|
tabs,
|
||||||
|
|
@ -191,7 +191,7 @@
|
||||||
|
|
||||||
// intermodal routing demo?
|
// intermodal routing demo?
|
||||||
if (BR.conf.transit) {
|
if (BR.conf.transit) {
|
||||||
iternity = new BR.Iternity();
|
itinerary = new BR.Iternity();
|
||||||
} else {
|
} else {
|
||||||
stats = new BR.TrackStats();
|
stats = new BR.TrackStats();
|
||||||
}
|
}
|
||||||
|
|
@ -281,7 +281,7 @@
|
||||||
|
|
||||||
elevation.update(track, segmentsLayer);
|
elevation.update(track, segmentsLayer);
|
||||||
if (BR.conf.transit) {
|
if (BR.conf.transit) {
|
||||||
iternity.update(track, segments);
|
itinerary.update(track, segments);
|
||||||
} else {
|
} else {
|
||||||
stats.update(track, segments);
|
stats.update(track, segments);
|
||||||
}
|
}
|
||||||
|
|
@ -312,13 +312,13 @@
|
||||||
|
|
||||||
tabs = new BR.Tabs({
|
tabs = new BR.Tabs({
|
||||||
tabs: {
|
tabs: {
|
||||||
'#tab_iternity': iternity,
|
'#tab_itinerary': itinerary,
|
||||||
'#tab_profile': profile,
|
'#tab_profile': profile,
|
||||||
'#tab_data': trackMessages
|
'#tab_data': trackMessages
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (!BR.conf.transit) {
|
if (!BR.conf.transit) {
|
||||||
delete tabs.options.tabs['#tab_iternity'];
|
delete tabs.options.tabs['#tab_itinerary'];
|
||||||
}
|
}
|
||||||
map.addControl(tabs);
|
map.addControl(tabs);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue