# mapzen-tile-generator

> A tool for generating easily a set of map tiles for a city from mapzen metro extracts.

Latest version **0.5.7** (published 2016-07-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install mapzen-tile-generator
pnpm add mapzen-tile-generator
yarn add mapzen-tile-generator
bun add mapzen-tile-generator
```

Provides the command `mapzen-tile-generator`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.5.7 |
| Published | 2016-07-25 |
| First published | 2016-07-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 11 |
| Known vulnerabilities | 0 (+4 in 3 direct dependencies) |
| Install scripts | no |
| Author | Aloïs Deniel |
| Maintainers | aloisdeniel |

## Links

- npm: https://www.npmjs.com/package/mapzen-tile-generator
- npm.io page: https://npm.io/package/mapzen-tile-generator

## Dependencies (11)

- [async](https://npm.io/package/async.md) ^2.0.0-rc.6
- [locks](https://npm.io/package/locks.md) ^0.2.2
- [merge](https://npm.io/package/merge.md) ^1.2.0
- [mapnik](https://npm.io/package/mapnik.md) ^3.5.13
- [adm-zip](https://npm.io/package/adm-zip.md) ^0.4.7
- [express](https://npm.io/package/express.md) ^4.14.0
- [request](https://npm.io/package/request.md) ^2.72.0
- [mustache](https://npm.io/package/mustache.md) ^2.2.1
- [commander](https://npm.io/package/commander.md) ^2.9.0
- [mapnik-pool](https://npm.io/package/mapnik-pool.md) ^0.1.3
- [sphericalmercator](https://npm.io/package/sphericalmercator.md) ^1.0.5

## Recent versions

- 0.5.7 (latest) — 2016-07-25
- 0.5.6 — 2016-07-25
- 0.5.5 — 2016-07-25
- 0.5.4 — 2016-07-25
- 0.5.3 — 2016-07-25
- 0.5.2 — 2016-07-25
- 0.5.1 — 2016-07-25
- 0.5.0 — 2016-07-04

## README

# mapzen-tile-generator

A tool for generating easily a set of map tiles for a city from mapzen metro extracts.

## Installation

	$ npm install mapzen-tile-generator -g

## Quickstart

First creates a new folder where you want your tiles to be generated :

    $ mkdir MyMap
    $ cd MyMap

You must have a configuration file inside that folder named `tiles.json` :

    {
        "city": "lyon_france", // mapzen city map metro extract name
        "zoom" : {"min": 12, "max": 17 }, // minimum and maximum rendered zoom level
        "bbox": [4.82, 45.735, 4.83, 45.74], // The rendered area
        "style": { "water": "#ff0000" } // You could override more styles
    }

The styles are :

- `background`: the map background color (default:`#f2f2f2`),
- `water`: water areas fill color (default:`#ffed00`),
- `text1`: city name color (default:`#434343`)
- `text2`: road label color (default:`#a8a8a8`)
- `roads1`: highway fill color (default:`#c2c2c2`)
- `roads2`: main road fill color (default:`#ffffff`)
- `roads2border`: main road border color (default:`#e2e2e2`)
- `roads3`: small road fill color (default:`#e6e6e6`)
- `buildings`: (default:`#d3d3d3`)
- `landuse`: (default:`#e9e9e9`)
- `area`: (default:`#dfdbd4`)

And finally, start your rendering with `-r` command argument.

    $ mapzen-tile-generator [options]

    Options:

    -h, --help            output usage information
    -V, --version         output the version number
    -r, --render          Render a set of tiles 
    -p, --preview <port>  Start a preview server

## Roadmap

* More styles

---
_Source: https://npm.io/package/mapzen-tile-generator · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
