Hello
I am using this code to open the popup at some location:
layer.queryFeatures().then((results: any) => {
const features = results.features;
features.forEach((result: any) => {
const oid = result.attributes.OBJECTID;
if (oid == this.selectedWindFarmId) {
view.popup.open({
features:result,
location: result.geometry.centroid,
title:result.attributes.Name,
updateLocationEnabled:true,
shouldFocus: true,
});
view.popup.viewModel.includeDefaultActions = false;
view.popup.viewModel.highlightEnabled=true;
view.zoom=12;
}
});
});
Here I am using shouldFocus also and highlightEnabled also. The popup is opening fine but not highlighting the selected feature. Please help