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
|
|
@ -1,18 +1,14 @@
|
|||
BR.Itinerary = L.Class.extend({
|
||||
options: {
|
||||
heading: 'Itinerary'
|
||||
},
|
||||
|
||||
onAdd: function (map) {
|
||||
initialize: function () {
|
||||
this._content = document.getElementById('itinerary');
|
||||
document.getElementById('tab_itinerary').hidden = false;
|
||||
this.update();
|
||||
},
|
||||
|
||||
update: function (polyline, segments) {
|
||||
var i, j, iter, html = '';
|
||||
|
||||
html += '<pre>';
|
||||
html += '<pre class="flexgrow">';
|
||||
for (i = 0; segments && i < segments.length; i++)
|
||||
{
|
||||
iter = segments[i].feature.iternity;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue