blob: 1f9e90f687294a7872f7bd8e74f3ff1a6ba9d26d [file] [log] [blame]
function initMap() {
var latLong = [50.084750, 8.247026]; // Wiesbaden
var map = L.map("map").setView(latLong, 5);
L.tileLayer("https://b.tile.openstreetmap.org/{z}/{x}/{y}.png", {
attribution: 'Map data &copy; <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors, <a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',
maxZoom: 18,
}).addTo(map);
var icon = L.icon({
iconUrl: "images/map-marker.png",
iconSize: [25, 41],
//iconUrl: "images/map-loc.png",
//iconSize: [57, 66],
});
var marker = L.marker(latLong, { icon: icon }).addTo(map);
}
document.addEventListener("DOMContentLoaded", initMap);