-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
Refactoring deckgl #4293
Refactoring deckgl #4293
Conversation
@@ -13,7 +12,6 @@ const layerGenerators = { | |||
deck_screengrid, | |||
deck_path, | |||
deck_hex, | |||
deck_scatter, |
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.
removing this here may break the deck_multi
charts that combine deck_scatter
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.
I think this may break deck_multi
, but otherwise it's the right general idea.
Looking at it now I'm thinking we may be able to keep the layers/
folder intact, and simply get rid of the the factory.jsx
in favor of individual visualization function for each type.
Cool, will do. Thanks! |
[VIZ_TYPES.deck_geojson]: deckglFactory, | ||
[VIZ_TYPES.deck_arc]: deckglFactory, | ||
[VIZ_TYPES.deck_polygon]: deckglFactory, | ||
[VIZ_TYPES.deck_scatter]: require('./deckgl/layers/scatter.jsx').default, |
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.
@mistercrunch, is this the right approach? The module is now exporting two functions.
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 should probably move to ES6 imports at some point, not a req at the moment
There's some JS lint otherwise LGTM |
* Refactoring dekgl * Refactor layers * Standardize function name * Fix exports * Fix require * Fix lint
* Refactoring dekgl * Refactor layers * Standardize function name * Fix exports * Fix require * Fix lint
@mistercrunch, publishing this early to get your thoughts (I'm planning to do it for all layers). Is this what you had in mind?