Currently only one popsup, Can possible to add multiple popups?
const query = featureLayerView.layer.createQuery();
query.returnGeometry = true;
query.outFields = ["*"];
query.geometry = buffer;
return featureLayerView
.queryFeatures(query)
.then(function (results) {
results.features.forEach((item, index) => {
mapView.popup.open({
features: [item],
location: item.geometry.centroid
});
});
})
.catch(function (error) {
console.log(error);
});
No, but you can use multiple Feature widgets to display data for multiple features.
https://developers.arcgis.com/javascript/latest/sample-code/widgets-feature/