On Apr 14, 4:18 pm, David K-C <[email protected]> wrote: > > also, I'm not sure how relevant this is, but the markers I've set up > are pulled from a mysql database, via an external php file I call into > the map. Ideally, I'd like to specify the image so that it's relevant > to each marker. Eg marker number 1 calls up a file named image001.jpg, > and so on. > > Thanks in advance to you (or anyone else for that matter!) for any > reply...
If you put a div with an id of "advert" on your page, then the one line of code I supplied will populate it. You can position and style <div id="advert"> any way you want. To tie a particular image to a particular marker, pass the url of the image to your createMarker function so you can use it there, in much the same way as you do with its location and HTML content. You could store that URL within your database. See http://www.acleach.me.uk/gmaps/infowindow-iframe.htm for some ideas. -- 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.
