WIP
This commit is contained in:
@ -1,14 +1,10 @@
|
||||
{{ define "main" }}
|
||||
|
||||
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css"
|
||||
integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A=="
|
||||
crossorigin=""/>
|
||||
<link rel="stylesheet" href="https://unpkg.com/leaflet@^1.7.1/dist/leaflet.css" />
|
||||
|
||||
<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"
|
||||
integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA=="
|
||||
crossorigin=""></script>
|
||||
<script src="https://unpkg.com/leaflet@^1.7.1/dist/leaflet.js"></script>
|
||||
|
||||
<section class="section pb-0 bg-body-tertiary">
|
||||
<section class="section pb-0">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-6 mb-4 mb-lg-0">
|
||||
@ -48,30 +44,22 @@ crossorigin=""/>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="section bg-body-tertiary">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div id="map" class="card">
|
||||
<script>
|
||||
var map = L.map('map', {
|
||||
scrollWheelZoom: false
|
||||
}).setView([51.473361, 11.965619], 100);
|
||||
<div id="map" class="mt-4">
|
||||
<script>
|
||||
var map = L.map('map', {
|
||||
scrollWheelZoom: false
|
||||
}).setView([51.473361, 11.965619], 100);
|
||||
|
||||
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
||||
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
|
||||
}).addTo(map);
|
||||
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
||||
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
|
||||
}).addTo(map);
|
||||
|
||||
var marker = L.marker([51.473361, 11.965619]).addTo(map);
|
||||
var marker = L.marker([51.473361, 11.965619]).addTo(map);
|
||||
|
||||
map.on('click', (e) => {
|
||||
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();
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
map.on('click', (e) => {
|
||||
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();
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
{{ end }}
|
||||
|
Reference in New Issue
Block a user