Android Question How to use Google Map Markers from http://maps.gstatic.com/mapfiles/markers2

Anser

Well-Known Member
Licensed User
Longtime User
Hi,

There are many customized markers available at the following links

http://maps.gstatic.com/mapfiles/markers2/marker_greenA.png
http://maps.gstatic.com/mapfiles/markers2/marker_greenB.png

ie for all the English alphabets a PNG file is available.

How can I use it directly via gmap.AddMarker ?
gmap.AddMarker3 expects the parameter as a bitmap and not a URL string

I know that I can keep all the images/markers in my asset folder and then use it, I am looking for an alternative solution so that I don't need to keep the marker files in my asset folder and that I can directly use the URL.

Any help will be appreciated.
 

DonManfred

Expert
Licensed User
Longtime User
gmap.AddMarker3 expects the parameter as a bitmap and not a URL string
Download the Images and Create Bitmaps for the downloaded files which you then can use in gmap.AddMarker3

and that I can directly use the URL
I don´t know if there is any method for this. I guess no.
 
Upvote 0

Anser

Well-Known Member
Licensed User
Longtime User
Download the Images and Create Bitmaps for the downloaded files which you then can use in gmap.AddMarker3
Yes. That's what I do right now. I thought that there may be a way to use the URL directly, which I may not be aware of
 
Upvote 0
Top