Ankit Aggarwal
Ankit Aggarwal

Reputation: 787

Google Maps Drawing Tools for Android

I need to make an Android app where the users have an option to draw a polyline on Google Maps and when the touch is removed, then do some action with the plotted polyline. Drawing and performing action is secondary. But the question is how could I achieve this?

Is there any predefined drawing tool (something like http://googlegeodevelopers.blogspot.in/2011/11/make-your-map-interactive-with-shape.html for JavaScript) to be used in google maps, or do I need to go with customization? Please suggest, or provide any links.

And can we extract the points to compare them with the ideal answer which was to be traced?

Upvotes: 0

Views: 1466

Answers (2)

MaciejGórski
MaciejGórski

Reputation: 22232

But the question is how could I achieve this?

With code. ;)

do I need to go with customization?

Yes. You would have to code all the functionality yourself. AFAIK there is no library that does that and of course Google Maps Android API v2 doesn't (and most probably won't) provide such functionality because it is too specific. I still think this would make a pretty useful library.

And can we extract the points to compare them with the ideal answer which was to be traced?

Yes. That would be simple after you are done with everything else.

Polyline polyline = ...
List<LatLng> extractedPoints = polyline.getPoints();

Upvotes: 3

M.J
M.J

Reputation: 586

Simply use google maps api Google map API v2
following link might help you with the code.
code reference

Upvotes: 0

Related Questions