From 2000c05461cb7c432c33315415a93dcfe7a1895e Mon Sep 17 00:00:00 2001 From: teldra Date: Thu, 28 Apr 2022 18:32:57 +0200 Subject: [PATCH] openstreetmap in contact --- content/contact.de.md | 3 +++ themes/buha/layouts/shortcodes/osm.html | 23 +++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 themes/buha/layouts/shortcodes/osm.html diff --git a/content/contact.de.md b/content/contact.de.md index 561ef6f..21f06ba 100644 --- a/content/contact.de.md +++ b/content/contact.de.md @@ -3,3 +3,6 @@ title: "Kontakt" layout: "contact" --- Konzerte: konzerte@bunteshaus.de + +Anfahrt: +{{< osm mapName="buha_754362" >}} diff --git a/themes/buha/layouts/shortcodes/osm.html b/themes/buha/layouts/shortcodes/osm.html new file mode 100644 index 0000000..f6f2731 --- /dev/null +++ b/themes/buha/layouts/shortcodes/osm.html @@ -0,0 +1,23 @@ +{{ $mapName := .Get "mapName" }} + +{{ $mapWidth := .Get "mapWidth" | default "100%" }} +{{ $mapHeight := .Get "mapHeight" | default "600px" }} + +{{ $scaleControl := .Get "scaleControl" | default "true" }} +{{ $miniMap := .Get "miniMap" | default "false" }} +{{ $scrollWheelZoom := .Get "scrollWheelZoom" | default "true" }} +{{ $zoomControl := .Get "zoomControl" | default "true" }} +{{ $allowEdit := .Get "allowEdit" | default "false" }} +{{ $moreControl := .Get "moreControl" | default "true" }} +{{ $searchControl := .Get "searchControl" | default "true" }} +{{ $tilelayersControl := .Get "tilelayersControl" | default "null" }} +{{ $embedControl := .Get "embedControl" | default "null" }} +{{ $datalayersControl := .Get "datalayersControl" | default "true" }} +{{ $onLoadPanel := .Get "onLoadPanel" | default "none" }} +{{ $captionBar := .Get "captionBar" | default "true" }} + +{{ $scale := .Get "scale" }} +{{ $coordX := .Get "coordX" }} +{{ $coordY := .Get "coordY" }} + +