Placing Custom Images Instead of Default Google Map Markers
This is probably a silly question, but I am havin开发者_JAVA百科g a hard time finding good resources for this just by googling.
I have 3 different markers that I'd simply like to look different. Is there a good and simple tutorial for this? or could someone just paste some code to do that? I imagine its a one-liner kind of thing.
Thanks, Alex
When you create your Marker, set the icon
and shadow
properties of the MarkerOptions to the images of your choice. There are lots of examples, this one might get you started.
精彩评论