-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
CARTO: QuadbinHeatmapTileLayer docs #8909
Conversation
|
||
Controls how weight values are mapped to the `colorRange`, as an array of two numbers [`minValue`, `maxValue`]. | ||
|
||
When `colorDomain` is specified, a pixel with `minValue` is assigned the first color in `colorRange`, a pixel with `maxValue` is assigned the last color in `colorRange`, and any value in between is linearly interpolated. Pixels with weight less than `minValue` gradually fade out by reducing alpha, until 100% transparency representing `0`. Pixels with weight more than `maxValue` are capped to the last color in `colorRange`. |
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.
and any value in between is linearly interpolated.
Perhaps just "any value in between is interpolated"? I'm probably overthinking it, but I could see this implying interpolation in a linear color space, which the layer currently does not do.
... until 100% transparency representing
0
Given a signed colorDomain like [-100, 100]
, I wouldn't be sure how to interpret this... if full transparency represents zero, perhaps something should be said about interpolation between the domain minimum and zero?
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.
The description was wrong, I've corrected it
Documentation update for #8703