remove commented out code

This commit is contained in:
Jon Atkins 2013-04-24 02:15:55 +01:00
parent d58306ec06
commit 2df9bdc5a7

View File

@ -49,20 +49,6 @@ window.convertPointToLatLng = function(x, y, magic, R) {
// lat/lng format. // lat/lng format.
window.pointToQuadKey = function(x, y) { window.pointToQuadKey = function(x, y) {
return window.map.getZoom() + "_" + x + "_" + y; return window.map.getZoom() + "_" + x + "_" + y;
/*var quadkey = [];
for(var c = window.map.getZoom(); c > 0; c--) {
// +-------+ quadrants are probably ordered like this
// | 0 | 1 |
// |---|---|
// | 2 | 3 |
// |---|---|
var quadrant = 0;
var e = 1 << c - 1;
(x & e) != 0 && quadrant++; // push right
(y & e) != 0 && (quadrant++, quadrant++); // push down
quadkey.push(quadrant);
}
return quadkey.join("");*/
} }
// given quadkey and bounds, returns the format as required by the // given quadkey and bounds, returns the format as required by the