undo style/format changes

This commit is contained in:
Simon Martín 2017-10-05 11:35:49 +02:00
parent 1f03a6b181
commit 5abe25c316
2 changed files with 32 additions and 47 deletions

View File

@ -321,34 +321,19 @@ LayergroupController.prototype.finalizeGetTileOrGrid = function(err, req, res, t
};
LayergroupController.prototype.bbox = function(req, res, next) {
this.staticMap(
req,
res,
+req.params.width,
+req.params.height,
{
this.staticMap(req, res, +req.params.width, +req.params.height, {
west: +req.params.west,
north: +req.params.north,
east: +req.params.east,
south: +req.params.south
},
next
);
}, next);
};
LayergroupController.prototype.center = function(req, res, next) {
this.staticMap(
req,
res,
+req.params.width,
+req.params.height,
+req.params.z,
{
this.staticMap(req, res, +req.params.width, +req.params.height, +req.params.z, {
lng: +req.params.lng,
lat: +req.params.lat
},
next
);
}, next);
};
LayergroupController.prototype.staticMap = function(req, res, width, height, zoom /* bounds */, center, next) {