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

Use extent instead of center position and zoom #119

Merged
merged 8 commits into from
Sep 6, 2024

Conversation

brichet
Copy link
Collaborator

@brichet brichet commented Sep 3, 2024

This PR use the extent (viewport in latitude/longitude) instead of the center and zoom.

This simplifies computation when using QGIS files, and is available in most of the viewers.

The zoom value is kept (but not computed server side) because it seems to be useful for the filters.

@brichet brichet added the enhancement New feature or request label Sep 3, 2024
Copy link
Contributor

github-actions bot commented Sep 3, 2024

Binder 👈 Launch a Binder on branch brichet/jupytergis/use_viewport

@martinRenou
Copy link
Member

Thanks Nicolas! This requires a rebase now that Greg's switch to Open Layers has been merged

@brichet brichet marked this pull request as ready for review September 6, 2024 14:28
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!

)

from jupytergis_lab.notebook.utils import get_source_layer_names


# Part of this code is copied from https://github.com/felt/qgis-plugin (GPL-2.0 license)
class MapUtils:
Copy link
Member

Choose a reason for hiding this comment

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

cleaning

@martinRenou martinRenou merged commit 21ff340 into geojupyter:main Sep 6, 2024
10 checks passed
@brichet brichet deleted the use_viewport branch September 6, 2024 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants