<br><font size=2 face="sans-serif">Using OL 2.10, This code in maps.js
has a strange behavior</font>
<br><font size=1 color=blue face="Courier New">for</font><font size=1 face="Courier New">
(</font><font size=1 color=blue face="Courier New">var</font><font size=1 face="Courier New">
i = </font><font size=1 color=blue face="Courier New">this</font><font size=1 face="Courier New">.controls.length
- 1; i>=0; --i) {</font>
<br><font size=1 face="Courier New">         
      this.controls[i].destroy();</font>
<br><font size=1 face="Courier New">         
  }</font>
<br>
<br><font size=2 face="sans-serif">Initially length=26. There is a problem
when destroying controls[24]...it also destroys controls[23].</font>
<br><font size=2 face="sans-serif">So on the next loop, i = length = 23
and controls[23] doesn't exist anymore.</font>
<br>
<br><font size=1 face="Courier New">Why this.controls[i].destroy()</font><font size=2 face="sans-serif">
would also destroy </font><font size=1 face="Courier New">controls[i-1]?</font>
<br><font size=2 face="sans-serif"><br>
In this case control[24] and control[23] are OpenLayers.Control.Measure</font>
<br>
<br><font size=2 face="sans-serif">I've defined 2measure controls (linear
and area)</font>
<br><font size=2 face="sans-serif">var oMeasrPolgnCtrl = new OpenLayers.Control.Measure
( OpenLayers.Handler.Polygon, oMeasrPolgnCtrlOptions );</font>
<br><font size=2 face="sans-serif">var oMeasrPolgnCtrl = new OpenLayers.Control.Measure
( OpenLayers.Handler.Polygon, oMeasrPolgnCtrlOptions );</font>
<p><font size=3>I don't know what to verify anymore...</font>
<p><font size=3>Thans for your help,</font>
<p><font size=3>Steve</font>
<p>