Add mapnik metrics option

This commit is contained in:
Raul Marin 2018-01-16 10:23:46 +01:00
parent 6cd8131888
commit f9fe3ace37
6 changed files with 16 additions and 5 deletions

View File

@ -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

View File

@ -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: {

View File

@ -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: {

View File

@ -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

View File

@ -15,6 +15,7 @@ var rendererConfig = _.defaults(global.environment.renderer || {}, {
bufferSize: 64,
snapToGrid: false,
clipByBox2d: false,
metrics: false,
limits: {}
},
http: {}

View File

@ -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