|
|
|
@ -10,12 +10,13 @@ module.exports = function createMapStoreMapConfigProvider (
|
|
|
|
|
return function createMapStoreMapConfigProviderMiddleware (req, res, next) {
|
|
|
|
|
const { user, token, cache_buster, api_key } = res.locals;
|
|
|
|
|
const { dbuser, dbname, dbpassword, dbhost, dbport } = res.locals;
|
|
|
|
|
const { layer, z, x, y, scale_factor, format } = req.params;
|
|
|
|
|
const { layer: layerFromParams, z, x, y, scale_factor, format } = req.params;
|
|
|
|
|
const { layer: layerFromQuery } = req.query;
|
|
|
|
|
|
|
|
|
|
const params = {
|
|
|
|
|
user, token, cache_buster, api_key,
|
|
|
|
|
dbuser, dbname, dbpassword, dbhost, dbport,
|
|
|
|
|
layer, z, x, y, scale_factor, format
|
|
|
|
|
layer: (layerFromQuery || layerFromParams), z, x, y, scale_factor, format
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
if (forcedFormat) {
|
|
|
|
|