Closed GoogleCodeExporter closed 8 years ago
I had a look and I think the code to draw the circle is wrong. The scale bar
seems to be correct. I realise you copied that code from MyLocationOverlay,
which means that code is wrong. I think MyLocationOverlay uses the distance at
the equator, whereas ScaleBarOverlay uses the distance at your location.
Perhaps you'd like to submit a patch for MyLocationOverlay :-)
Original comment by neilboyd
on 7 Jan 2012 at 9:48
[deleted comment]
Actually I've done it myself ;-)
In your code, change calculation of actualRadius :
float actualRadius = radius / (float)
TileSystem.GroundResolution(location.getLatitude(), mapView.getZoomLevel());
Original comment by neilboyd
on 7 Jan 2012 at 10:02
Attachments:
This issue was closed by revision r1033.
Original comment by neilboyd
on 12 Jan 2012 at 8:09
Original issue reported on code.google.com by
christia...@gmail.com
on 7 Jan 2012 at 10:40Attachments: