You need to put the pupUpText in the openInfoWindow() like this:
GEvent.addListener(marker, 'mouseover',
function()
{
marker.openInfoWindow
(pupUpText);
}
);
On Dec 8, 12:30 pm, Willimon <[EMAIL PROTECTED]> wrote:
> I have a simple question that I couldn't find an answer to in the
> archives.
>
> The following is a snippet of my code.
>
> // Create the marker for the map
> var marker = new GMarker(pt, {icon: theIcon, title: id});
>
> // Place the marker on the map
> map.addOverlay(marker);
>
> // Set the information for the InfoWindow of the marker
> popUpText = "<html>" + location + "<br>" + status + "</html>";
> marker.bindInfoWindowHtml(popUpText);
>
> My question is how do I get the text set by bindInfoWindowHtml() to
> display on mouseover instead of click?
>
> I tried the following, but I only get a blank bubble.
>
> GEvent.addListener(marker, 'mouseover',
> function()
> {
> marker.openInfoWindow();
> }
> );
>
> Any help would be greatly appreciated.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---