I'm currently trying to set featureMenuOpen to true for my popup using the following:
const view = new MapView({
container: mapContainer,
map: new WebMap({
portalItem: {
id: '91a05f5984164ecf876b4b2a11711846',
},
}),
});
view.when(() => {
view.popup.featureMenuOpen = true;
});
However, whenever you click on a location, it ends up selecting the first feature and resetting featureMenuOpen to false. Is there something else I need to make that work? Or am I misunderstanding the point of that option?
I have also tried setting the popup.featureMenuOpen property directly in the MapView constructor's properties parameter, but I get the same behavior:
const view = new MapView({
container: mapContainer,
map: new WebMap({
portalItem: {
id: '91a05f5984164ecf876b4b2a11711846',
},
}),
popup: {
featureMenuOpen: true,
},
});
EDIT:
I suppose a workaround would be to set view.popup.autoOpenEnabled to false, watch for click events on the MapView, doing a manual view.popup.fetchFeatures, and then a view.popup.open with its featureMenuOpen property set to true. I'm not sure if setting the featureMenuOpen on the popup directly is supposed to work the way I'm expecting it to.