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

[Feat] [pydeck] Prevent unintended zooming with Carto base map #9373

Open
bijanvakili opened this issue Jan 21, 2025 · 0 comments
Open

[Feat] [pydeck] Prevent unintended zooming with Carto base map #9373

bijanvakili opened this issue Jan 21, 2025 · 0 comments
Labels

Comments

@bijanvakili
Copy link

bijanvakili commented Jan 21, 2025

Target Use Case

If using the default Carto base map in pydeck , it will enable zooming with the mouse wheel by default. This often leads to unintended results (typically mouse wheel 'capture') when python notebook users are already using the mouse wheel to scroll cells. As such, users experience a clunky UX where they have to move and click the mouse to areas outside of the deck.gl output just to regain control of their notebook. This is also often the case when using pydeck 3D rendering.

You can see this unintended capture behavior in the linked video below of a Colab notebook containing both the GeoJsonLayer TripsLayer gallery examples:

issue_9373_compressed.mov

This is actually a limitation of pydeck.View class which only allows the controller parameter to be a boolean.

Proposal

The View controller kwarg could be extended to also specify a class (or python dictionary) that allows for all the available deck.gl Controller options including scrollZoom, doubleClickZoom and touchZoom. The user can then be empowered to specify their desired zoom behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant