tilelive-mapnik
Renderer backend for tilelive.js that
uses node-mapnik to render tiles and
grids from a Mapnik XML file. tilelive-mapnik
implements the
Tilesource API.
Installation
npm install tilelive-mapnik
Though tilelive
is not a dependency of tilelive-mapnik
you will want to
install it to actually make use of tilelive-mapnik
through a reasonable
API.
Usage
var tilelive = ;; tilelive;
Note that grid generation will only work when there's metadata inside a
<Parameters>
object in the Mapnik XML.
The key fields are interactivity_layer
and interactivity_fields
. See an
example in the tests. These Parameters
are normally added by the application that creates the XML,
in this case CartoCSS