Phi-Map: cleanup aircraft icon
strip anything but the svg element from the loaded icon file
This commit is contained in:
parent
e8849c882e
commit
07c6050707
1 changed files with 5 additions and 0 deletions
|
@ -7,6 +7,11 @@ define(
|
||||||
function ViewModel(params, componentInfo) {
|
function ViewModel(params, componentInfo) {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
|
{ // extract <svg> element from image xml (strip pi)
|
||||||
|
var xmlDoc = jquery.parseXML( aircraftSvg );
|
||||||
|
aircraftSvg = jquery( xmlDoc ).find("svg")[0].outerHTML;
|
||||||
|
}
|
||||||
|
|
||||||
self.element = componentInfo.element;
|
self.element = componentInfo.element;
|
||||||
self.followAircraft = ko.observable(true);
|
self.followAircraft = ko.observable(true);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue