Hi,I'm trying to do cluster point popup with my own actions, I took an example from https://www.esri.com/arcgis-blog/products/js-api-arcgis/mapping/summarize-and-explore-point-clusters-in-web-apps/sample code - https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=featurereduction-cluster-query
and its works fine, but, I want to do my own browse feature action,it appears to make 2 buttons/actions of the browse feature, how do i cancel the default browse feature, or how to discard the cluster summery from the results?
thank you.
Hi,
If you set popupTemplate.overwriteActions = true, it will overwrite the browse features and zoomTo actions in the cluster popup.
To remove the cluster summary popup, you can set the popup.features property to only the clustered features once they're queried.
query.aggregateIds = [ clusterGraphic.getObjectId() ]; const { features } = await layerView.queryFeatures(query); view.popup.features = features;
Thank you!
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.