Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2k
feat: Add min/max scale limits for geo plots#7371
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
c7b5ec3 to29b4316Comparecamdecoster commentedFeb 22, 2025
I believe that some tests are failing because there's now an extra zoom event on every call to |
camdecoster commentedJul 25, 2025
| maxscale:{ | ||
| valType:'number', | ||
| min:0, | ||
| dflt:-1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Let's try settingdflt: 0 in the API and handle the case of zero instead of -1.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
We representInfinity with -1 sinceInfinity isn't valid in JSON. If we made this change, how would we handle when a user wants to useInfinity instead of 0 (which is also a valid value).
archmoj commentedJul 25, 2025
Opening @camdecoster do you get the same? |
camdecoster commentedJul 25, 2025
@archmoj that should be fixed by some recent commits. Are you on the latest version of the branch? I'm not seeing that error. |
archmoj commentedJul 25, 2025
Thanks@camdecoster. My local test branch was not up-to-date. I confirm now it renders with no error. |
archmoj commentedJul 25, 2025
If you add to @camdecoster Could you please investigate that? |
archmoj commentedJul 25, 2025
Here is acodepen displaying the bug. |
Uh oh!
There was an error while loading.Please reload this page.
Description
Add
minscaleandmaxscaleattributes 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
minscaleandmaxscaleattributes to geo plots. Defaults are 0 and -1, respectively.Demo Video or Screenshot(s):
Before:
Screencast.From.2025-02-22.11-25-20.mp4
After:
Screencast.From.2025-02-22.11-29-21.mp4
Testing
npm start"geo"key"minscale": 2"maxscale": 4