mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-31 12:23:23 +08:00
[gcs] adapt home icon to zoom level (#679)
not tested yet, I don't have a gps to test with gpsd2ivy
This commit is contained in:
@@ -355,9 +355,9 @@ object (self)
|
||||
end
|
||||
| None -> failwith "#of_world : no georef"
|
||||
|
||||
method move_item = fun (item:GnomeCanvas.re_p GnoCanvas.item) wgs84 ->
|
||||
method move_item = fun ?(z = 1.) (item:GnomeCanvas.re_p GnoCanvas.item) wgs84 ->
|
||||
let (xw,yw) = self#world_of wgs84 in
|
||||
item#affine_absolute (affine_pos_and_angle xw yw 0.);
|
||||
item#affine_absolute (affine_pos_and_angle ~z xw yw 0.);
|
||||
|
||||
method moveto = fun wgs84 ->
|
||||
let (xw, yw) = self#world_of wgs84 in
|
||||
|
||||
@@ -76,6 +76,7 @@ class widget :
|
||||
method menubar : GMenu.menu_shell
|
||||
method mouse_motion : GdkEvent.Motion.t -> bool
|
||||
method move_item :
|
||||
?z:float ->
|
||||
GnomeCanvas.re_p GnoCanvas.item -> Latlong.geographic -> unit
|
||||
method moveto : Latlong.geographic -> unit
|
||||
method of_world : Latlong.fmeter * Latlong.fmeter -> Latlong.geographic
|
||||
|
||||
Reference in New Issue
Block a user