Map select one location

I have a need for a user to be able to specify a location on a map but just a single location.
I can set the Create new marker option, but this creates a new marker for every tap on the map.

Ideally, I’d like to allow a user to pick (click) a single location/marker, and if they choose a new location to re-use that marker. Any advice on how to proceed?

@patdavid when you enable create marker, you can set the onMarkerCreated event to store the value of the marker that was created as {{storeValue('loc',Map1.selectedMarker)}}
and then in the default markers, you can make it read this value to ensure that it always only has the last marker that was created

[
  {{appsmith.store.loc}}
]
2 Likes

Fantastic, works great! Thank you so much @Nikhil. :smiley: