From 491e88f74576950b679024ef46f83da92752cfbd Mon Sep 17 00:00:00 2001 From: zeeZ Date: Sat, 14 May 2011 20:32:18 +0800 Subject: [PATCH] Fixed kzed map scrolling on higher zoom levels --- web/js/kzedmaps.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/js/kzedmaps.js b/web/js/kzedmaps.js index 262e7ba9..825023e2 100644 --- a/web/js/kzedmaps.js +++ b/web/js/kzedmaps.js @@ -1,8 +1,8 @@ function KzedProjection() {} KzedProjection.prototype = { fromLatLngToPoint: function(latLng) { - var x = (latLng.lng() * config.tileWidth)|0; - var y = (latLng.lat() * config.tileHeight)|0; + var x = latLng.lng() * config.tileWidth; + var y = latLng.lat() * config.tileHeight; return new google.maps.Point(x, y); },