mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-09 15:40:03 +00:00
Add a geomap layer demo
This commit is contained in:
parent
4427caad3d
commit
f41e71299b
@ -33,7 +33,7 @@ The following attributes are supported:
|
|||||||
<$testcase>
|
<$testcase>
|
||||||
<$data
|
<$data
|
||||||
title="Description"
|
title="Description"
|
||||||
text="Map with geomarkers"
|
text="Map with geomarker"
|
||||||
/>
|
/>
|
||||||
<$data
|
<$data
|
||||||
title="Oxford"
|
title="Oxford"
|
||||||
@ -50,3 +50,45 @@ The following attributes are supported:
|
|||||||
"""/>
|
"""/>
|
||||||
<$data $tiddler="$:/plugins/tiddlywiki/geospatial"/>
|
<$data $tiddler="$:/plugins/tiddlywiki/geospatial"/>
|
||||||
</$testcase>
|
</$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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user