Long story short, my application is designed to store polygon geometry when uploaded from a shapefile.zip.
Every time a new polygon is uploaded, a new record is added in the Attributes Table for the layer. Ideally, all of these geometries would exist within the row of data that exists at the current OBJECTID being viewed.
let edits = {
geometry: response.data.featureCollection.layers[0].featureSet.features[0].geometry,
attributes: {
recordId: `${recordId}`,
},
};
Layer.applyEdits({
addFeatures: [edits],
});
Obviously, it's going to create a new entry using the "addFeatures" within applyEdits but if I were to use "updateFeatures" and pass in the OBJECTID, would that overwrite the geometries that exist currently?
Thanks in advance! Esri ArcGIS newbie here.