Skip to content

Register new projections if needed when adding layers#343

Merged
martinRenou merged 4 commits intogeojupyter:mainfrom
gjmooney:projection_proj4_fix
Jan 16, 2025
Merged

Register new projections if needed when adding layers#343
martinRenou merged 4 commits intogeojupyter:mainfrom
gjmooney:projection_proj4_fix

Conversation

@gjmooney
Copy link
Collaborator

@gjmooney gjmooney commented Jan 16, 2025

Description

Fix for #326

This checks that the projection for a new layer is already registered with OpenLayers, and if not it registers the projection using definitions from Proj4List

Checklist

  • PR has a descriptive title and content.
  • PR description contains references to any issues the PR resolves, e.g. Resolves #XXX.
  • PR has one of the labels: documentation, bug, enhancement, feature, maintenance
  • Checks are passing.
    Failing lint checks can be resolved with:
    • pre-commit run --all-files
    • jlpm run lint

📚 Documentation preview: https://jupytergis--343.org.readthedocs.build/en/343/
💡 JupyterLite preview is available from the doc, by clicking on lite badge

@gjmooney gjmooney added the bug Something isn't working label Jan 16, 2025
@github-actions
Copy link
Contributor

Binder 👈 Launch a Binder on branch gjmooney/jupytergis/projection_proj4_fix

@github-actions
Copy link
Contributor

Integration tests report: appsharing.space

Copy link
Member

@martinRenou martinRenou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@martinRenou martinRenou merged commit b42c159 into geojupyter:main Jan 16, 2025
18 checks passed
@gjmooney gjmooney deleted the projection_proj4_fix branch January 16, 2025 12:18
@gjmooney gjmooney restored the projection_proj4_fix branch February 26, 2025 10:23
HaudinFlorence pushed a commit to HaudinFlorence/jupytergis that referenced this pull request Jan 28, 2026
* save

* Wait for layers to be ready and add projections as needed

* Use set to track loading layers

* Better error handling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants