[OpenLayers-Users] Adding costume attributes to features

Phil Scadden p.scadden at gns.cri.nz
Thu Dec 5 12:20:15 PST 2013


> When user creates a new feature in layer, the I should be able to set those
> attributes on those features.

If you have object features from the drawing then you set the value of 
any attribute you like
with
features.attributes.MYATTRIBUTENAME = whatever
before you do the wfs commit. However, you will some kind of UI to fetch 
the values of the attributes from the user and this will depend 
enormously on what sort of JS frameworks you are using (if any).

Notice: This email and any attachments are confidential.
If received in error please destroy and immediately notify us.
Do not copy or disclose the contents.



More information about the Users mailing list