From 997c247d6c715c095de75c919fa41a49dd9850a1 Mon Sep 17 00:00:00 2001 From: Aaron Griffith Date: Fri, 11 Mar 2011 18:05:21 -0500 Subject: [PATCH] updated marker positioning code to jive with updated rendering code --- web_assets/functions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web_assets/functions.js b/web_assets/functions.js index 9b42fda..174a43a 100644 --- a/web_assets/functions.js +++ b/web_assets/functions.js @@ -365,6 +365,7 @@ function initialize() { var lat = 0.5; // the following metrics mimic those in ChunkRenderer.chunk_render in "chunk.py" + // or, equivalently, chunk_render in src/iterate.c // each block on X axis adds 12px to x and subtracts 6px from y lng += 12 * x * perPixel; @@ -377,9 +378,8 @@ function initialize() { // each block down along Z adds 12px to y lat += 12 * (128 - z) * perPixel; - // add on 12 px to the X coordinate and 18px to the Y to center our point + // add on 12 px to the X coordinate to center our point lng += 12 * perPixel; - lat += 18 * perPixel; return new google.maps.LatLng(lat, lng); }