From e67901bb8faefd2c33450aa32a36b4eb5daf3600 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Wed, 22 Mar 2023 11:09:33 -0500 Subject: [PATCH] simple map shortcode This map shortcode pulls form umap.openstreetmap.fr It's a very simple but effective way of showing maps of locations but not showing routes. In the future I'd like to get leaflet working but this will work for now. --- layouts/shortcodes/map.html | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 layouts/shortcodes/map.html diff --git a/layouts/shortcodes/map.html b/layouts/shortcodes/map.html new file mode 100644 index 0000000..f6f2731 --- /dev/null +++ b/layouts/shortcodes/map.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" }} + +