Hi,
After adding feature using apply edits, the feature layer don’t show the newly created feature. Layer.refresh() don’t refresh the map on the web scene. Is there a way to get the newly added features updated on the webscence.
Thanks,
Divya
Solved! Go to Solution.
Hi ,
I Have added
Hello. Can you tell us what the API version is and post the code?
Hi @GeoGarage-vmbp- ,
api 4.19, After adding the feature the map don't show the newly added feature. please see the code below .
I am newly creating the feature from different layer to the flayer where the feature is added.
try {
await flayer
.applyEdits(parameter)
.then(async function (editsResult) {
if (editsResult.addFeatureResults.length > 0) {
console.log("Added feature to the layer");
clearGeometry();
flayer.refresh();
flayer.load();
}
})
.catch(function (error) {
console.log("Error - Adding feature to the layer");
console.log("[ applyEdits ] FAILURE:", error);
});
} catch (ex) {
console.error(ex);
}
Thanks ,
Divya
Hi ,
I Have added