|
|
@ -28,7 +28,7 @@ function loadLeafletMap() {
|
|
|
|
zoomLevel = 13,
|
|
|
|
zoomLevel = 13,
|
|
|
|
tileSet = "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
|
|
|
|
tileSet = "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
|
|
|
|
attribution = "© <a href='https://openstreetmap.org/copyright'>OpenStreetMap</a> contributors";
|
|
|
|
attribution = "© <a href='https://openstreetmap.org/copyright'>OpenStreetMap</a> contributors";
|
|
|
|
if (locations) {
|
|
|
|
if (locations && locations.locations.length > 0) {
|
|
|
|
|
|
|
|
|
|
|
|
var locationSets = locations.locations;
|
|
|
|
var locationSets = locations.locations;
|
|
|
|
map = L.map(container).setView([locationSets[0].lat, locationSets[0].lng], zoomLevel);
|
|
|
|
map = L.map(container).setView([locationSets[0].lat, locationSets[0].lng], zoomLevel);
|
|
|
|