0.3.2 • Published 6 years ago

tiler-arcgis-bundle v0.3.2

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

tiler-arcgis-bundle

Circle CI

A nodejs map tile reader for compact tile storage format used by ESRI ArcGIS

Introduction

ArcGIS Compact Tile is a tile format since ArcGIS version 10.1

It bundles exploded tile files into a .bundlx and a .bundle file and really reduces number of tile files.

This library is a reader for the bundles.

See Also

tiler-file: a nodejs map tile file reader coordinating by X,Y,Z

tiler-arcgis-file: a nodejs map tile reader for exploded tiles cache format by ESRI ArcGIS

Install

npm install tiler-arcgis-bundle

Usage

var Tiler = require('tiler-arcgis-bundle');
//root folder of the tiles, where the Conf.xml stands
//128 is the packet size (row count and col count) of a tile bundle, default is 128
var tiler = new Tiler('/home/foo/bundle_tiles/', { packSize: 128 });
//tile's x,y,z
tiler.getTile(3408, 2417, 2, function(error, tile) {
    if (error) {
        throw error;
    }
    console.log(tile.lastModified);
    fs.writeFileSync('foo.png', tile.data);
});
0.3.2

6 years ago

0.3.1

6 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago