data: {
lon: location.lon,
lat: location.lat,
- text: $(form.comment).val()
+ text: $(form.text).val()
},
success: function (data) {
map.noteSelector.unselect(feature);
- feature.attributes.status = "open";
- feature.attributes.id = data;
+ feature.attributes = data.properties;
map.noteLayer.drawFeature(feature);