I have a question regarding the dynamic change of the MapBox map while the Retool application is running. I noticed that MapBox has the ability to run JS Query every time the user, for example, clicks on a point on the map.
Is it possible using JS Query to cause a change in the same map, for example, after clicking, add a new point to the map at coordinates 0, 0?
And also, is it possible to add more events, for example, to create new points on the map when you click on the map?
Thank you, @AnsonHwang! The idea of using a separate variable is great. It is much better to change the variable, rather than add string values to existing GeoJson. Maybe someone else knows about the clicking on the empty space of map.
I have noticed that the Map can react on Hovering. So maybe there is a feature to get a click event not like on a map, but on HTML element of Map, so it will send current coordinates of the mouse to the separate variable.