[OpenLayers-Users] Measure tool
Oscar Fonts
oscar.fonts.lists at gmail.com
Tue Jul 1 13:36:16 EDT 2008
You can add the feature to the "persistent" layer informed in the
constructor.
In measureGeometry method, add these lines:
*var* feature = *new* OpenLayers.Feature.Vector(geometry);
* this*.layer.addFeatures([feature]);
Tell me if it doesn't work, I could provide a working example.
Regards-
Oscar.
2008/7/1 Simone Gadenz <simone.gadenz at jrc.it>:
> HEllo!
>
>
>
> 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.
>
>
>
> Thanks
>
>
>
>
>
> Simone
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080701/0df9c3dc/attachment.html
More information about the Users
mailing list