[OpenLayers-Users] Modify feature Before insert from DrawFeature Control

Mark Paxton mark at innaxys.com
Wed Sep 19 05:37:14 PDT 2012


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


More information about the Users mailing list