1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-27 15:53:14 +00:00

Add a geomap layer demo

This commit is contained in:
jeremy@jermolene.com 2023-04-11 18:13:58 +01:00
parent 4427caad3d
commit f41e71299b

View File

@ -33,7 +33,7 @@ The following attributes are supported:
<$testcase>
<$data
title="Description"
text="Map with geomarkers"
text="Map with geomarker"
/>
<$data
title="Oxford"
@ -50,3 +50,45 @@ The following attributes are supported:
"""/>
<$data $tiddler="$:/plugins/tiddlywiki/geospatial"/>
</$testcase>
<$testcase>
<$data
title="Description"
text="Map with geolayer"
/>
<$data
title="Layer"
tags="$:/tags/GeoLayer"
type="application/json"
color="red"
text="""{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"id": "An example geolayer feature",
"properties": {
"custom": "A custom property of this feature"
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[-90,35],
[-90,30],
[-85,30],
[-85,35],
[-90,35]
]
]
}
}
]
}"""/>
<$data title="Output" text="""<$geomap
state=<<qualify "$:/state/demo-map">>
layers="[all[tiddlers+shadows]tag[$:/tags/GeoLayer]]"
/>
"""/>
<$data $tiddler="$:/plugins/tiddlywiki/geospatial"/>
</$testcase>