Multi-directional hillshade illumination specification #1081
Replies: 3 comments 1 reply
-
As a user Option 1 and Option 2 are not immediately predictable in how they would apply values and defaults. What happens if I give three directions but one altitude? Does it use that altitude for all three directions, or only for the first and use the default for the other two? Does an error occur if I then specify two shadow colors? Option 3 would let me set three directions and one altitude to one of them, letting the defaults kick in for all other values. |
Beta Was this translation helpful? Give feedback.
-
Also probably worth mentioning, that option 3 is less likely to facilitate style expressions due to how they are usually used. |
Beta Was this translation helpful? Give feedback.
-
@louwers is using the same style spec property with different types a problem in native (like we did for padding)? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
A newly proposed (#1066) hillshade method,
multidirectional
, uses multiple illumination sources, each with its own direction and color. The existing illumination spec only supports a single value for direction, highlight color, and shadow color. To specify multiple illumination sources, we could extend the existing fields to accept a single value OR an array of values, or we could add new fields used only by themultidirectional
method. Or we could move the illumination definition into a structure and have an array of structures, which would help keep the number of elements in each array the same.The spec for the existing hillshade method would remain unchanged in all cases, and would look like this:
Here's how the spec would look for the
multidirectional
method for each option:Option 1:
Option 2:
Option 3:
6 votes ·
Beta Was this translation helpful? Give feedback.
All reactions