Hello everyone,
I am having issues adjusting an ESRI example script (see the image below and the link below) in the way, that after the user clicks on one of the census tracts the related feature (census tract) would be highlighted but no popup would be shown.
Popup opens when view.goTo() is called:
view.goTo(result.geometry.extent.expand(2)).then(function() {
view.popup.open({
features: [result],
location: result.geometry.centroid
});
});
ESRI example code: Query features from a FeatureLayerView:
Link: https://developers.arcgis.com/javascript/latest/sample-code/featurelayerview-query/index.html
Thank you in advance.
Pavel