diff options
author | Keith Packard <keithp@keithp.com> | 2011-07-17 15:45:07 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-07-17 15:45:07 -0700 |
commit | ddef3e4ec1b3ff86b164f83807c34c2a78f73eb8 (patch) | |
tree | edf7e74fa0b4b15755ab5b6dd1d10e7606bd1b88 /altosui/AltosSiteMap.java | |
parent | 1f3f3d575572eff33a2bc7a53d4691e59a428450 (diff) |
altosui: Mark preload site location with red circles (like launch)
Just to show where on the map the official launch location is.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosSiteMap.java')
-rw-r--r-- | altosui/AltosSiteMap.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/altosui/AltosSiteMap.java b/altosui/AltosSiteMap.java index 188902e9..b3fb3c54 100644 --- a/altosui/AltosSiteMap.java +++ b/altosui/AltosSiteMap.java @@ -320,6 +320,16 @@ public class AltosSiteMap extends JScrollPane implements AltosFlightDisplay { last_state = state.state; } + public void draw_circle(double lat, double lon) { + final Point2D.Double pt = pt(lat, lon); + + for (Point offset : mapTiles.keySet()) { + AltosSiteMapTile tile = mapTiles.get(offset); + Point2D.Double ref = translatePoint(pt, tileCoordOffset(offset)); + tile.draw_circle(ref); + } + } + private AltosSiteMapTile createTile(Point offset) { AltosSiteMapTile tile = new AltosSiteMapTile(px_size); mapTiles.put(offset, tile); |