I want to draw the circle in Google map V2. I have tried using Ground overlay but its not showing as i want.
Asked
Active
Viewed 916 times
-1
-
2please show some code. or use https://developers.google.com/maps/documentation/android/lines#polygons – n3utrino Feb 13 '13 at 11:33
-
When i was using V1 map then i used projection.toPixels(mGeoPoint, mScreenCoords); , i want to know the replacement of this projection in V2 map. – Anks Feb 13 '13 at 12:25
-
Please refer to http://stackoverflow.com/questions/13991301/android-maps-api-v2-draw-circle – zmeda Feb 27 '13 at 09:09
-
please add your code example to fix the problem – Kaumadie Kariyawasam Feb 17 '21 at 05:54
1 Answers
-1
You can add a circle to google map ad follows:
GoogleMap gMap = ...; //get ref to gMap
CircleOptions circleOptions = new CircleOptions();
circleOptions.center(latLang point);
circleOptions.fillColor(/* add fill color here */);
circleOptions.strokeColor(/* add stoke color here*/);
circleOptions.strokeWidth(/* stroke width here*/);
Circle circle = this.getMap().addCircle(circleOptions);
You can use this circle object later to remove it from map if you want.

rajankz
- 644
- 1
- 5
- 16