Mapnik backend for tilelive
npm install tilelive-mapnik
tilelive is not a dependency of
tilelive-mapnik you will want to
install it to actually make use of
tilelive-mapnik through a reasonable
var tilelive = ;;tilelive;
Note that grid generation will only work when there's a
.mml file with the
same basename as the XML file in that directory that contains information
about how interactivity should be rendered.
Alternatively you may pass data to
tilelive-mapnik directly using an XML
string and MML object.
var uri =protocol: 'mapnik:'slashes: truexml: '<?xml version="1.0" encoding="utf-8"?>\n<Map srs="+proj=merc ... 'mml:interactivity:layer: 'world'fields: 'NAME'format: 'png';tilelive;