Hi. I suppose you have a measure listener registered on the measure control. The object passed to this listener includes a "geometry" property referencing the drawn geometry. So, in addition to displaying your measure result, you can have your listener create a feature from the geometry and add that feature to a vector layer. Hope this helps,
Eric 2008/12/2, Vidal, Antoni <[EMAIL PROTECTED]>: > Hello, > > > > The Measure example i OL 2.7 only add a geometry on the map. If you draw a > line and then you draw another line or a polygon, the first geometry is > deleted. I would like to change this behavior and to maintain geometries > drawn by user. > > > > Any example or idea will be thankful. > > > > Thank's in advance > > > > Antoni Vidal > > Institut Cartogràfic de Catalunya Tel: +34-93 567 1500 Ext. 3228 > > Parc de Montjuïc Fax: +34-93 567 1567 > > 08038 Barcelona http://www.icc.cat > <http://www.icc.cat/> > > Spain > > > > _______________________________________________ Dev mailing list Dev@openlayers.org http://openlayers.org/mailman/listinfo/dev