1
0
Fork 0
fgdata/Nasal/canvas/map/storm.draw
Gijs de Rooy c409864dac Navigation display:
- move SVG to Canvas directory
- add basic wxradar
- differentiate between track and heading
- improve altitude arc
- add range arcs
- display correct ETA for next waypoint
2013-12-04 23:22:51 +01:00

22 lines
514 B
Text

##
# draw a single storm symbol
#
var draw_storm = func (group, storm, controller=nil, lod=0) {
var lat = storm.lat;
var lon = storm.lon;
var radiusNm = storm.radiusNm;
var storm_grp = group.createChild("group","storm"); # one group for each storm
storm_grp.createChild("image")
.setFile("Nasal/canvas/map/storm.png")
.setSize(128*radiusNm,128*radiusNm)
.setTranslation(-64*radiusNm,-64*radiusNm)
.setCenter(0,0);
# the storm position
storm_grp.setGeoPosition(lat, lon)
.set("z-index",0);
}