I have a map with 1500 markers.  When I use MarkerManager to limit the
number of markers I see to only the ones in the viewport, then
sometimes between zoom levels it is unloading too many markers for
Internet Explorer to handle.  It gives me the pop up that says "A
script on this page is causing your web browser to run slowly..".

The same problem can be seen by loading 1500 markers on a map then
using a loop to remove them like this:

for (var i=0;i<markers.length;i++) {
map.removeOverlay(markers[i]);
}

>From what I understand the error comes up when the script engine has
processed 5 million lines.  If thats the case then this one line:

map.removeOverlay(marker[i])

would be taking over 1000 lines to accomplish.  Can someone explain to
me why this is and is there a known limit to the number of markers you
can remove at one time without hitting this IE limit?

Once I click  "No" to the slow script error which is asking me if I
want to stop it, then the script finishes in a second or 2.  I don't
want this pop up and I do not want to modify the registry to increase
IE's limit on lines to process before getting the error.

Thank you

--

You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.


Reply via email to