| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
I believe that some tests are failing because there's now an extra zoom event on every call to updateFx (for dragMode === 'pan'). I think I need to restrict that call to only happen upon first load. I'll keep looking into it. |
Sorry, something went wrong.
Thanks @camdecoster. My local test branch was not up-to-date. I confirm now it renders with no error. |
Sorry, something went wrong.
|
If you add "projection": { "minscale": 0.5, "maxscale": 2 },
to geo_canadian-cities under "geo" object, the map renders smaller with gd._fullLayout.geo.projection.scale: 0.3013880580354019. @camdecoster Could you please investigate that? |
Sorry, something went wrong.
Here is a codepen displaying the bug. |
Sorry, something went wrong.
|
@archmoj would you be able to test your Codepen with the latest build? |
Sorry, something went wrong.
Hi @camdecoster, |
Sorry, something went wrong.
| 'Sets the minimum zoom level of the map view, relative to', | ||
| '`projection.scale`. A `minscale` of *0.5* (50%) prevents the', | ||
| 'user from zooming out beyond half the base zoom level.', | ||
| 'The default of *0* imposes no lower bound.' |
There was a problem hiding this comment.
Could you edit these docstrings to make it clear what the min and max allowed values are? I suppose minscale can be a value between 0-1 (exclusive) and maxscale can be 1-infinity, but it would be helpful to state that explicitly.
Sorry, something went wrong.
There was a problem hiding this comment.
I updated these descriptions to include those values.
Sorry, something went wrong.
|
Cool that this got merged! Thanks for picking up my commits 🎉 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Description
Add minscale and maxscale attributes to geo plots. These set the min and max scale extents for a plot (how far a user can zoom out/in). This PR supersedes #5192 which will be closed after this is merged.
Changes
Demo Video or Screenshot(s):
Before:
Screencast.From.2025-02-22.11-25-20.mp4After:
Screencast.From.2025-02-22.11-29-21.mp4Testing