Skip to content

Commit 0be5a61

Browse files
author
Jonas Viehweger
committed
Fixed variable naming
1 parent 0254fc5 commit 0be5a61

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dem/dem-topographic/mapzen.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ const waterMap = [
5858
[-1000, 0x283087],
5959
[-5000, 0x070772],
6060
];
61-
const landVis = new ColorRampVisualizer(landMap, waterLevel, max);
62-
const waterVis = new ColorRampVisualizer(waterMap, min, waterLevel);
61+
const landVis = new ColorRampVisualizer(landMap, seaLevel, max);
62+
const waterVis = new ColorRampVisualizer(waterMap, min, seaLevel);
6363

6464
function evaluatePixel(sample) {
6565
let val = sample.DEM;
66-
let imgVals = val > waterLevel ? landVis.process(val) : waterVis.process(val);
66+
let imgVals = val > seaLevel ? landVis.process(val) : waterVis.process(val);
6767

6868
// Return the 4 inputs and define content for each one
6969
return {

0 commit comments

Comments
 (0)