There was a discussion earlier to determine map center address. But we also need method in the workflow to recenter the map to the thing’s geolocation. if you drag the map away from the center there should a workflow to re-center it
So yeah, apparently I was wrong. The map wasn’t being re-centered based on the “Clear markers” command in my app, it was re-centered because of how I was dynamically using the map’s center address.
The good news is that I figured out how to do it. But, you’ll actually have to use two maps to accomplish it. This is because apparently, if you try to dynamically change the center address of a map, but the value doesn’t change, the map doesn’t reset.
Anyway, here it is:
Run mode: https://forum_app2.bubbleapps.io/version-test/re-center_
You’ll want to change Atlanta, GA to whatever dynamic address you want to center in your app. You can change Columbia, SC to any address. It doesn’t matter. It’s only there to change the value of the hidden map so that it can reset back to default.
While there are apparently ways to work around it, it seems the best method to do something like this would be if we had a “re-center map” function like @AliFarahat suggested.
I think it is a bug. If you reset a repeating group, you get the “default” back. The behavior should be the same, it shoudl return to the initialized state.