tilelive-gl
Renderer backend for tilelive.js that uses node-mapbox-gl-native to render tiles from a Mapbox GL style.
new GL(options, callback)
- style: a Mapbox GL style string or object that will be used to render vector tiles.
- scale: Optional, scale factor. Defaults to
1
.
Usage
var GL = ; style: { if err throw err; // Interface is in XYZ/Google coordinates. // Use `y = (1 << z) - 1 - y` to flip TMS coordinates. map;};
Tilelive API
Though tilelive
is not a dependency of tilelive-gl
you will want to install it to make use of tilelive-gl
through the tilelive API.
var tilelive = ;; tilelive;