Added colour and biomes to elevation profile

This commit is contained in:
Evolvedexperiment 2020-05-10 19:35:15 +00:00
parent 6dd1e22e93
commit 418d364259
3 changed files with 57 additions and 18 deletions

View file

@ -47,7 +47,7 @@ function editRoute(onClick) {
function drawControlPoints(node) {
const l = node.getTotalLength();
const increment = l / Math.ceil(l / 8);
const increment = l / Math.ceil(l / 4);
for (let i=0; i <= l; i += increment) {addControlPoint(node.getPointAtLength(i));}
routeLength.innerHTML = rn(l * distanceScaleInput.value) + " " + distanceUnitInput.value;
}
@ -110,7 +110,7 @@ function editRoute(onClick) {
function showElevationProfile() {
modules.elevation = true;
showEPForRoute(node);
showEPForRoute(elSelected.node());
}
function showGroupSection() {