I wasn't sure where/how to add the class.
An infoWindow is declared before any markers are generated::
var infoWindow = new google.maps.InfoWindow;
Then after each marker is generated it is binded to an infoWindow::
function bindInfoWindow(marker, map, infoWindow, html) {
google.maps.event.addListener(marker, 'click', function() {
infoWindow.setContent(html);
infoWindow.open(map, marker);
});
}
Is there a line I can write in there to give a class name to the
infoWindow?
Mark
On Aug 15, 3:13 am, "[email protected]" <[email protected]>
wrote:
> On Aug 13, 3:45 pm, Mark <[email protected]> wrote:
>
> > Hey guys,
>
> > I'm using the technique shown in this example below to generate
> > markers from a mysql
> > database:http://code.google.com/apis/maps/articles/phpsqlajax_v3.html
>
> > How would it be possible for me to add a class attribute to all
> > infowindows? (For example, just class="infoWindow" would be good.)
>
> Have you tried just doing that? I don't see why it wouldn't just
> work.
>
> What problems did you run into?
> Where is your map the exhibits them?
>
> -- Larry
>
>
>
> > Thanks
> > Mark
--
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.