Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with mapCenterPosition on IOS #52

Open
dokselblackbit opened this issue Nov 12, 2024 · 0 comments
Open

Issue with mapCenterPosition on IOS #52

dokselblackbit opened this issue Nov 12, 2024 · 0 comments

Comments

@dokselblackbit
Copy link

dokselblackbit commented Nov 12, 2024

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}
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant