[Google Maps API v3] Re: Auto close InfoWindow when another marker is pressed, or they move?

2018-10-25 Thread Pascaru Sergiu
> > its works for me very very fine, i spent 2 hours to find the correct > answer. > Thx a lot ;-) -- You received this message because you are subscribed to the Google Groups "[deprecated] Google Maps JavaScript API v3. Please use the latest post." group. To unsubscribe from this group and

[Google Maps API v3] Re: Auto close InfoWindow when another marker is pressed, or they move?

2018-08-29 Thread Trang Đinh Văn
It works, thanks Gary B -- You received this message because you are subscribed to the Google Groups "[deprecated] Google Maps JavaScript API v3. Please use the latest post." group. To unsubscribe from this group and stop receiving emails from it, send an email to

[Google Maps API v3] Re: Auto close InfoWindow when another marker is pressed, or they move?

2018-06-21 Thread mohammad . wais
if (typeof(currentInfoWindow) != 'undefined') { currentInfoWindow.close(); } infowindow.open(map, marker); currentInfoWindow = infowindow; use typeof() function -- You received this message because you are

[Google Maps API v3] Re: Auto close InfoWindow when another marker is pressed, or they move?

2018-04-18 Thread rahul mishra
Can you give me example how you solved the problem ? On Tuesday, April 3, 2018 at 5:13:05 AM UTC+5:30, Mike Saeger wrote: > > I've looked all over the net and this solution was the easiest for me to > implement -- AND IT WORKED! Thanks! > > On Monday, June 20, 2011 at 7:27:38 AM UTC-7, Gary B

[Google Maps API v3] Re: Auto close InfoWindow when another marker is pressed, or they move?

2018-04-02 Thread Mike Saeger
I've looked all over the net and this solution was the easiest for me to implement -- AND IT WORKED! Thanks! On Monday, June 20, 2011 at 7:27:38 AM UTC-7, Gary B wrote: > > I've done something similar to keep just one infoWindow open. > I initialize a var like this > var currentInfoWindow =

[Google Maps API v3] Re: Auto close InfoWindow when another marker is pressed, or they move?

2011-06-20 Thread Gary B
I've done something similar to keep just one infoWindow open. I initialize a var like this var currentInfoWindow = null; then on every marker click event I do something like this: var infowindow = new google.maps.InfoWindow({ content: your content here });

Re: [Google Maps API v3] Re: Auto close InfoWindow when another marker is pressed, or they move?

2011-06-19 Thread Andy Newby
Thanks, will give that a go :) On Sat, Jun 18, 2011 at 4:24 PM, geocode...@gmail.com geocode...@gmail.comwrote: On Jun 18, 8:02 am, Andy Newby andy.ne...@gmail.com wrote: Hi, I've almost finished converting our map from the v2 API to v3: http://www.chambresdhotesfrancedev.com/Europe/

[Google Maps API v3] Re: Auto close InfoWindow when another marker is pressed, or they move?

2011-06-18 Thread geocode...@gmail.com
On Jun 18, 8:02 am, Andy Newby andy.ne...@gmail.com wrote: Hi, I've almost finished converting our map from the v2 API to v3: http://www.chambresdhotesfrancedev.com/Europe/ I have 1 last thing I need to do, which I can't seem to work out. When you click on an info window at the moment, it