archetypes
assets
content
data
i18n
layouts
resources
static
admin
css
fonts
js
load-photoswipe.js
map.js
media
misc
plugins
.htaccess
android-chrome-192x192.png
android-chrome-512x512.png
apple-touch-icon-114x114.png
apple-touch-icon-120x120.png
apple-touch-icon-144x144.png
apple-touch-icon-152x152.png
apple-touch-icon-180x180.png
apple-touch-icon-57x57.png
apple-touch-icon-60x60.png
apple-touch-icon-72x72.png
apple-touch-icon-76x76.png
apple-touch-icon.png
browserconfig.xml
favicon-16x16.png
favicon-32x32.png
favicon.ico
mstile-144x144.png
mstile-150x150.png
mstile-310x150.png
mstile-310x310.png
mstile-70x70.png
safari-pinned-tab.svg
site.webmanifest
.gitlab-ci.yml
.hugo_build.lock
config.toml
16 lines
660 B
JavaScript
16 lines
660 B
JavaScript
var map = L.map('map', {
|
|
scrollWheelZoom: false
|
|
}).setView([51.473361, 11.965619], 100);
|
|
|
|
L.tileLayer('https://{s}.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);
|
|
|
|
function onMarkerClick(e) {
|
|
marker.bindPopup('Georg-Cantor-Gymnasium<br>Torstraße 13<br>06110 Halle (Saale)<br><b><a href="https://maps.openrouteservice.org/directions?n1=51.473292&n2=11.965606&n3=18&a=null,null,51.473292,11.965606&b=0&c=0&k1=de&k2=km">Route</a>').openPopup();
|
|
}
|
|
|
|
map.on('click', onMarkerClick);
|