tilelive-utfgrid
A tilelive provider that allows
UTFGrid-generating sources (i.e.
those with a getGrid()
method) to be treated as though they generate data
tiles rather than treating grid output as "special".
This registers the utfgrid+
prefix and currently supports the mbtiles:
(using node-mbtiles) and tmstyle:
(using tilelive-tmstyle)
protocols (although it will work with any source that implements getGrid()
).
Usage
To fetch grids from an MBTiles archive using getTile
:
"use strict"; var MBTiles = tilelive = ; var UTFGrid = tilelive; MBTiles;UTFGrid; tilelive;