-
Notifications
You must be signed in to change notification settings - Fork 16
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
Normalization functions for mask/viewports #680
Normalization functions for mask/viewports #680
Conversation
This pull request has been linked to Shortcut Story #314403: Formula and Histogram widgets (viewport mode) is not displaying data with zoom = 0 --> BQ (check this one). |
import union from '@turf/union'; | ||
import { getType } from '@turf/invariant'; | ||
import { polygon, multiPolygon } from '@turf/helpers'; |
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.
Ok, it sounds like we should add those as peerDependencies in react-core, right?
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.
Don't we have them already?
Pull Request Test Coverage Report for Build 5077682259
💛 - Coveralls |
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.
Overall LGTM, just drop a line into CHANGELOG and manage new deps, and we'll go ahead with it @ragazzojp
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.
👍🏻
Description
Shortcut: https://app.shortcut.com/cartoteam/story/314403/formula-and-histogram-widgets-viewport-mode-is-not-displaying-data-with-zoom-0-bq-check-this-one
This normalizes the spatial filter before sending it to the API for remote calculation