tiler-file
A nodejs map tile file reader coordinating by X,Y,Z.
Introduction
This is a map tile file reader for map tiles in XYZ schema.
Because the path rule to store tile files is arbitrary, a path template phrase is needed to interprate XYZ to a actual file path.
lodash is used here as the template engine. You can see how to use it in the example below.
See Also
tiler-arcgis-file: a nodejs map tile reader for exploded tiles by ESRI ArcGIS
tiler-arcgis-bundle: a nodejs map tile reader for compact tiles by ESRI ArcGIS 10.0-10.2
Install
npm install tiler-file
Usage
var Tiler = ;//template of the file path, lodash's template is used here.//x, y, z is the tile's coordinate values.var tiler = __dirname+'/sample/<%- z %>/<%- parseInt(x/10) %>/<%- parseInt(y/10) %>/<%- x %>_<%- y %>.png';//tile's x,y,z//actual path is __dirname+'/sample/6/5/2/53_25.png tiler;