-
Notifications
You must be signed in to change notification settings - Fork 465
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
Not possible to set colorMap for IDW layers #859
Comments
Currently we managed to set the custom color map by overriding the whole computeImage function. Not sure its thee right way to go though.
|
You're right... I've encapsulated the |
I added a |
How about possibility to change the color map for an existing ol.source.IDW object instance? |
If you're not using worker, you just have to set the getColor method. idwSource.getColor = function(v) { return [r,g,b,a] } If you're using worker it's a little bit more difficult... |
Thanks, works great. I'm not using worker. |
Colormap seems to be always hardcoded to
jet
and changing thegetColor
function on IDW source class object doesn't seem to have any effect since moving to ES6, since it's a local variable in olsourceIDW function.Would be good if
var getColor = function (v) {
could be exposed as a public variable in the olsourceIDW class.The text was updated successfully, but these errors were encountered: