Issue
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
Solution
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!
Answered By - crocboy
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.