diff --git a/plugins/tiddlywiki/geospatial/demo/real-estate-demo/real-estate-demo.tid b/plugins/tiddlywiki/geospatial/demo/real-estate-demo/real-estate-demo.tid new file mode 100644 index 000000000..569833927 --- /dev/null +++ b/plugins/tiddlywiki/geospatial/demo/real-estate-demo/real-estate-demo.tid @@ -0,0 +1,47 @@ +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 <>) viewed as both a map and a table. + +<$let + schema={{$:/plugins/tiddlywiki/geospatial/demo/real-estate-demo/schema}} +> + + + + <$list filter="[jsonindexes[fields]]" variable="index"> + + + + + + <$list filter="[all[shadows+tiddlers]tag[$:/tags/GeoMarker]sort[caption]]"> + + <$list filter="[jsonindexes[fields]]" variable="index"> + + + + + +
+ <$text text={{{ [jsonget[fields],,[caption]] }}}/> +
+ <$let + fieldname={{{ [jsonget[fields],,[name]] }}} + > + <$text text={{{ [get] }}}/> + +
+ + + + diff --git a/plugins/tiddlywiki/geospatial/demo/real-estate-demo/schema.json b/plugins/tiddlywiki/geospatial/demo/real-estate-demo/schema.json new file mode 100644 index 000000000..63aebad72 --- /dev/null +++ b/plugins/tiddlywiki/geospatial/demo/real-estate-demo/schema.json @@ -0,0 +1,14 @@ +{ + "fields": [ + {"name": "address", "caption": "Address", "type": "string"}, + {"name": "broker", "caption": "Broker", "type": "string"}, + {"name": "city", "caption": "City", "type": "string"}, + {"name": "lat", "caption": "Latitude", "type": "number"}, + {"name": "long", "caption": "Longitude", "type": "number"}, + {"name": "price", "caption": "Price", "type": "number"}, + {"name": "salesagent", "caption": "Sales Agent", "type": "string"}, + {"name": "state", "caption": "State", "type": "string"}, + {"name": "title", "caption": "Title", "type": "string"}, + {"name": "zipcode", "caption": "Zip Code", "type": "string"} + ] +} diff --git a/plugins/tiddlywiki/geospatial/demo/real-estate-demo/schema.json.meta b/plugins/tiddlywiki/geospatial/demo/real-estate-demo/schema.json.meta new file mode 100644 index 000000000..027a99fa1 --- /dev/null +++ b/plugins/tiddlywiki/geospatial/demo/real-estate-demo/schema.json.meta @@ -0,0 +1,3 @@ +title: $:/plugins/tiddlywiki/geospatial/demo/real-estate-demo/schema +type: application/json +