react-native-leaflet icon indicating copy to clipboard operation
react-native-leaflet copied to clipboard

Issue with mapCenterPosition on IOS

Open dokselblackbit opened this issue 1 year ago • 0 comments

I have some problems with mapCenterPosition on IOS. I set default values lat and lng for mapCenterPosition. I'm in Europe, but get view of the map in USA. When I open the app first time, I see USA on the map, because "mapCenterPosition": {"lat": 36.56, "lng": -76.17} by default.

 const [coordinates, setCoordinates] = useState<LatLng>({lat: 53.07672712223532, lng: 8.807126412404715});


<LeafletView
    mapCenterPosition={coordinates}
/>

dokselblackbit avatar Nov 12 '24 21:11 dokselblackbit