1

How can i draw an area, like a circle or a polygon on the mapview with drag on the screen??, i searched for this question and found solutions only to draw lines between projections, but not this.

Moreover i must be able to get the area details after user done with drawing the area, like:

zoom level, center point lat and lng, radius/area

Archie.bpgc
  • 23,812
  • 38
  • 150
  • 226

1 Answers1

0

It sounds like you'll need to Override dispatchTouchEvent(). MapView's don't have onTouchListener(), so by using dispatchTouchEvent() you can intercept touches on the mapView, and then use those touches to draw a circle on the map.

As for the zoom level, use mapView.getZoomLevel() and for center use mapView.getMapCenter(). Good luck!

crocboy
  • 414
  • 1
  • 6
  • 14