Are you using the geolocator (https://appstore.home.mendix.com/link/app/1380/) ?
In that case you can use the on change microflow:
Thanks Jcob for your quick response,
I am using Google Map module, so could you please help me how to change the default marker with onclick after i open the Google Map and pick the Marker location details.