Hi Sir,
I tried your way, in console, i get that exact polygon clicked, but i could not able to remove that graphics from map
with graphicslayer.remove method
Am i missing something??
Do i have to use other function.
view.on("double-click", function(event){
view.hitTest(event).then(function(response) {
var results = response.results;
results.forEach(function(result) {
if(result.graphic.geometry.type==='polygon'&&result.graphic.layer === sketchViewModel.layer && result.graphic.attributes && result.graphic.attributes.newDevelopment){
console.log(result.graphic);
graphicslayer.remove(result.graphic);
}
});
});
});