Keep fallback values in code in case config.js is not updated with new required fields

This commit is contained in:
Gautier P 2020-04-14 18:44:05 +02:00
parent e91b22ede0
commit 23b5439159

View file

@ -19,7 +19,7 @@ BR.Map = {
})
.addTo(map);
if (!map.restoreView()) {
map.setView(BR.conf.initialMapLocation, BR.conf.initialMapZoom);
map.setView(BR.conf.initialMapLocation || [50.99, 9.86], BR.conf.initialMapZoom || 5);
}
// two attribution lines by adding two controls, prevents ugly wrapping on