Wasn't it Rossko who wrote: > >On Feb 6, 4:05 am, bagelxjames <[email protected]> wrote: >> ok I have a map with different color markers and i want the marker >> image iv used for each marker to also appear in a div next to it how >> could i store this image and then pass it to a div ='( > >All depends where you're getting your marker images from, we've no >idea becaus ewe can't see your map.
It should be possible to read the info anyway var image = marker.getIcon().image; then inject that into the sidebar you're creating sidebar_html += '<img src="' +image+ '">'; Should really also read the .iconSize in the same way, and use it to set the height and width attributes if the <img>. Should really also attempt to guess whether the image is a transparent PNG file and if the browser is MSIE6 call the AlphaImageLoader (because MSIE6 doesn't support transparent PNG files natively). -- http://econym.org.uk/gmap The Blackpool Community Church Javascript Team --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
