Hi, guys, I have a claster template.
There is a button in a clasterTemplate "to show objects", when you press it, you can see a list of features right in this template.
Bu I want to change button "to show objects" with my button "To show features in claster" and print to console every attribute of every feature.
How can I get a list of features with their attributes in this claster template? Is it possible?
const toShowFeaturesInClaster = (view) => {
console.log("clasterFeatures", view.popup.// any code here?);
}
view.popup.on("trigger-action", (event)=> {
if(event.action.id === "clasterDetails") {
toShowFeaturesInClaster(view);
}
})