Update 13.09.2020
This commit is contained in:
@ -185,7 +185,7 @@ collections:
|
||||
- {label: "Hintergrundbild", name: "bg_image", widget: "hidden", default: "/media/backgrounds/page-title.png"}
|
||||
- {label: "Metabeschreibung", name: "description", widget: "text", required: false}
|
||||
- {label: "Bild", name: "image", widget: "image", default: "/media/image.png", required: false}
|
||||
- {label: "Kategorie", name: "category", widget: "string"}
|
||||
- {label: "Themenbereiche", name: "categories_ag", widget: "string"}
|
||||
- label: "Leiter"
|
||||
name: "teacher"
|
||||
widget: "relation"
|
||||
@ -193,9 +193,10 @@ collections:
|
||||
searchFields: ["title"]
|
||||
valueField: "title"
|
||||
displayFields: ["title"]
|
||||
- {label: "Tag/Stunden", name: "duration", widget: "string"}
|
||||
- {label: "Dauer", name: "weekly", widget: "string"}
|
||||
- {label: "Tag/Stunden", name: "duration", widget: "string"}
|
||||
- {label: "Klassenstufen", name: "class", widget: "string"}
|
||||
- {label: "Raum", name: "root", widget: "string"}
|
||||
- {label: "Anmeldelink", name: "apply_url", widget: "hidden", default: "https://moodle.bildung-lsa.de/gcg/mod/choice/view.php?id=828"}
|
||||
- {label: "Type", name: "type", widget: "hidden", default: "ganztagsangebote"}
|
||||
- {label: "Text", name: "body", widget: "markdown"}
|
||||
|
19
static/js/map.js
Normal file
19
static/js/map.js
Normal file
@ -0,0 +1,19 @@
|
||||
|
||||
|
||||
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);
|
||||
//.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();
|
||||
|
||||
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);
|
Reference in New Issue
Block a user