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
- MapboxGL-js style spec
- react-map-gl
Package Sidebar
Install
Weekly Downloads