change x, y, z, to z, x, y

This commit is contained in:
Konstantin Käfer
2011-06-27 20:34:10 +02:00
parent d87ca40681
commit 36bdc51821

View File

@@ -268,7 +268,7 @@ MBTiles.prototype.insertGridTiles = function(map, callback) {
// - @param {Number} y tile y coordinate.
// - @param {Number} z tile z coordinate.
// - @param {Function} callback
MBTiles.prototype.getTile = function(x, y, z, callback) {
MBTiles.prototype.getTile = function(z, x, y, callback) {
if (typeof callback !== 'function') callback = noop;
var mbtiles = this;
@@ -288,7 +288,7 @@ MBTiles.prototype.getTile = function(x, y, z, callback) {
// - @param {Number} y tile y coordinate
// - @param {Number} z tile z coordinate
// - @param {Function} callback
MBTiles.prototype.getGrid = function(x, y, z, callback) {
MBTiles.prototype.getGrid = function(z, x, y, callback) {
if (typeof callback !== 'function') callback = noop;
var that = this;