Config samples for metatileCache with default behaviour
This commit is contained in:
parent
37dfd8fc12
commit
3121ed9a95
@ -101,6 +101,17 @@ var config = {
|
|||||||
// wasted time.
|
// wasted time.
|
||||||
metatile: 2,
|
metatile: 2,
|
||||||
|
|
||||||
|
// tilelive-mapnik uses an internal cache to store tiles/grids
|
||||||
|
// generated when using metatile. This options allow to tune
|
||||||
|
// the behaviour for that internal cache.
|
||||||
|
metatileCache: {
|
||||||
|
// Time an object must stay in the cache until is removed
|
||||||
|
ttl: 0,
|
||||||
|
// Whether an object must be removed after the first hit
|
||||||
|
// Usually you want to use `true` here when ttl>0.
|
||||||
|
deleteOnHit: false
|
||||||
|
},
|
||||||
|
|
||||||
// Override metatile behaviour depending on the format
|
// Override metatile behaviour depending on the format
|
||||||
formatMetatile: {
|
formatMetatile: {
|
||||||
png: 2,
|
png: 2,
|
||||||
|
@ -95,6 +95,17 @@ var config = {
|
|||||||
// wasted time.
|
// wasted time.
|
||||||
metatile: 2,
|
metatile: 2,
|
||||||
|
|
||||||
|
// tilelive-mapnik uses an internal cache to store tiles/grids
|
||||||
|
// generated when using metatile. This options allow to tune
|
||||||
|
// the behaviour for that internal cache.
|
||||||
|
metatileCache: {
|
||||||
|
// Time an object must stay in the cache until is removed
|
||||||
|
ttl: 0,
|
||||||
|
// Whether an object must be removed after the first hit
|
||||||
|
// Usually you want to use `true` here when ttl>0.
|
||||||
|
deleteOnHit: false
|
||||||
|
},
|
||||||
|
|
||||||
// Override metatile behaviour depending on the format
|
// Override metatile behaviour depending on the format
|
||||||
formatMetatile: {
|
formatMetatile: {
|
||||||
png: 2,
|
png: 2,
|
||||||
|
@ -95,6 +95,17 @@ var config = {
|
|||||||
// wasted time.
|
// wasted time.
|
||||||
metatile: 2,
|
metatile: 2,
|
||||||
|
|
||||||
|
// tilelive-mapnik uses an internal cache to store tiles/grids
|
||||||
|
// generated when using metatile. This options allow to tune
|
||||||
|
// the behaviour for that internal cache.
|
||||||
|
metatileCache: {
|
||||||
|
// Time an object must stay in the cache until is removed
|
||||||
|
ttl: 0,
|
||||||
|
// Whether an object must be removed after the first hit
|
||||||
|
// Usually you want to use `true` here when ttl>0.
|
||||||
|
deleteOnHit: false
|
||||||
|
},
|
||||||
|
|
||||||
// Override metatile behaviour depending on the format
|
// Override metatile behaviour depending on the format
|
||||||
formatMetatile: {
|
formatMetatile: {
|
||||||
png: 2,
|
png: 2,
|
||||||
|
@ -95,6 +95,17 @@ var config = {
|
|||||||
// wasted time.
|
// wasted time.
|
||||||
metatile: 2,
|
metatile: 2,
|
||||||
|
|
||||||
|
// tilelive-mapnik uses an internal cache to store tiles/grids
|
||||||
|
// generated when using metatile. This options allow to tune
|
||||||
|
// the behaviour for that internal cache.
|
||||||
|
metatileCache: {
|
||||||
|
// Time an object must stay in the cache until is removed
|
||||||
|
ttl: 0,
|
||||||
|
// Whether an object must be removed after the first hit
|
||||||
|
// Usually you want to use `true` here when ttl>0.
|
||||||
|
deleteOnHit: false
|
||||||
|
},
|
||||||
|
|
||||||
// Override metatile behaviour depending on the format
|
// Override metatile behaviour depending on the format
|
||||||
formatMetatile: {
|
formatMetatile: {
|
||||||
png: 2,
|
png: 2,
|
||||||
|
Loading…
Reference in New Issue
Block a user