use openstreetmap

This commit is contained in:
j 2022-09-03 19:00:09 +02:00
commit 60aadcb76d
3 changed files with 9 additions and 6 deletions

View file

@ -163,10 +163,12 @@ window.app = (function() {
};
if (!marker) {
if (!map) {
L.mapbox.accessToken = config.mapboxAccessToken;
map = L.mapbox.map('map')
map = L.map('map')
.setView(coords, zoomLevel)
.addLayer(L.mapbox.styleLayer('mapbox://styles/mapbox/streets-v11'));
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom: 19,
attribution: '© OpenStreetMap'
}).addTo(map)
}
marker = L.marker(coords, options)
.bindPopup(options.title)