Last active
August 16, 2019 13:57
-
-
Save RalucaNicola/7a263d39af69a6e9e56df17bde5591fb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fetchTile(level, row, col) { | |
return this._elevation.fetchTile(level, row, col).then( | |
function(data) { | |
for (let i = 0; i < data.values.length; i++) { | |
if (data.values[i] >= 0) { | |
data.values[i] = data.values[i] * 60; | |
} | |
else { | |
data.values[i] = data.values[i] * 40; | |
} | |
} | |
return data; | |
}.bind(this)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment