How about using the beforefeatureadded event of OpenLayers.Layer.Vector?

Best regards,
Bart

-- 
Bart van den Eijnden
OpenGeo - http://opengeo.org
Expert service straight from the developers.



On Sep 19, 2012, at 2:37 PM, Mark Paxton <[email protected]> wrote:

> Hello,
> 
> Please may I ask some advice on the following:
> 
> I would like to set properties on a feature when inserted from a
> DrawFeature control. At the moment I use the 'featureAdded' event on
> Control.DrawFeature, however the 'beforeFeatureAdded' event should be
> what I need as I am setting properties for the style, etc.  How can I
> achieve this without havingt o create a new layer?
> 
> Thanks
> Mark
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/openlayers-users

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to