Open apgeo opened 4 years ago
In the current API documentation page - Reference - v2 API
In the terrainShading property, the second value in the enummeration is CV2.SHADING_HEIGHT "The terrain is shaded by height."
terrainShading
CV2.SHADING_HEIGHT
but viewer.terrainShading = CV2.SHADING_HEIGHT; results in an error: unknown mode 1
viewer.terrainShading = CV2.SHADING_HEIGHT;
unknown mode 1
So instead of CV2.SHADING_HEIGHT probably you should have there CV2.SHADING_CONTOURS
CV2.SHADING_CONTOURS
Hi, Well spotted, I'll fix.
Corrected now. Thanks
In the current API documentation page - Reference - v2 API
In the
terrainShading
property, the second value in the enummeration isCV2.SHADING_HEIGHT
"The terrain is shaded by height."but
viewer.terrainShading = CV2.SHADING_HEIGHT;
results in an error:unknown mode 1
So instead of
CV2.SHADING_HEIGHT
probably you should have thereCV2.SHADING_CONTOURS