added serverMetadata option for layer group, close #182 CDB-1940

This commit is contained in:
javi
2014-03-06 15:19:12 +01:00
parent 7eb26a7326
commit 5bfc360856
6 changed files with 101 additions and 0 deletions
+8
View File
@@ -375,6 +375,14 @@ module.exports = function(){
}
}
// include in layergroup response the variables in serverMedata
// those variables are useful to send to the client information
// about how to reach this server or information about it
var serverMetadata = global.environment.serverMetadata;
if (serverMetadata) {
_.extend(response, serverMetadata);
}
// Don't wait for the mapview count increment to
// take place before proceeding. Error will be logged
// asyncronously