summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--map3.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/map3.js b/map3.js
index 5eea77b..8b5dce1 100644
--- a/map3.js
+++ b/map3.js
@@ -518,8 +518,8 @@ function addNewNodeText(point) {
var lat_startpoint = 47.07177327969;
var dy_dlat = 75505.521;
- var pixel_x = parseInt(Math.floor(x_startpoint + (point.x - lng_startpoint) * dx_dlng));
- var pixel_y = parseInt(Math.floor(y_startpoint - (point.y - lat_startpoint) * dy_dlat));
+ var pixel_x = parseInt(Math.floor(x_startpoint + (point.lng - lng_startpoint) * dx_dlng));
+ var pixel_y = parseInt(Math.floor(y_startpoint - (point.lat - lat_startpoint) * dy_dlat));
var link = 'https://manman.graz.funkfeuer.at/location/new?';
link += 'z_x=' + Math.floor(pixel_x % 100) + '&z_y=' + Math.floor(pixel_y % 100);