Skip to content
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

Feature/decide update or reload #3368

Merged
merged 4 commits into from
Apr 20, 2018

Conversation

pjosh
Copy link
Contributor

@pjosh pjosh commented Apr 20, 2018

Overview

We have dynamic update in the canvas layers, but when we need to change the threshold, it affects the url, so in this case we need to reload the layer.
threshold

@pjosh pjosh requested a review from edbrett April 20, 2018 09:09
Copy link
Contributor

@edbrett edbrett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Only one comment

@@ -52,6 +52,13 @@ class Loss extends Canvas {
.replace('{z}', z)
.replace('{threshold}', this.options.threshold);
}

setOptions(options) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this go on the parent layer?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have this method on the parent layer.
This is only an overwrite, for an specific behaviour for this layer.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But it is repeated 3 times in loss, cover, and glads. When it could go in the parent canvas.js and still work fine?

@edbrett edbrett merged commit bc7129b into feature/canvas-update-layer Apr 20, 2018
@edbrett edbrett deleted the feature/decide-update-or-reload branch April 20, 2018 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants