Skip to content

Commit

Permalink
Fixed variable naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Viehweger committed Nov 12, 2024
1 parent 0254fc5 commit 0be5a61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dem/dem-topographic/mapzen.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ const waterMap = [
[-1000, 0x283087],
[-5000, 0x070772],
];
const landVis = new ColorRampVisualizer(landMap, waterLevel, max);
const waterVis = new ColorRampVisualizer(waterMap, min, waterLevel);
const landVis = new ColorRampVisualizer(landMap, seaLevel, max);
const waterVis = new ColorRampVisualizer(waterMap, min, seaLevel);

function evaluatePixel(sample) {
let val = sample.DEM;
let imgVals = val > waterLevel ? landVis.process(val) : waterVis.process(val);
let imgVals = val > seaLevel ? landVis.process(val) : waterVis.process(val);

// Return the 4 inputs and define content for each one
return {
Expand Down

0 comments on commit 0be5a61

Please sign in to comment.