Skip to content

Adding manual buttons for zoom-in or zoom-out#1055

Merged
mfisher87 merged 8 commits intogeojupyter:mainfrom
nakul-py:buttons-zoom
Jan 19, 2026
Merged

Adding manual buttons for zoom-in or zoom-out#1055
mfisher87 merged 8 commits intogeojupyter:mainfrom
nakul-py:buttons-zoom

Conversation

@nakul-py
Copy link
Collaborator

@nakul-py nakul-py commented Jan 4, 2026

Description

Adding manual buttons for zoom-in or zoom-out as discussed in #939

Screencast.From.2026-01-04.14-48-45.mp4

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--1055.org.readthedocs.build/en/1055/
💡 JupyterLite preview: https://jupytergis--1055.org.readthedocs.build/en/1055/lite

@github-actions
Copy link
Contributor

github-actions bot commented Jan 4, 2026

Binder 👈 Launch a Binder on branch nakul-py/jupytergis/buttons-zoom

@github-actions
Copy link
Contributor

github-actions bot commented Jan 4, 2026

Integration tests report: appsharing.space

@nakul-py
Copy link
Collaborator Author

nakul-py commented Jan 7, 2026

@mfisher87 Tests are failing due to unmatched snapshots. Can you give a try to update them.

@mfisher87
Copy link
Member

mfisher87 commented Jan 9, 2026

Nakul and I were chatting about this and we agree there should be a setting to show/hide these zoom buttons. Where we disagree is:

  • I feel the buttons should be hidden by default. Because most users are familiar with scroll-to-zoom on map apps, so the added UI clutter isn't buying us much.
  • Nakul feels they should be shown by default (please add your reasoning @nakul-py !)

@martinRenou @arjxn-py @gjmooney what do you think: Should the zoom in/out buttons be shown or hidden by default?

EDIT: We made them hidden by default!

@nakul-py nakul-py added the enhancement New feature or request label Jan 13, 2026
@mfisher87
Copy link
Member

mfisher87 commented Jan 16, 2026

We discovered a pre-existing bug while working on this: #1081

@nakul-py nakul-py requested a review from mfisher87 January 16, 2026 16:54
mfisher87 and others added 3 commits January 16, 2026 09:56
We think of this setting as "opt-in", so it makes sense for the box to
initially be not checked. We want the default to be for the buttons to
be hidden, so we need to change the setting from "disable" to "enable"
to meet those conditions!

Co-authored-by: Nakul Verma <173621577+nakul-py@users.noreply.github.com>
Copy link
Member

@mfisher87 mfisher87 left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks Nakul.

@mfisher87 mfisher87 merged commit 6c771a1 into geojupyter:main Jan 19, 2026
15 checks passed
HaudinFlorence pushed a commit to HaudinFlorence/jupytergis that referenced this pull request Jan 28, 2026
* adding manual buttons for zoom-in or zoom-out

* add setting for disable/enable zoom buttons

* moving buttons to bottom right

* Change framing of setting to "enable", update default to `false`

We think of this setting as "opt-in", so it makes sense for the box to
initially be not checked. We want the default to be for the buttons to
be hidden, so we need to change the setting from "disable" to "enable"
to meet those conditions!

Co-authored-by: Nakul Verma <173621577+nakul-py@users.noreply.github.com>

* Adding icon for Jupytergis setting (geojupyter#1082)

---------

Co-authored-by: Matt Fisher <mfisher87@gmail.com>
Co-authored-by: Nakul Verma <173621577+nakul-py@users.noreply.github.com>
@nakul-py nakul-py deleted the buttons-zoom branch February 12, 2026 13:21
gjmooney pushed a commit to gjmooney/jupytergis that referenced this pull request Feb 18, 2026
* adding manual buttons for zoom-in or zoom-out

* add setting for disable/enable zoom buttons

* moving buttons to bottom right

* Change framing of setting to "enable", update default to `false`

We think of this setting as "opt-in", so it makes sense for the box to
initially be not checked. We want the default to be for the buttons to
be hidden, so we need to change the setting from "disable" to "enable"
to meet those conditions!

Co-authored-by: Nakul Verma <173621577+nakul-py@users.noreply.github.com>

* Adding icon for Jupytergis setting (geojupyter#1082)

---------

Co-authored-by: Matt Fisher <mfisher87@gmail.com>
Co-authored-by: Nakul Verma <173621577+nakul-py@users.noreply.github.com>
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