Add config option for initial map position and zoom

This commit is contained in:
Robert Sacks 2020-03-18 20:56:50 -04:00 committed by Gautier P
parent 46ed85be2c
commit e91b22ede0
2 changed files with 5 additions and 1 deletions

View file

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