Add mapnik metrics option
This commit is contained in:
parent
6cd8131888
commit
f9fe3ace37
@ -205,11 +205,12 @@ var config = {
|
||||
// much closer to the original geometry
|
||||
removeRepeatedPoints: false // this requires postgis >=2.2
|
||||
},
|
||||
|
||||
// If enabled Mapnik will reuse the features retrieved from the database
|
||||
// instead of requesting them once per style inside a layer
|
||||
'cache-features': true
|
||||
'cache-features': true,
|
||||
|
||||
// Require metrics to the renderer
|
||||
metrics: false
|
||||
},
|
||||
http: {
|
||||
timeout: 2000, // the timeout in ms for a http tile request
|
||||
|
@ -202,7 +202,10 @@ var config = {
|
||||
|
||||
// If enabled Mapnik will reuse the features retrieved from the database
|
||||
// instead of requesting them once per style inside a layer
|
||||
'cache-features': true
|
||||
'cache-features': true,
|
||||
|
||||
// Require metrics to the renderer
|
||||
metrics: false
|
||||
|
||||
},
|
||||
http: {
|
||||
|
@ -202,7 +202,10 @@ var config = {
|
||||
|
||||
// If enabled Mapnik will reuse the features retrieved from the database
|
||||
// instead of requesting them once per style inside a layer
|
||||
'cache-features': true
|
||||
'cache-features': true,
|
||||
|
||||
// Require metrics to the renderer
|
||||
metrics: false
|
||||
|
||||
},
|
||||
http: {
|
||||
|
@ -201,8 +201,10 @@ var config = {
|
||||
|
||||
// If enabled Mapnik will reuse the features retrieved from the database
|
||||
// instead of requesting them once per style inside a layer
|
||||
'cache-features': true
|
||||
'cache-features': true,
|
||||
|
||||
// Require metrics to the renderer
|
||||
metrics: false
|
||||
},
|
||||
http: {
|
||||
timeout: 2000, // the timeout in ms for a http tile request
|
||||
|
@ -15,6 +15,7 @@ var rendererConfig = _.defaults(global.environment.renderer || {}, {
|
||||
bufferSize: 64,
|
||||
snapToGrid: false,
|
||||
clipByBox2d: false,
|
||||
metrics: false,
|
||||
limits: {}
|
||||
},
|
||||
http: {}
|
||||
|
@ -27,6 +27,7 @@ module.exports = _.extend({}, serverOptions, {
|
||||
snapToGrid: false,
|
||||
clipByBox2d: false, // this requires postgis >=2.2 and geos >=3.5
|
||||
scale_factors: [1, 2],
|
||||
metrics: false,
|
||||
limits: {
|
||||
render: 0,
|
||||
cacheOnTimeout: true
|
||||
|
Loading…
Reference in New Issue
Block a user