1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-11 04:19:56 +00:00
TiddlyWiki5/editions/geospatialdemo/tiddlers/features/natural-earth-countries-low-res-popuptemplate.tid
Jeremy Ruston b1cd1306ef
Geospatial Plugin: Support for custom popups (#8404)
* Allow width, height and maxZoom to be specified

* Add images to city marker tiddlers

* Initial support for custom popups

* Custom popup templates for the US and Canadian example data

* Popups should use the geomap as their parent widget

This lets root widget messages work

* Typo in default popup template

* Clean up the use of popup templates

* Allow GeoJSON features to be hidden via a checkbox

* Popup template for volcano dataset

* Add Natural Earth country data

* Optimise marker SVG
2024-07-25 17:31:37 +01:00

33 lines
697 B
Plaintext

title: $:/geospatialdemo/features/natural-earth-countries-low-res/popupTemplate
!!! Countries of the World from Natural Earth
''<$text text={{{ [<feature>jsonget[properties],[name_en]] }}}/>'' (<$text text={{{ [<feature>jsonget[properties],[formal_en]] }}}/>)
<div style=`height: 10em; overflow: scroll;`>
<table>
<thead>
<tr>
<th>
Field
</th>
<th>
Value
</th>
</tr>
</thead>
<tbody>
<$list filter="[<feature>jsonindexes[properties]]">
<tr>
<td>
<$text text=<<currentTiddler>>/>
</td>
<td>
<$text text={{{ [<feature>jsonget[properties],<currentTiddler>] }}}/>
</td>
</tr>
</$list>
</tbody>
</table>
</div>