index.js
function quadkeyToTile(quadkey) {
    var x = 0;
    var y = 0;
    var z = quadkey.length;

    for (var i = z; i > 0; i--) {
        var mask = 1 << (i - 1);
        var q = +quadkey[z - i];
        if (q === 1) x |= mask;
        if (q === 2) y |= mask;
        if (q === 3) {
            x |= mask;
            y |= mask;
        }
    }
    return [x, y, z];
}
function quadkeyToTile(quadkey) {
    var x = 0;
    var y = 0;
    var z = quadkey.length;

    for (var i = z; i > 0; i--) {
        var mask = 1 << (i - 1);
        var q = +quadkey[z - i];
        if (q === 1) x |= mask;
        if (q === 2) y |= mask;
        if (q === 3) {
            x |= mask;
            y |= mask;
        }
    }
    return [x, y, z];
}
function quadkeyToTile ( quadkey ) { var x = 0 ; var y = 0 ; var z = quadkey . length ; for ( var i = z ; i > 0 ; i -- ) { var mask = 1 << ( i - 1 ) ; var q = + quadkey [ z - i ] ; if ( q === 1 ) x |= mask ; if ( q === 2 ) y |= mask ; if ( q === 3 ) { x |= mask ; y |= mask ; } } return [ x , y , z ] ; }
Get the tile for a quadkey

@name quadkeyToTile
@param {string} quadkey
@returns {Array<number>} tile
@example
var tile = quadkeyToTile('00001033')
//=tile
Get the tile for a quadkey