raster-tile-style
v1.0.1
Published
Helper function for creating mapbox styles for serving raster tiles.
Downloads
26
Maintainers
Readme
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);