-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
[geo] Add JS controls to remaining layers #4272
Conversation
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.
Running into a bit of a conflict with #4262 here. Let's make sure both PRs align.
if (fd.js_datapoint_mutator) { | ||
// Applying user defined data mutator if defined | ||
const jsFnMutator = sandboxedEval(fd.js_datapoint_mutator); | ||
data = data.map(jsFnMutator); |
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.
With my recent PR we moved to js_data_mutator
instead of js_datapoint_mutator
and the call goes data = jsFnMutator(data);
...d, | ||
color: [c.r, c.g, c.b, 255 * c.a], | ||
})); | ||
|
||
if (fd.js_datapoint_mutator) { |
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.
Same comment as above. Related PR: #4262
...d, | ||
color: [c.r, c.g, c.b, 255 * c.a], | ||
})); | ||
|
||
if (fd.js_datapoint_mutator) { |
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.
Same here...
@mistercrunch lets make sure #4262 goes in first |
Now that my changes are in |
t('Javascript data point mutator'), | ||
t('Define a javascript function that receives each data point and can alter it ' + | ||
'before getting sent to the deck.gl layer'), | ||
js_data_mutator: jsFunctionControl( |
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.
Sorry I had not yet merge this change when I asked you to rebase earlier, now it's merge and you should re-re-rebase
This reverts commit 2384ad4.
* Update viz.py * added JS controls * add JS to grid layout * add JS to hexagon layer * added JS controls to screengrid * update to js_data_mutator controls * remove .map()
* Update viz.py * added JS controls * add JS to grid layout * add JS to hexagon layer * added JS controls to screengrid * update to js_data_mutator controls * remove .map()
Added JS controls to remaining DeckGL layers
merged small bugfix with arc layer payload #4238
@mistercrunch