Use default argument
This commit is contained in:
parent
41e65a9633
commit
49c97e2cf2
@ -271,9 +271,9 @@ function getImageOptionsFromTemplate (template, zoom) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getImageOptionsFromBoundingBox (bbox) {
|
function getImageOptionsFromBoundingBox (bbox = '') {
|
||||||
if (bbox) {
|
|
||||||
var _bbox = bbox.split(',').map(numMapper);
|
var _bbox = bbox.split(',').map(numMapper);
|
||||||
|
|
||||||
if (_bbox.length === 4 && _bbox.every(Number.isFinite)) {
|
if (_bbox.length === 4 && _bbox.every(Number.isFinite)) {
|
||||||
return {
|
return {
|
||||||
bounds: {
|
bounds: {
|
||||||
@ -284,7 +284,6 @@ function getImageOptionsFromBoundingBox (bbox) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
NamedMapsController.prototype.getImage = function (label) {
|
NamedMapsController.prototype.getImage = function (label) {
|
||||||
|
Loading…
Reference in New Issue
Block a user