[OpenLayers-Users] Re-write featureadded function

Vidal, Antoni antoni.vidal at icc.cat
Thu Jul 29 06:50:43 EDT 2010


Hi list,

 

When OpenLayers.Control.Measure finish to draw a feature, I added to
vectorLayer to avoid to lost it if user draw another one measure. It
happens that last feature appears over the map "strong" because there
are two identical features, one drawned by measure control, and the
seccond drawned when is added to the vectorLayer. I supose that I can
call featureadded event to remove feature added from measure control and
get only the feature added to vectorLayer.

 

Is featureadded the place where to put the code? If yes, how can I
overwrite this function?

 

Thank's in advance.

 

Antoni Vidal

Unitat d'Aplicacions SIG-WEB
Ext. 3228

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100729/9a858e43/attachment.html


More information about the Users mailing list