You can add the feature to the &quot;persistent&quot; layer informed in the constructor.<br>In measureGeometry method, add these lines:<br><br>&nbsp;&nbsp; <b><span class="code-lang">var</span></b> feature = <b><span class="code-lang">new</span></b> OpenLayers.Feature.Vector(geometry);<br>
<b><span class="code-lang">&nbsp;&nbsp; this</span></b>.layer.addFeatures([feature]);<br><br>Tell me if it doesn&#39;t work, I could provide a working example.<br><br>Regards-<br>Oscar.<br><br><br><br><div class="gmail_quote">2008/7/1 Simone Gadenz &lt;<a href="mailto:simone.gadenz@jrc.it">simone.gadenz@jrc.it</a>&gt;:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">








<div link="blue" vlink="purple" lang="EN-US">

<div>

<p>HEllo!</p>

<p>&nbsp;</p>

<p>I am trying to use the measure tool develped by tschaub. I
know there is a bug reported concerning the persistence of measure objects drawn
but I would ask if some of you guys solved the problem in some way.</p>

<p>&nbsp;</p>

<p>Thanks</p>

<p>&nbsp;</p><font color="#888888">

<p>&nbsp;</p>

<p>Simone</p>

</font></div>

</div>


<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" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
<br></blockquote></div><br>