From e2223c42ab9c755cbc1df0ee129bfe8c3659d724 Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Tue, 11 Apr 2023 18:00:11 +0100 Subject: [PATCH] Add some geomap examples --- plugins/tiddlywiki/geospatial/docs/geomap.tid | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/plugins/tiddlywiki/geospatial/docs/geomap.tid b/plugins/tiddlywiki/geospatial/docs/geomap.tid index 5e7cdb05e..dedf10d91 100644 --- a/plugins/tiddlywiki/geospatial/docs/geomap.tid +++ b/plugins/tiddlywiki/geospatial/docs/geomap.tid @@ -13,3 +13,40 @@ The following attributes are supported: |''layers'' |A filter identifying the GeoJSON layer tiddlers to be displayed on the map | |''markers'' |A filter identifying the GeoJSON marker tiddlers to be displayed on the map | + +!! Examples + +<$testcase> +<$data + title="Description" + text="Map with state preservation" +/> +<$data + title="Output" + text="""<$geomap + state=<> +/> +"""/> +<$data $tiddler="$:/plugins/tiddlywiki/geospatial"/> + + +<$testcase> +<$data + title="Description" + text="Map with geomarkers" +/> +<$data + title="Oxford" + tags="$:/tags/GeoMarker" + caption="Oxford" + lat="51.751944" + long="-1.257778" + alt="0" + text="""This is Oxford!"""/> +<$data title="Output" text="""<$geomap + state=<> + markers="[all[tiddlers+shadows]tag[$:/tags/GeoMarker]]" +/> +"""/> +<$data $tiddler="$:/plugins/tiddlywiki/geospatial"/> +