mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-07 18:39:57 +00:00
73 lines
2.1 KiB
Plaintext
73 lines
2.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}}
|
|
>
|
|
<div>
|
|
<$list filter="[<schema>jsonindexes[fields]]" variable="index">
|
|
<$let
|
|
config={{{ [<schema>jsonget[fields],<index>,[name]addprefix[$:/config/geospatial/demo/real-estate-demo/]] }}}
|
|
>
|
|
<div>
|
|
<$checkbox tiddler=<<config>> field="visible" checked="yes" unchecked="no" default="yes">
|
|
<$text text={{{ [<schema>jsonget[fields],<index>,[caption]] }}}/>
|
|
</$checkbox>
|
|
</div>
|
|
</$let>
|
|
</$list>
|
|
</div>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<$list filter="[<schema>jsonindexes[fields]]" variable="index">
|
|
<$let
|
|
config={{{ [<schema>jsonget[fields],<index>,[name]addprefix[$:/config/geospatial/demo/real-estate-demo/]] }}}
|
|
>
|
|
<$list filter="[<config>get[visible]else[yes]match[yes]]" variable="ignore">
|
|
<th>
|
|
<$text text={{{ [<schema>jsonget[fields],<index>,[caption]] }}}/>
|
|
</th>
|
|
</$list>
|
|
</$let>
|
|
</$list>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/GeoMarker]sort[caption]]">
|
|
<tr>
|
|
<$list filter="[<schema>jsonindexes[fields]]" variable="index">
|
|
<$let
|
|
config={{{ [<schema>jsonget[fields],<index>,[name]addprefix[$:/config/geospatial/demo/real-estate-demo/]] }}}
|
|
>
|
|
<$list filter="[<config>get[visible]else[yes]match[yes]]" variable="ignore">
|
|
<td>
|
|
<$let
|
|
fieldname={{{ [<schema>jsonget[fields],<index>,[name]] }}}
|
|
>
|
|
<$text text={{{ [<currentTiddler>get<fieldname>] }}}/>
|
|
</$let>
|
|
</td>
|
|
</$list>
|
|
</$let>
|
|
</$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>
|
|
|