Go to http://beta.referenceline.com/ - in Location search for Darlington,
leave all else, click Search.
On the results page, switch to Map View, and then hover over a marker, thus
opening my custom overlay. Try to click the company name and the overlay
will close without the link being followed.
I have this code set for looking for clicks on the map:
GEvent.addListener(map,"click",function() {
closeOverlay();
});
Regards,
Michael Price
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Andrew Leach
Sent: 22 June 2009 16:32
To: Google Maps API
Subject: Re: Clicking on link in infowindow CLOSES infowindow
On Jun 22, 4:21 pm, "Michael Price" <[email protected]>
wrote:
> 'lo all (again),
>
> I have a global click event on the map to close the custom infowindow I
have
> created. Only problem is, if the infowindow contains a link, and you click
> on that link, the infowindow is being closed but the link is NOT followed.
> I'm guessing the map click event is taking precedence over the link click
> event.
That doesn't happen to me, with an ordinary <a> tag in the infoWindow
HTML. Please supply a link with instructions about how to reproduce
the problem.
Andrew
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---