http://maps.googleapis.com/maps/api/staticmap?center=Brooklyn+Bridge,New+York,NY&zoom=13&size=600x300&maptype=roadmap &markers=color:blue%7Clabel:S%7C40.702147,-74.015794&markers=color:green%7Clabel:G%7C40.711614,-74.012318 &markers=color:red%7Clabel:C%7C40.718217,-73.998284
The following code, I believe is about as simple as it gets. Try it
and see what happens.
This gets the pins. To fix the map so you can get information from a Static Map you have to do lots of things... what you are trying to do when you 'touch' a
specific pin is not easy to accomplish without lots of Blocks.
... I do it by plotting the map to a Canvas (instead of to an image), noting the coordinates of the Google Map corners, converting the map coordinates to the screen
coordinates, using Canvas.Touch to find out the coordinates of the pin I want, then post a message based on what pin was selected. THAT is the simplified explanation.
You can also make a map that you can retrieve information about the pinned location using Google's Fusion Table maps. Perhaps this may be easier for some developers.
YYou can get something like this:
How is at https://support.google.com/fusiontables/answer/1244603?hl=en ..... and then transform what is described there to blocks
and you have a very exciting interactive map.
You can work with a static map offline (without WIFI or a network connection) but the Fusion table solution requires an active WIFI or network to access the Internet.
To use a static map offline, you initially need to grab it from Google or another source, then save it as an image for retrieval when the Android is offline. Also,
you do NOT need a google map to work with pins. If you have a flat map image of the area you are interested in AND know the coordinates of the map edges, you can
map on this 'surface' with the pins too.
Alternatively you can create the map directly using Windows access to creation of the table, make the table using your PC ....really MUCH easier than messing around
with Android and Fusion tables. Once the map is made, you only need a WebViewer and a url to the Fusion table map for users to get displays similar to the above.
Lots of coding, anyway you do it.
Good luck.
Regards,
Steve