use openstreetmap
This commit is contained in:
parent
a07caf5b06
commit
60aadcb76d
3 changed files with 9 additions and 6 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue