raster-tile-style

1.0.1 • Public • Published

raster-tile-style

Helper function for creating MapboxGL styles for serving raster tiles.

Installation

npm install raster-tile-style

Usage

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.

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

See also

  1. MapboxGL-js style spec
  2. react-map-gl

Package Sidebar

Install

npm i raster-tile-style

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • vicapow