From ecf6ae69a3d74a99e311eef77412933678bfd243 Mon Sep 17 00:00:00 2001 From: zeeZ Date: Sat, 14 May 2011 14:32:18 +0200 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); },