From 91ce3a5489683454eac2a04046a5f719be8abb26 Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Tue, 29 Aug 2017 13:05:03 +0000 Subject: [PATCH] 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. --- lib/cartodb/controllers/named_maps.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/cartodb/controllers/named_maps.js b/lib/cartodb/controllers/named_maps.js index bde3827d..b6aa8bdf 100644 --- a/lib/cartodb/controllers/named_maps.js +++ b/lib/cartodb/controllers/named_maps.js @@ -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)); };