ok, that seemed to work now, but for the markers which don't have images do you have a suggestion for it to show nothing rather than a red x?
thanks On Nov 29, 9:06 am, rmcguire <[email protected]> wrote: > what do I then put for my image attribute where I have > > { type : TYPE_RELOAD, > zoomMin : ZOOM_MED, > zoomMax : ZOOM_MAX, > lat : 48.146968, > lng : -103.617974, > name : 'Williston, ND' > image : > }, > > On Nov 29, 8:15 am, "[email protected]" <[email protected]> > wrote: > > > > > On Nov 29, 6:41 am, rmcguire <[email protected]> wrote: > > > > on my page atwww.meadowlarkco.com/locations.php... > > > > Could someone tell me a way to add images to my infowindows. The > > > content of the window is based from the name: within each point > > > > ex. > > > > { type : TYPE_RELOAD, > > > zoomMin : ZOOM_MED, > > > zoomMax : ZOOM_MAX, > > > lat : 48.146968, > > > lng : -103.617974, > > > name : 'Williston, ND' > > > > }, > > > > so I would like to add an image which appears next to or below the > > > text 'Williston, ND' > > > You have two options: > > 1. "name" is arbitrary html, add your image into it using html markup > > 2. add an additional property to your markers (i.e. image), use that > > for a url to the image, include the img tag in this line: > > marker.openInfoWindowHtml('<div>' + obj.name + '</div>'); > > > i.e. (untested): > > marker.openInfoWindowHtml('<div>' + obj.name + '<br><img > > src="'+obj.image+'"></div>'); > > > -- Larry > > > > thanks- Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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.
