webseite/templates/material.html
L3D 1c1ee034e2 Start location map
Former-commit-id: e14ff5a1abbf34376cea84a2a76507c1a3640454 [formerly d1aed4f79d598a4bf2cce1e1c785e10523291a22] [formerly 9df5aa1ce647af4d046f20cd38d91e287624df66 [formerly c8b9f9f59d2e5f537fe70af15c6a29c8f3dc3814]]
Former-commit-id: 36455108009970575e326fcad58ce62a8da51f36 [formerly c546bb50227595baed49767a9bd1b8cc3428cd06]
Former-commit-id: 286429516cf64be62788a089d1ef38bc61f4bf70
2018-09-06 21:59:28 +02:00

76 lines
2.7 KiB
HTML

{% extends "layout.html" %}
{% block expand_header %}
<link rel="stylesheet" href="/css/leaflet.css" integrity="sha512-puBpdR0798OZvTTbP4A8Ix/l+A4dHDD0DGqYW6RQ+9jxkRFclaxxQb/SJAWZfWAkuyeQUytO7+7N4QKrDh+drA==" crossorigin=""/>
<script src="/js/leaflet.js" integrity="sha512-nMMmRyTVoLYqjP9hrbed9S+FzjZHW5gY1TWCHA5ckwXZBadntCNs8kEqAWdrb9O7rxbCaA4lKTIWjDXZxflOcA==" crossorigin=""></script>
{% endblock %}
{% block title %}{{ this.title }}{% endblock %}
{% block body %}
<section class="wrapper alt spotlight style2">
<div class="inner">
<div class="content">
<h2 class="major">{{ this.title }}</h2>
{{ this.spruch }}
</div>
</div>
</section>
<!-- Content -->
<div class="wrapper">
<div class="inner">
<h3 class="major">{{ this.subtitle }}</h3>
<!-- Content -->
<section id="content">
<div id="mapid" class="image fit" style="width: auto; height: 70vh; z-index: 1;"></div>
<script>
var mymap = L.map('mapid').setView([47.7123, 9.3995], 19);
L.tileLayer('https://tiles.ffbsee.de:9090/{z}/{x}/{y}.png', {
maxZoom: 19,
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>, ' +
'Imagery © <a href="https://www.mapbox.com/">Mapbox</a>',
id: 'mapbox.streets'
}).addTo(mymap);
L.marker([47.71234, 9.39956]).addTo(mymap)
.bindPopup("<aside>Toolbox Bodensee e.V.<br /><a id='tb-closed' class='special button'>Vereinsheim geschlossen!</a><a id='tb-opened' class='special button' style='background-color: LimeGreen !important;'>Vereinsheim offen!</a></aside>").openPopup();
L.polygon([
[47.71242900, 9.39956546],
[47.71231350, 9.39980686],
[47.71222687, 9.39971030],
[47.71229545, 9.39956009],
[47.71223409, 9.39949036],
[47.71227740, 9.39939916]], {
color: 'orange',
fillColor: 'orange',
fillOpacity: 0.5
}).addTo(mymap).bindPopup("Vereinsheim");
L.polygon([
[47.71208610, 9.39969957],
[47.71217273, 9.39950109],
[47.71220882, 9.39953864],
[47.71212220, 9.39973176]
]).addTo(mymap).bindPopup("Hier Parken");
L.polygon([
[47.71219800, 9.39945817],
[47.71224131, 9.39936161],
[47.71227379, 9.39939916],
[47.71223409, 9.39949036]
]).addTo(mymap).bindPopup("Hier Parken");
L.circle([47.71229545, 9.39956009], 2, {
color: 'red',
fillColor: 'red',
fillOpacity: 0.5
}).addTo(mymap).bindPopup("Eingang");
</script>
<br/>
{{ this.body }}
</div>
</div>
{% endblock %}