diff options
author | Christian Pointner <equinox@ffgraz.net> | 2013-12-29 18:14:59 +0000 |
---|---|---|
committer | Christian Pointner <equinox@ffgraz.net> | 2013-12-29 18:14:59 +0000 |
commit | 7002f36abe838ea2972499e3c47ff41fa335d25d (patch) | |
tree | b3fdd59f13e80852bc4d5d50cd097cf46d44bfc4 /map3.js | |
parent | dfaf25fe5c8f055b1c44d51287452a38772aca37 (diff) |
point vs latlng
Diffstat (limited to 'map3.js')
-rw-r--r-- | map3.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |