@wearesponge/slippy

1.3.0 • Public • Published

Slippy

A command line slippy map tiles generator.

Installation

You can install the helper globally:

npm i -g @wearesponge/slippy

or install it as part of your project:

npm i --save @wearesponge/slippy

Usage

You can use slippy on the command line to generate your tiles by passing the source file and parameters:

Parameter Long Parameter Description
-min --minZoom The minimum zoom level
-max --maxZoom The maximum zoom level
-t --tileSize The output tile size
-f --format The output image format
-q --quality The output image quality
-o --outDir The output directory
-h --help display help for command

Example

If you have the source image ./source.png and you wish to generate tiles for zoom levels 0 through to 4 and output them into the ./tiles directory you can run the command:

slippy ./source.png -min 0 -max 4 -o ./tiles

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @wearesponge/slippy

    Weekly Downloads

    3

    Version

    1.3.0

    License

    ISC

    Unpacked Size

    154 kB

    Total Files

    4

    Last publish

    Collaborators

    • finbsponge
    • christiancooksponge