Mahe
Mahe

Reputation: 2737

Drawing tool on google maps in android

I am need of some requirement like, I need to draw a shape on google maps and when the touch is removed, then do some action with the plotted area. Drawing and performing action is secondary. But the question is how could I achieve this?

Is there any predefined drawing tool(something like Location button on google maps) to be used in google maps, or do I need to go with customization? Please suggest, or provide any links. Please don't say that this is not possible.

enter image description here

I have gone through all searches and with the last hope came here for solution.

Please help! Any help will be appreciated!!

Thanks in advance!!

Upvotes: 3

Views: 581

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006819

how could I achieve this?

As G. Blake Meike suggested, put a transparent View atop the map (e.g., using a FrameLayout for Z-axis ordering), and implement your drawing on that View. There are various "fingerpaint" samples around that you could use as the starting point for your drawing logic.

Is there any predefined drawing tool(something like Location button on google maps)

I fail to see what the location button has to do with a drawing tool. Regardless, there is no freehand drawing tool that is part of either the Android SDK or the Play Services Framework.

Upvotes: 2

Related Questions