This is pretty similar to how Uber behaves.
Instead of dragging the map marker (which is not necessarily a good ux), uber allows to drag the map while the pin is fixed in the middle of the screen.
1 thought on “Possibility of fixed marker and draggable map”
Comments are closed.
This is pretty similar to how Uber behaves.
Instead of dragging the map marker (which is not necessarily a good ux), uber allows to drag the map while the pin is fixed in the middle of the screen.
2 thoughts on “Possibility of fixed marker and draggable map”
-
Assuming your MapView is filling whatever view it’s in, you can just put another view with only your marker in the center of it over the MapView. I’m doing this right now by putting the following right after my MapView. Then you can just use the MapView methods to get its current location.
<View pointerEvents="none" style={{position: 'absolute', top: 0, bottom: 0, left: 0, right: 0, alignItems: 'center', justifyContent: 'center', backgroundColor: 'transparent'}}> <Image pointerEvents="none" source={markerImage}/> </View>
Comments are closed.
Assuming your MapView is filling whatever view it’s in, you can just put another view with only your marker in the center of it over the MapView. I’m doing this right now by putting the following right after my MapView. Then you can just use the MapView methods to get its current location.