[expo-maps] add method to change which marker is selected.
L
Lenzi Erickson
iOS and Android
Ability to programmatically select a map marker and clear the current selection.
This is needed to keep a map and a detail drawer or panel in sync. When the drawer is closed, the active marker should be deselected. When the drawer is opened from a link, the selected marker needs to be updated.
Without this, standard map + drawer patterns aren’t possible in typical expo-maps setups.
A
Adrian Jones
Seconded this request for the same reason. I've just migrated from react-native-maps to expo-maps and this functionality would complete the transition for me.
L
Lenzi Erickson
I thought there might be a workaround, but this is still an issue.
There’s no way to clear the selected marker when the drawer is closed, which leaves the map and UI out of sync. The same limitation applies when opening the drawer from a link, since marker selection can’t be controlled.