fix and remove debug output

This commit is contained in:
Tom Vogt 2019-09-14 23:19:48 +02:00
parent 9bdc8a3094
commit ee93b37b99

View file

@ -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