You can add the feature to the "persistent" layer informed in the constructor.<br>In measureGeometry method, add these lines:<br><br> <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"> this</span></b>.layer.addFeatures([feature]);<br><br>Tell me if it doesn'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 <<a href="mailto:simone.gadenz@jrc.it">simone.gadenz@jrc.it</a>>:<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> </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> </p>
<p>Thanks</p>
<p> </p><font color="#888888">
<p> </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>