react-native-leaflet
react-native-leaflet copied to clipboard
Issue with mapCenterPosition on IOS
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}
/>