I have come across those bits before, essentially this is what I want
to work:
Something that works (all info boxes say hello):
google.maps.event.addListener(marker, 'click', function() {
infowindow.setContent('hello');
infowindow.open(map,marker);
});
}
Something that doesn't work (no info boxes):
google.maps.event.addListener(marker, 'click', function() {
infowindow.setContent(beach[4]);
infowindow.open(map,marker);
});
}
Do you see what I am getting at?
On Dec 7, 8:57 pm, Marc Ridey <[email protected]> wrote:
> Does these help:
>
> Multiple Markers with multiple infowindows and
> StreetViewhttp://blog.mridey.com/2010/11/maps-api-javascript-v3-multiple-marker...
>
> Multiple Markers, InfoWindow and StreetView
> <http://blog.mridey.com/2010/11/maps-api-javascript-v3-multiple-marker...>http://blog.mridey.com/2010/11/maps-api-javascript-v3-multiple-marker...
> <http://blog.mridey.com/2010/11/maps-api-javascript-v3-multiple-marker...>
>
> On Wed, Dec 8, 2010 at 7:15 AM, Struggling Cartographer <
>
>
>
>
>
>
>
> [email protected]> wrote:
> > Hi, I am having real trouble adding info windows to my marker array.
>
> > To take the basic example here:
>
> >http://code.google.com/apis/maps/documentation/javascript/examples/ic...
>
> > What would the correct code be if for example I stored the info for
> > the infobox in beach[4] ?
>
> > Thanks in advance
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Maps JavaScript API v3" group.
> > To post to this group, send email to
> > [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<google-maps-js-api-v3%2B
> > [email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-maps-js-api-v3?hl=en.
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.