UNPKG

mapslice

Version:

Slices a given image into tiles to be used for a interactive map display. (including command-line tool)

13 lines (11 loc) 267 B
'use strict' const format = require('string-template') const path = require('path') module.exports = function outputResolve (template, z, y, x) { return format(template, { z: z, y: y, x: x, google: path.join(String(z), String(y), String(x)) }) }