Phi: Correc vertical size of Map topic's content
This commit is contained in:
parent
7202e25099
commit
b522b818a5
4 changed files with 9 additions and 7 deletions
|
@ -39,7 +39,6 @@ define([
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
console.log(helpContent);
|
|
||||||
self.helpContent(helpContent);
|
self.helpContent(helpContent);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<div data-bind="if: catalogs().length == 0">
|
<div data-bind="if: catalogs().length == 0">
|
||||||
<h3>No Catalogs found</h3>
|
<h3>No Catalogs found</h3>
|
||||||
Sorry, but no package catalogs were found by your FlightGear instance.
|
Sorry, but no package catalogs were found by your FlightGear.
|
||||||
</div>
|
</div>
|
||||||
<div data-bind="foreach: catalogs">
|
<div data-bind="foreach: catalogs">
|
||||||
<h3>Package <span data-bind="text: id"></span></h3>
|
<h3>Package <span data-bind="text: id"></span></h3>
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
<div data-bind="component: { name: 'map', params: { props: $root.props }}"></div>
|
<div data-bind="component: { name: 'map', params: { css: { width: '100%', height: '100%' }}}"></div>
|
|
@ -22,7 +22,11 @@ define(
|
||||||
fgprop : 'heading'
|
fgprop : 'heading'
|
||||||
});
|
});
|
||||||
|
|
||||||
$(self.element).height($(self.element).width());
|
if (params && params.css)
|
||||||
|
for ( var p in params.css) {
|
||||||
|
$(self.element).css(p, params.css[p]);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
self.map = leaflet.map(self.element).setView([
|
self.map = leaflet.map(self.element).setView([
|
||||||
53.5, 10.0
|
53.5, 10.0
|
||||||
|
@ -86,10 +90,9 @@ define(
|
||||||
],
|
],
|
||||||
}, this);
|
}, this);
|
||||||
this.popup
|
this.popup
|
||||||
.setContent( '<div class="aircraft-marker aircraft-marker-altitude"><span data-bind="text: altitude().toFixed(0)"></span>ft</div>'
|
.setContent('<div class="aircraft-marker aircraft-marker-altitude"><span data-bind="text: altitude().toFixed(0)"></span>ft</div>'
|
||||||
+ '<div class="aircraft-marker aircraft-marker-heading"><span data-bind="text: heading().toFixed(0)"></span>°</div>'
|
+ '<div class="aircraft-marker aircraft-marker-heading"><span data-bind="text: heading().toFixed(0)"></span>°</div>'
|
||||||
+ '<div class="aircraft-marker aircraft-marker-tas"><span data-bind="text: tas().toFixed(0)"></span>kt</div><div style="clear: both"/>'
|
+ '<div class="aircraft-marker aircraft-marker-tas"><span data-bind="text: tas().toFixed(0)"></span>kt</div><div style="clear: both"/>');
|
||||||
);
|
|
||||||
this.bindPopup(this.popup);
|
this.bindPopup(this.popup);
|
||||||
this.addTo(this._map);
|
this.addTo(this._map);
|
||||||
this.openPopup();
|
this.openPopup();
|
||||||
|
|
Loading…
Add table
Reference in a new issue