mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-06 16:58:48 +08:00
bug fixed in fit to window (with neg coordinates)
This commit is contained in:
@@ -208,7 +208,7 @@ class basic_widget = fun ?(height=800) ?width ?(projection = Mercator) ?georef (
|
||||
(min min_lat lat, max max_lat lat,
|
||||
min min_long long, max max_long long))
|
||||
fitted_objects
|
||||
(max_float, min_float, max_float, min_float) in
|
||||
(max_float, -.max_float, max_float, -.max_float) in
|
||||
let c = {LL.posn_lat = (min_lat+.max_lat)/.2.; posn_long=(min_long+.max_long)/.2.}
|
||||
and nw_xw, nw_yw = self#world_of {LL.posn_lat = max_lat; posn_long=min_long}
|
||||
and se_xw, se_yw = self#world_of {LL.posn_lat = min_lat; posn_long=max_long} in
|
||||
|
||||
Reference in New Issue
Block a user