Going green: allow to use bbox param, along lon, lat, and zoom

The `bbox` param was removed from the base controller, the rest kept
working as they are declared in the base, but it's better to declare
them here as well.

Fixes #735.
This commit is contained in:
Raul Ochoa
2017-08-29 13:05:03 +00:00
parent fc0dbaaab1
commit 91ce3a5489
+2 -1
View File
@@ -32,7 +32,8 @@ NamedMapsController.prototype.register = function(app) {
this.tile.bind(this));
app.get(app.base_url_mapconfig +
'/static/named/:template_id/:width/:height.:format', cors(), userMiddleware, allowQueryParams(['layer']),
'/static/named/:template_id/:width/:height.:format', cors(), userMiddleware,
allowQueryParams(['layer', 'zoom', 'lon', 'lat', 'bbox']),
this.staticMap.bind(this));
};