Hi, thanks for getting back to me so quickly!

On 19/09/2012 13:40, Bart van den Eijnden wrote:
> How about using the beforefeatureadded event of OpenLayers.Layer.Vector?
The problem is this is fired when I load data from my HTTP protocol as
well as through DrawFeature.  My workaround-in-progress is to check if
the desired properties are already set or not, but there should be a
nicer way I'm sure!

Mark

> Best regards,
> Bart
>
> -- 
> Bart van den Eijnden
> OpenGeo - http://opengeo.org <http://opengeo.org/>
> Expert service straight from the developers.
>
>
>
> On Sep 19, 2012, at 2:37 PM, Mark Paxton <[email protected]
> <mailto:[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] <mailto:[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