Skip to content

Convert tiles from an HTTP x,y,z tile endpoint into the ESRI .tpk format.

Notifications You must be signed in to change notification settings

okimiko/xyz2tpk

 
 

Repository files navigation

xyz2tpk

Convert tiles from an HTTP x,y,z tile endpoint into the ESRI .tpk format.

Install

npm install

To build distribution version.

npm run build

To run tests

npm test

Usage

xyz2tpk(bounds, minzoom, maxzoom, url, format, directory, callback)

  • bounds {Number} bounds in the form [w, s, e, n] in WGS84.
  • minzoom {Number} minimum zoom.
  • maxzoom {Number} maximum zoom.
  • url {String} url for the http source for the tiles. Should include token.
  • format {String} image format for the tiles requested from the http source.
  • directory {String} output directory path for the tpk, should be unique.
  • callback {Function} callback function after .tpk is zipped.

About

Convert tiles from an HTTP x,y,z tile endpoint into the ESRI .tpk format.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 92.9%
  • Shell 4.5%
  • Dockerfile 2.6%