Hello,
I'm having a little trouble with MapBox and Custom Actions.
I've initialized my map with a custom action, and it's working.
Now I'd like to send data to this map to apply a filter (via a client click).
To return the map, we need to use events, right?
The problem is that the map keeps reinitializing and creates duplicates if I call ctx.triggerActionEvent("returnMap", mapBox);
I tried doing an "if(mapBox) return mapBox;" but that takes the HTML block into account.
What's the solution?
Thanks in advance!
Simon