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: ###
Browser / Operating System:
[e.g. FF3 / MacOSX]
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 12 May 2011 at 6:44
Original issue reported on code.google.com by
davidt...@gmail.com
on 12 May 2011 at 6:44