update mapbox api

This commit is contained in:
j 2022-09-03 18:27:35 +02:00
commit a07caf5b06
2 changed files with 5 additions and 4 deletions

View file

@ -164,8 +164,9 @@ window.app = (function() {
if (!marker) {
if (!map) {
L.mapbox.accessToken = config.mapboxAccessToken;
map = L.mapbox.map('map', 'mapbox.streets')
.setView(coords, zoomLevel);
map = L.mapbox.map('map')
.setView(coords, zoomLevel)
.addLayer(L.mapbox.styleLayer('mapbox://styles/mapbox/streets-v11'));
}
marker = L.marker(coords, options)
.bindPopup(options.title)