From 7002f36abe838ea2972499e3c47ff41fa335d25d Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 29 Dec 2013 18:14:59 +0000 Subject: point vs latlng --- map3.js | 4 ++-- 1 file 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); -- cgit v1.2.1