From 23b5439159a8523e0dbd2cf0de899c5902200035 Mon Sep 17 00:00:00 2001 From: Gautier P Date: Tue, 14 Apr 2020 18:44:05 +0200 Subject: [PATCH] Keep fallback values in code in case config.js is not updated with new required fields --- js/Map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/Map.js b/js/Map.js index 9ddfaf1..a05a762 100644 --- a/js/Map.js +++ b/js/Map.js @@ -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