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

Fix lonboard zoom to layer bug #700

Merged
merged 1 commit into from Mar 5, 2024
Merged

Fix lonboard zoom to layer bug #700

merged 1 commit into from Mar 5, 2024

Conversation

giswqs
Copy link
Member

@giswqs giswqs commented Mar 5, 2024

This PR fixes the bug when trying to automatically zoom to the lonboard layer. Map._initial_view_state only accepts EPSG:4326 coordinates. When the GeoDataFrame is in a projection other than EPSG:4326, the map will not render. In this case, we need to convert the centroid coordinates to EPSG:4326.

@giswqs giswqs linked an issue Mar 5, 2024 that may be closed by this pull request
@giswqs giswqs merged commit f89699a into master Mar 5, 2024
12 of 13 checks passed
@giswqs giswqs deleted the lonboard branch March 5, 2024 04:41
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

Successfully merging this pull request may close these issues.

Problem rendering with leafmap.Map() + lonboard
1 participant