The map application I'm currently designing allows users to create features on one or more vector layers. What I'd like to know is if it is possible to set default feature properties at the layer level so that any features created on the layer automatically have those properties/attributes.
For example if I setup a vector layer called 'House_Residential' when a user creates a feature on it it automatically has an attribute/value of 'house:residential'.
At the moment the only solution I can think of is to capture when the feature is added to the layer and give it a property/attribute at that point, not sure if this is the best way though.