mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 12:01:23 +01:00
fix and remove debug output
This commit is contained in:
parent
9bdc8a3094
commit
ee93b37b99
1 changed files with 0 additions and 6 deletions
|
|
@ -16,12 +16,6 @@ function saveGeoJSON_Markers() {
|
||||||
let data = "{ \"type\": \"FeatureCollection\", \"features\": [\n";
|
let data = "{ \"type\": \"FeatureCollection\", \"features\": [\n";
|
||||||
|
|
||||||
markers._groups[0][0].childNodes.forEach(n => {
|
markers._groups[0][0].childNodes.forEach(n => {
|
||||||
console.log(n);
|
|
||||||
console.log("id = "+n.id);
|
|
||||||
console.log("type = "+n.dataset.id.substring(8));
|
|
||||||
console.log("x = "+n.dataset.x);
|
|
||||||
console.log("y = "+n.dataset.y);
|
|
||||||
|
|
||||||
let x = mapCoordinates.lonW + (n.dataset.x / graphWidth) * mapCoordinates.lonT;
|
let x = mapCoordinates.lonW + (n.dataset.x / graphWidth) * mapCoordinates.lonT;
|
||||||
let y = mapCoordinates.latN - (n.dataset.y / graphHeight) * mapCoordinates.latT; // this is inverted in QGIS otherwise
|
let y = mapCoordinates.latN - (n.dataset.y / graphHeight) * mapCoordinates.latT; // this is inverted in QGIS otherwise
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue