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
Hi ,
I Have added
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 ,
Hello. Can you tell us what the API version is and post the code?
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.