index.js
function tileToGeoJSON(tile) {
    var bbox = tileToBBOX(tile);
    var poly = {
        type: 'Polygon',
        coordinates: [[
            [bbox[0], bbox[1]],
            [bbox[0], bbox[3]],
            [bbox[2], bbox[3]],
            [bbox[2], bbox[1]],
            [bbox[0], bbox[1]]
        ]]
    };
    return poly;
}
function tileToGeoJSON(tile) {
    var bbox = tileToBBOX(tile);
    var poly = {
        type: 'Polygon',
        coordinates: [[
            [bbox[0], bbox[1]],
            [bbox[0], bbox[3]],
            [bbox[2], bbox[3]],
            [bbox[2], bbox[1]],
            [bbox[0], bbox[1]]
        ]]
    };
    return poly;
}
function tileToGeoJSON ( tile ) { var bbox = tileToBBOX ( tile ) ; var poly = { type : 'Polygon' , coordinates : [ [ [ bbox [ 0 ] , bbox [ 1 ] ] , [ bbox [ 0 ] , bbox [ 3 ] ] , [ bbox [ 2 ] , bbox [ 3 ] ] , [ bbox [ 2 ] , bbox [ 1 ] ] , [ bbox [ 0 ] , bbox [ 1 ] ] ] ] } ; return poly ; }
Get a geojson representation of a tile

@name tileToGeoJSON
@param {Array<number>} tile
@returns {Feature<Polygon>}
@example
var poly = tileToGeoJSON([5, 10, 10])
//=poly
Get a geojson representation of a tile