1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-10 03:49:56 +00:00
TiddlyWiki5/plugins/tiddlywiki/geospatial/demo/real-estate-demo/real-estate-demo.tid
2023-02-13 22:44:39 +00:00

48 lines
1.1 KiB
Plaintext

title: $:/plugins/tiddlywiki/geospatial/demo/real-estate-demo
caption: Real Estate Demo
tags: $:/tags/GeospatialDemo
This is a list of all the tiddlers containing ~GeoJSON markers in this wiki (identified by the tag <<tag "$:/tags/GeoMarker">>) viewed as both a map and a table.
<$let
schema={{$:/plugins/tiddlywiki/geospatial/demo/real-estate-demo/schema}}
>
<table>
<thead>
<tr>
<$list filter="[<schema>jsonindexes[fields]]" variable="index">
<th>
<$text text={{{ [<schema>jsonget[fields],<index>,[caption]] }}}/>
</th>
</$list>
</tr>
</thead>
<tbody>
<$list filter="[all[shadows+tiddlers]tag[$:/tags/GeoMarker]sort[caption]]">
<tr>
<$list filter="[<schema>jsonindexes[fields]]" variable="index">
<td>
<$let
fieldname={{{ [<schema>jsonget[fields],<index>,[name]] }}}
>
<$text text={{{ [<currentTiddler>get<fieldname>] }}}/>
</$let>
</td>
</$list>
</tr>
</$list>
</tbody>
</table>
</$let>
<ul>
<$list filter="[all[shadows+tiddlers]tag[$:/tags/GeoMarker]sort[caption]]">
<li>
<$link>
<$view field="caption"><$view field="title"/></$view>
</$link>
</li>
</$list>
</ul>