how to close InfoWindow when using FusionTableMouseEvent

14 views
Skip to first unread message

Sandeep

unread,
Oct 13, 2011, 8:32:57 PM10/13/11
to google-map...@googlegroups.com
I am using fusion table and then FusionTableMouseEvent to set the InfoWindowHtml. How do I close this infowindow when user clicks outside of the infowindow?

Thanks,
Sandeep

geoco...@gmail.com

unread,
Oct 13, 2011, 9:29:07 PM10/13/11
to Google Maps JavaScript API v3
I usually add a listener to the map and close the infowindow in that
listener.

-- Larry

>
> Thanks,
> Sandeep

Sandeep

unread,
Oct 13, 2011, 9:58:42 PM10/13/11
to google-map...@googlegroups.com
I have:
1) google.maps.event.addListener(layer, 'click', function(event) {
addInfo(event);
});
and 2) inside addInfo(event) I do
event.infoWindowHtml

So where do I close it? How? Can you show me some sample code please?

Thanks,
Sandeep

geoco...@gmail.com

unread,
Oct 13, 2011, 10:50:04 PM10/13/11
to Google Maps JavaScript API v3
On Oct 13, 6:58 pm, Sandeep <sdi...@ohioedge.com> wrote:
> I have:
> 1) google.maps.event.addListener(layer, 'click', function(event) {
> addInfo(event);});
>
> and 2) inside addInfo(event) I do
> event.infoWindowHtml
>
> So where do I close it? How?

Post a link to your map that shows the problem please. There is not
enough context in your snippets.

> Can you show me some sample code please?

Lots of examples at:
http://www.geocodezip.com

-- Larry

>
> Thanks,
> Sandeep

geoco...@gmail.com

unread,
Oct 13, 2011, 11:03:42 PM10/13/11
to Google Maps JavaScript API v3
On Oct 13, 7:50 pm, "geocode...@gmail.com" <geocode...@gmail.com>
wrote:
This one demonstrates the principle:
http://www.geocodezip.com/v3_MW_example_map1.html
(but doesn't use FusionTables)

Here is one that does:
http://www.geocodezip.com/www_satpacktravel_com_api_v5b.html

-- Larry


>
> > Thanks,
> > Sandeep

Sandeep

unread,
Oct 14, 2011, 8:44:33 AM10/14/11
to google-map...@googlegroups.com
I got it! 

Thank you,
Sandeep
Reply all
Reply to author
Forward
0 new messages