1

I have been working on google maps v2 drawing a circle which can be resized on dragging circumference of the circle.

Cirlce circle = mMap.addCircle(new CircleOptions()
            .center(center)
            .radius(radius)
            .strokeWidth(2)
            .strokeColor(Color.BLUE)
            .fillColor(Color.parseColor("#500084d3")));

Now problem comes for large value of radius the circle becomes and oval.

I have referred these link and also linkbut didnt find any solution:

These links says that " the reason you're getting ellipse it's because the math on the options.add( is very basic and pretends the earth is a flat surface, just like before Copernicus. If you draw it on smaller areas you'll get a rounder circle. If you want a precise circle you'll have extend that math to proper take into account the shape of Earth "

Is there any solution to this problem. Is use of class extending Overlay recommended in google maps v2 so that I can somehow use its onDraw(..) method.

Community
  • 1
  • 1
Orion
  • 141
  • 4
  • whats the problem basically ? I dont get you. – Sagar Shah Feb 28 '14 at 12:50
  • The problem is for larger values of radius ,I am not getting perfect circle .It turns out to be an oval – Orion Feb 28 '14 at 13:04
  • there is no `Overlay` class in maps v2, you can try using `GroundOverlay`though – tyczj Feb 28 '14 at 15:43
  • @tyczj Thanks!! I have used GroundOverlay with following code by spes [link](http://stackoverflow.com/questions/14358328/how-to-draw-circle-around-a-pin-using-google-maps-api-v2) – Orion Mar 01 '14 at 14:04

0 Answers0