Linda, Your code is weong. You need a WHILE, not a FOR<br><br>Your List: 0, 30, 45, 45, 45, 45, 30<br><br>An example of iteration in your list:<br><br>i=0, List[i]=0 <- don't do anithig<br>Your List: 0, 30, 45, 45, 45, 45, 30<br>
<br>i=1, List[i]=30 <- don't do anithig<br>
Your List: 0, 30, 45, 45, 45, 45, 30<br>
<br>i=2, List[i]=45 <- <span style="font-weight: bold;">delete</span><br>
Your List: 0, 30, 45, 45, 45, 30<br>
<br>i=3, List[i]=45 <- <span style="font-weight: bold;">delete</span><br>
Your List: 0, 30, 45, 45, 45, 30<br>
<br>i=4, List[i]=45 <- <span style="font-weight: bold;">delete</span><br>
Your List: 0, 30, 45, 45, 30<br>
<br>i=5, <- end, out of list<br>Total: 3 deletes.<br>
<br>Use a while and an i variable<br>i++ when nothing happens<br>i no change when delete<br><br><div><span class="gmail_quote">2008/3/16, Eric Lemoine <<a href="mailto:eric.c2c@gmail.com">eric.c2c@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Sun, Mar 16, 2008 at 6:26 PM, Linda Rawson <<a href="mailto:linda.rawson@gmail.com">linda.rawson@gmail.com</a>> wrote:<br> > I have to cycle through the marker layer again and again until all the<br> > markers are gone. What a performance hit!<br>
<br> <br>What wouldn't you follow Huub's recommandation?<br> --<br> <br>Eric<br> <br>_______________________________________________<br> Users mailing list<br> <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a><br> </blockquote></div><br>