mirror of https://gitee.com/bigwinds/arangodb
Added function to draw a flight
This commit is contained in:
parent
fa40ed9146
commit
37a51856d4
|
@ -102,6 +102,13 @@
|
||||||
lat: airport.Latitude
|
lat: airport.Latitude
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
imageData.push({
|
||||||
|
color: "#FF0000",
|
||||||
|
lines: [{
|
||||||
|
latitudes: [ 51.5002, 50.4422 ],
|
||||||
|
longitudes: [ -0.1262, 30.5367 ]
|
||||||
|
}]
|
||||||
|
});
|
||||||
return imageData;
|
return imageData;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -140,10 +147,20 @@
|
||||||
areaSettings: {
|
areaSettings: {
|
||||||
autoZoom: true,
|
autoZoom: true,
|
||||||
selectedColor: self.MAPcolor
|
selectedColor: self.MAPcolor
|
||||||
}
|
},
|
||||||
|
linesSettings: {
|
||||||
|
color: "#FF0000",
|
||||||
|
alpha: 1
|
||||||
|
},
|
||||||
|
linesAboveImages: true
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
addFlightLine: function(from, to) {
|
||||||
|
this.lines.push(this.createFlightEntry(from, to));
|
||||||
|
this.map.validateData();
|
||||||
|
},
|
||||||
|
|
||||||
renderDummy: function() {
|
renderDummy: function() {
|
||||||
|
|
||||||
// svg path for target icon
|
// svg path for target icon
|
||||||
|
|
Loading…
Reference in New Issue