1 thought on “Possibility of fixed marker and draggable map

  1. 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.

2 thoughts on “Possibility of fixed marker and draggable map

  1. 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.