c409864dac
- 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
22 lines
514 B
Text
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);
|
|
|
|
}
|