# raster-tile-style

> Helper function for creating mapbox styles for serving raster tiles.

Latest version **1.0.1** (published 2015-12-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install raster-tile-style
pnpm add raster-tile-style
yarn add raster-tile-style
bun add raster-tile-style
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2015-12-03 |
| First published | 2015-12-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Victor Powell |
| Maintainers | vicapow |
| Keywords | mapbox-gl, mapbox-gl-ls, react-map-gl, raster, tile |

## Links

- npm: https://www.npmjs.com/package/raster-tile-style
- Repository: https://github.com/vicapow/raster-tile-style
- Homepage: https://github.com/vicapow/raster-tile-style#readme
- Issues: https://github.com/vicapow/raster-tile-style/issues
- npm.io page: https://npm.io/package/raster-tile-style

## Recent versions

- 1.0.1 (latest) — 2015-12-03
- 1.0.0 — 2015-12-03

## README

# raster-tile-style

Helper function for creating [MapboxGL](https://github.com/mapbox/mapbox-gl-js)
[styles](https://www.mapbox.com/mapbox-gl-style-spec/) for serving raster tiles.

## Installation

    npm install raster-tile-style

## Usage

```js
var rasterTileStyle = require('raster-tile-style');
var style = rasterTileStyle(['https://example.com/{z}/{x}/{y}.png']);
```

The default tile size is `256` but you can override it using the second 
parameter.

```js
var style = rasterTileStyle(['https://example.com/{z}/{x}/{y}.png'], 512);
```

## See also

1. [MapboxGL-js style spec](https://www.mapbox.com/mapbox-gl-style-spec/)
2. [react-map-gl](github.com/uber/react-map-gl)

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