Add a custom icon to embedded google map
I'm adding maps to a website dynamically, fin开发者_C百科ding the lat and lng by using google's geocoding service. I'd like to put a marker on the position returned by the geocoding service, on top of that, I'd like the marker to be a custom image.
You need to use the GIcon class. Please take a look at this:
http://code.google.com/apis/maps/documentation/javascript/v2/overlays.html#Custom_Icons
精彩评论