Added colour, biomes, adjustable height, and changed graph code to use d3 more

This commit is contained in:
Evolvedexperiment 2020-05-16 09:12:25 +00:00
parent a21e7f5ea4
commit 9f54b1e3f0
5 changed files with 174 additions and 83 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() {