AnsweredAssumed Answered

My graphics layer gets removed after feature.applyedits

Question asked by alex.gole_ELDORADOCOUNTY on Dec 9, 2016
Latest reply on Dec 13, 2016 by alex.gole_ELDORADOCOUNTY

Hi all,

 

Once I apply edits on click event, my graphic layer disappears. Any reason why?

 


\\my graphic layer
var GraphicsBuffer = new GraphicsLayer();
                GraphicsBuffer.id = 'GraphicsBuffer';


$("#createproject").click(function () {
                    $("#partone").hide();
                    $("#parttwo").show();
                    projectarea.setAttributes({ "START_DATE": Date.parse($("#projectstartdate").val()), "FINISH_DATE": "10/09/2016", "Name": $("#projectname").val(), "PROJECT_ID": $("#tesr").val(), "TREE_COUNT": $("#messages").text(), "ACRES": $("#area").text() });
                    console.log(projectarea);
                    featurelayerProject.applyEdits([projectarea], null, null, function () { console.log("Features updated!");}, function (error) { console.log("Features not updated! ", error); });

 

 

I am not getting any errors.

Outcomes