16 lines
600 B
JavaScript
Raw Normal View History

2020-09-13 09:59:08 +02:00
var map = L.map('map', {
scrollWheelZoom: false
}).setView([51.473361, 11.965619], 100);
2023-02-03 17:35:39 +01:00
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
2020-09-13 09:59:08 +02:00
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map);
var marker = L.marker([51.473361, 11.965619]).addTo(map);
function onMarkerClick(e) {
2023-02-03 17:35:39 +01:00
marker.bindPopup('Georg-Cantor-Gymnasium<br>Torstraße 13<br>06110 Halle (Saale)<br><b><a href="https://www.qwant.com/maps/place/osm:way:54033279@Georg-Cantor-Gymnasium">Route</a>').openPopup();
2020-09-13 09:59:08 +02:00
}
map.on('click', onMarkerClick);