feat: configurable longitude

This commit is contained in:
Azgaar 2024-07-12 00:32:40 +02:00
parent 6905c926d0
commit dafd944e6b
8 changed files with 110 additions and 73 deletions

View file

@ -33,8 +33,9 @@ function editWorld() {
if (modules.editWorld) return;
modules.editWorld = true;
const graticule = d3.geoGraticule();
globe.select("#globeWindArrows").on("click", handleWindChange);
globe.select("#globeGraticule").attr("d", round(path(d3.geoGraticule()()))); // globe graticule
globe.select("#globeGraticule").attr("d", round(path(graticule()))); // globe graticule
updateWindDirections();
byId("worldControls").on("input", handleControlsChange);