tilelive-cache
I am a caching wrapper for
tilelive.js
. I cache both sources
and data produced by their respective getTile()
functions.
Usage
var tilelive = cache = tilelive size: 10 // 10MB cache (the default) sources: 6 // cache a maximum of 6 sources (the default); you may // need to change this if you're using lots of // composed sources ; // ... // initializes or loads a tilelive-mapnik sourcecache;
To warm the cache, call load()
without a callback:
cache;