Haha, you always are there trying to put someone else's shoes, really appreciate it
It's really simple in fact:
People share the coords, it can be via nominatum, or using geolocation component via browser.
The problem is that it doesn't actually gives the exact location (usually it's from 200 to 500m away).
So what I want is opening a modal after the coords are given, and displaying a Leaflet map with a draggable marker, so the user can manually adjust that marker to where really is.
Wappler offers two scenarios for this:
Create a draggable marker. But dynamic values are not ready yet so both values are null.
On geo/nominatum success event (coords are given): Create a marker on the map. But there's no option to be draggable.
So, you have a marker that is "about"...
And you want to open the modal with the "about" marker's lat & lon and give him the right to adjust the marker's exact location by draging it to the correct point...
Sorry for repeating the same questions but I'm trying to learn from your workarounf buddy...
So, as I already mentioned, add a marker under the leaflet map and add the "about" marker's data
Yes, correct! That's what I need.
But on your picture, you are using a marker inside the leaflet map with defined lat & long.
I can't give lat and long because there are not really available yet, until the user accept to use the geolocation component.
I can't also define coords and change them.
Because it's not under action panel..
Your case works fine when coords are defined before map is loaded.
In my case, I need to load the map, and in some moment, place a draggable marker there.
The cordinates are not available on page load... That's why it throughs the error I think.
So, don't set lat or lon in our leafmap... Empty
If we run a page flow and set a wait (eg 500) and then set the lat & lon there is no error
But we don't know how much the user will take to accept those coordinates..
The lat & lon are only available when user accept using geolocation component:
User accept geolocation -> open modal with leaflet and a draggable marker.
User don't accept to use geolocation -> don't open modal