The Esri-Leaflet sample map Editing feature layers shows how the geometry of an ArcGIS Server feature layer can be created in Leaflet, by digitising a new polygon which is inserted into the feature layer.
Is it possible to set the attributes of the newly created feature?
This code inserts the new feature into the feature layer: pedestrianDistricts.addFeature(e.layer.toGeoJSON())
Examining the value of e.layer.toGeoJSON()
in the debugger I can see that there are no properties
(ie attributes) on the editable layer. Is it possible to pass the desired attributes while creating the geometry, during the addFeature
?