aytee / google-maps-utility-library-v3

Automatically exported from code.google.com/p/google-maps-utility-library-v3
Apache License 2.0
0 stars 0 forks source link

Idle fires repeatedly in IE8 #86

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have the following code in my map - the initial idleFired is generated when 
the map is initially loaded, and then I set a listener in case of user drags, 
zooms etc.

This works fine in Firefox and Chrome but in IE8 the idle event seems to fire 
immediately it is set in this routine. I have tried clearing listeners (I 
always use addListenerOnce so this should not be needed) but makes no 
difference.

function idleFired()
{
alert("idle fired");
google.maps.event.clearListeners(g_map, "idle");
$('bookmark').innerHTML=''; // no longer accurate
// OK - has anything changed?
n=g_bounds_north;
s=g_bounds_south;
e=g_bounds_east;
w=g_bounds_west;
boundsFromMap();
if ((n!=g_bounds_north) || (s!=g_bounds_south) ||(e!=g_bounds_east) 
||(w!=g_bounds_west))
    {
    getMarkers();
    }
else
    {
    alert("Add idle listener after fired");
    google.maps.event.addListenerOnce(g_map, "idle", idleFired);
    }
}

What steps will reproduce the problem?
1. Always gets triggered for me - I display my map and then move it and in IE 
get the two alerts in a loop, which does not happen in other browsers.
2.
3.

Expected result:
Idle should only fire once when the map is moved

Actual result:
[Describe what actually happened]

Version: Maps v3.3

Browser / Operating System:
IE 8/Windows 7

Additional comments:
[Enter any additional comments about the bug here.]

*********************************************************
Tip: Star this issue (next to title) to receive notifications of status
changes against this issue, also used as a gauge for how many people are
interested in seeing it resolved.
*********************************************************

Original issue reported on code.google.com by davidt...@gmail.com on 11 May 2011 at 3:33

GoogleCodeExporter commented 9 years ago
Issue 87 has been merged into this issue.

Original comment by lu...@google.com on 17 May 2011 at 6:35

GoogleCodeExporter commented 9 years ago
This isn't a issue that is related to any utility library. I suggest you email 
the v3 group instead.

Original comment by lu...@google.com on 17 May 2011 at 6:36