My favorites | Sign in
Project Logo
             
New issue | Search
for
| Advanced search | Search tips
Issue 737: Bug: Opening InfoWindow on Second Map in a Page Splays Info WIndow All Over Map
10 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Jan 2009
Type-Defect
ApiType-Javascript
Internal-1411357
Introduced-2.129
Regression-Yes
Fixed-2.138


Sign in to add a comment
 
Reported by l...@accountantwebsmiths.co.uk, Sep 30, 2008
What steps will reproduce the problem? Please provide a link to a
demonstration page if at all possible, or attach code.
1. http://www.ampassociates.co.uk/get_in_touch/
2. http://www.turnerwarran.co.uk/contact/


What operating system and browser are you using?
Windows XP - tested in Firefox 2 and IE7


*********************************************************
For developers viewing this issue: please click the 'star' icon to be
notified of future changes, and to let us know how many of you are
interested in seeing it resolved.
*********************************************************
 

Comment 1 by pamela.fox, Sep 30, 2008
Isn't this the same as the last issue? Please create standalone demos of this problem 
, it's not easy to sort through all the code on your pages. Thanks!
Comment 2 by l...@accountantwebsmiths.co.uk, Oct 01, 2008
Certainly, 

Here is the page with one map - working
http://demo1.accountantwebsmiths.co.uk/maptest.php

Using the same code and creating new js vars for the second map the first one fail
http://demo1.accountantwebsmiths.co.uk/maptest2.php

Making sure - using same code again with new js vars for a third map the first and
second one fail
http://demo1.accountantwebsmiths.co.uk/maptest3.php

It use to work fine until last week - we had pages with 2 or 3 maps on them with no
problems :)
Comment 3 by l...@accountantwebsmiths.co.uk, Oct 01, 2008
Sorry not sure what you meant by your first question being the same as last issue?
Comment 4 by goo...@econym.demon.co.uk, Oct 02, 2008
Here's a minimal demonstrator:

    http://econym.org.uk/gmap/issues/issue737.htm

Notes: 

The problem only occurs in v2.129a onwards.

The problem goes away if you allow time for the infowindow code module to load before
opening the infowindow in the second map.

Comment 5 by pamela.fox, Oct 03, 2008
Thanks, Mike.
Summary: Bug: Opening InfoWindow on Second Map in a Page Splays Info WIndow All Over Map
Status: Accepted
Labels: Internal-1411357 Introduced-2.129
Comment 6 by ChristopherJohnBarlow, Oct 30, 2008
Are there any workarounds for this problem? Can anyone help? 
Comment 7 by pamela.fox, Oct 30, 2008
Specify 2.128e instead of 2 in your script tag.
Comment 8 by craigford, Nov 03, 2008
Just wanted to say thanks to everyone for posting their comments on this. I was 
getting the same error and going mad trying to solve it. Such a relief to see others 
with the issue....ahh I can sleep sound tonight with out this in my head :-) 

I've specified v2.128e and that's fixed it for now. 

Many, many thanks you helpful people!
Comment 9 by ChristopherJohnBarlow, Nov 07, 2008
Ditto - the change to 2.128e works great in overcoming this problem. THANKS for the
advice.
Comment 10 by pamela.fox, Nov 16, 2008
(No comment was entered for this change.)
Labels: Regression-True
Comment 11 by pamela.fox, Nov 16, 2008
(No comment was entered for this change.)
Labels: -Regression-True Regression-Yes
Comment 12 by d...@mmmg.ca, Nov 17, 2008
Can someone help define how to specify the 2.128e in the script tag?
Comment 13 by pamela.fox, Nov 17, 2008
Change v=2 to v=2.128e
Comment 14 by ChristopherJohnBarlow, Nov 17, 2008
>Can someone help define how to specify the 2.128e in the script tag?

You probably have a Javascript include line like the following - you can see the
changed version number in it:

<script src="http://maps.google.com/maps?file=api&amp;v=2.128e&amp;key=*****  
type="text/javascript"></script>
Comment 15 by zoomzoom83, Nov 18, 2008
I just encountered this problem and found a workaround - use setTimeout() to stagger
the execution of showInfoWindow so that they are called 500 ms apart. 

It's somewhat of a hack, but might come in handy for someone that doesn't want to use
bleeding edge code. 
Comment 16 by cristiano.verondini, Nov 19, 2008
Some time ago I did experiment with the delay function but found it too much inconsistent between browser and 
hardware models. It can just alleviate.
Comment 17 by ChristopherJohnBarlow, Nov 20, 2008
I read that this should work, too. I experimented with setTimout() but couldnt get it
to work for me. I have multiple instances of a map per page (up to 8 in one case),
and it wasnt clear that setTimout() worked for multiple events - at least, I didnt
pursue it any further. 
Comment 18 by zoomzoom83, Nov 20, 2008
I made a separate setTimeout call for each map with a 500ms delay. 

i.e. 

setTimeout( function(){map1.showInfoWindow("Test1");}, 500 );
setTimeout( function(){map2.showInfoWindow("Test2");}, 1000 );
setTimeout( function(){map3.showInfoWindow("Test3");}, 1500 );

I found this worked about 95% of the time, but sometimes still triggered the error. I
ended up ditching this solution and am just using 2.128e for the time being.
Comment 19 by pamela.fox, Jan 08, 2009
(No comment was entered for this change.)
Status: FixedNotReleased
Comment 20 by pamela.fox, Jan 12, 2009
(No comment was entered for this change.)
Status: Fixed
Labels: Fixed-2.138
Sign in to add a comment

Hosted by Google Code