New latlng of the dropped pin in Mapbox?

Hi all,
I am trying to get the lat and lng of a pin location after dragging and dropping, Is this under a new “variable”? How can I get this into a variable? The current latlng are in a selectedMarker variable that is loaded into the map (Made this through the YT tutorials).

Thank you very much.

Hi @WeeeeeWeb :wave:
Have you tried with the On marker drag end trigger workflow available on your Mapbox instance? The event returns the marker + its new coordinates.

1 Like

Hi @jptrinh,
That part I reached so far, but not clear how I can “grab” that value or add to a variable:

image

Should I use a return value or change a certain variable value?

Thank you.

Think I did it :slight_smile: , this is really cool.

image

Thank you so much for the “push” :slight_smile:

1 Like