undo style/format changes
This commit is contained in:
parent
1f03a6b181
commit
5abe25c316
@ -321,34 +321,19 @@ LayergroupController.prototype.finalizeGetTileOrGrid = function(err, req, res, t
|
|||||||
};
|
};
|
||||||
|
|
||||||
LayergroupController.prototype.bbox = function(req, res, next) {
|
LayergroupController.prototype.bbox = function(req, res, next) {
|
||||||
this.staticMap(
|
this.staticMap(req, res, +req.params.width, +req.params.height, {
|
||||||
req,
|
|
||||||
res,
|
|
||||||
+req.params.width,
|
|
||||||
+req.params.height,
|
|
||||||
{
|
|
||||||
west: +req.params.west,
|
west: +req.params.west,
|
||||||
north: +req.params.north,
|
north: +req.params.north,
|
||||||
east: +req.params.east,
|
east: +req.params.east,
|
||||||
south: +req.params.south
|
south: +req.params.south
|
||||||
},
|
}, next);
|
||||||
next
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
LayergroupController.prototype.center = function(req, res, next) {
|
LayergroupController.prototype.center = function(req, res, next) {
|
||||||
this.staticMap(
|
this.staticMap(req, res, +req.params.width, +req.params.height, +req.params.z, {
|
||||||
req,
|
|
||||||
res,
|
|
||||||
+req.params.width,
|
|
||||||
+req.params.height,
|
|
||||||
+req.params.z,
|
|
||||||
{
|
|
||||||
lng: +req.params.lng,
|
lng: +req.params.lng,
|
||||||
lat: +req.params.lat
|
lat: +req.params.lat
|
||||||
},
|
}, next);
|
||||||
next
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
LayergroupController.prototype.staticMap = function(req, res, width, height, zoom /* bounds */, center, next) {
|
LayergroupController.prototype.staticMap = function(req, res, width, height, zoom /* bounds */, center, next) {
|
||||||
|
Loading…
Reference in New Issue
Block a user