We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0254fc5 commit 0be5a61Copy full SHA for 0be5a61
dem/dem-topographic/mapzen.js
@@ -58,12 +58,12 @@ const waterMap = [
58
[-1000, 0x283087],
59
[-5000, 0x070772],
60
];
61
-const landVis = new ColorRampVisualizer(landMap, waterLevel, max);
62
-const waterVis = new ColorRampVisualizer(waterMap, min, waterLevel);
+const landVis = new ColorRampVisualizer(landMap, seaLevel, max);
+const waterVis = new ColorRampVisualizer(waterMap, min, seaLevel);
63
64
function evaluatePixel(sample) {
65
let val = sample.DEM;
66
- let imgVals = val > waterLevel ? landVis.process(val) : waterVis.process(val);
+ let imgVals = val > seaLevel ? landVis.process(val) : waterVis.process(val);
67
68
// Return the 4 inputs and define content for each one
69
return {
0 commit comments