Adapt transit demo support to new sidebar

This commit is contained in:
Norbert Renner 2018-03-15 14:59:53 +01:00
parent 208041c3d8
commit ce279fd464
5 changed files with 27 additions and 10 deletions

View file

@ -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;