Fix format, break line in bad position

This commit is contained in:
Daniel García Aubert
2017-09-21 22:55:30 +02:00
parent 3a8b99a14e
commit d31e52a625
+12 -6
View File
@@ -55,35 +55,40 @@ module.exports = LayergroupController;
LayergroupController.prototype.register = function(app) {
app.get(app.base_url_mapconfig + '/:token/:z/:x/:y@:scale_factor?x.:format',
app.get(
app.base_url_mapconfig + '/:token/:z/:x/:y@:scale_factor?x.:format',
cors(),
userMiddleware,
this.req2paramsMiddleware,
this.tile.bind(this)
);
app.get(app.base_url_mapconfig + '/:token/:z/:x/:y.:format',
app.get(
app.base_url_mapconfig + '/:token/:z/:x/:y.:format',
cors(),
userMiddleware,
this.req2paramsMiddleware,
this.tile.bind(this)
);
app.get(app.base_url_mapconfig + '/:token/:layer/:z/:x/:y.(:format)',
app.get(
app.base_url_mapconfig + '/:token/:layer/:z/:x/:y.(:format)',
cors(),
userMiddleware,
this.req2paramsMiddleware,
this.layer.bind(this)
);
app.get(app.base_url_mapconfig + '/:token/:layer/attributes/:fid',
app.get(
app.base_url_mapconfig + '/:token/:layer/attributes/:fid',
cors(),
userMiddleware,
this.req2paramsMiddleware,
this.attributes.bind(this)
);
app.get(app.base_url_mapconfig + '/static/center/:token/:z/:lat/:lng/:width/:height.:format',
app.get(
app.base_url_mapconfig + '/static/center/:token/:z/:lat/:lng/:width/:height.:format',
cors(),
userMiddleware,
allowQueryParams(['layer']),
@@ -91,7 +96,8 @@ LayergroupController.prototype.register = function(app) {
this.center.bind(this)
);
app.get(app.base_url_mapconfig + '/static/bbox/:token/:west,:south,:east,:north/:width/:height.:format',
app.get(
app.base_url_mapconfig + '/static/bbox/:token/:west,:south,:east,:north/:width/:height.:format',
cors(),
userMiddleware,
allowQueryParams(['layer']),