From abb0fcd638bdf023c56897abc2a3ac4124d8165e Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Tue, 6 May 2014 01:44:10 +0100 Subject: [PATCH] latest stock site update changed the quadkey construction - updated to match --- code/map_data_calc_tools.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/map_data_calc_tools.js b/code/map_data_calc_tools.js index 98fbca52..c5adef2a 100755 --- a/code/map_data_calc_tools.js +++ b/code/map_data_calc_tools.js @@ -139,7 +139,10 @@ window.tileToLat = function(y, params) { } window.pointToTileId = function(params, x, y) { - return params.zoom + "_" + x + "_" + y; +//change to quadkey construction +//as of 2014-05-06: zoom_x_y_minlvl_maxlvl_maxhealth + + return params.zoom + "_" + x + "_" + y + "_" + params.level + "_8_100"; }