From ab845fefaee3baec9fdd7f760dca9fd9005f1bab Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Mon, 3 Apr 2023 17:59:01 +0100 Subject: [PATCH] Docs updates --- editions/geospatialdemo/tiddlers/HelloThere.tid | 2 +- editions/geospatialdemo/tiddlers/Layers.tid | 7 +------ editions/geospatialdemo/tiddlers/Markers.tid | 7 +------ plugins/tiddlywiki/geospatial/docs.tid | 13 +++++++++++++ 4 files changed, 16 insertions(+), 13 deletions(-) diff --git a/editions/geospatialdemo/tiddlers/HelloThere.tid b/editions/geospatialdemo/tiddlers/HelloThere.tid index 0f8fc8aff..f554dd892 100644 --- a/editions/geospatialdemo/tiddlers/HelloThere.tid +++ b/editions/geospatialdemo/tiddlers/HelloThere.tid @@ -6,7 +6,7 @@ title: HelloThere !! Prerequisites -This demo requires that the API keys needed to access external services be obtained by the end user and manually configured. These keys are stored in the browser and so only need to be set up once. See the ''Settings'' tab for details. +This demo requires that the API keys needed to access external services be obtained by the end user and manually configured. These keys are stored in the browser and so only need to be set up once. See the ''Settings'' tab below for details. !! Demos diff --git a/editions/geospatialdemo/tiddlers/Layers.tid b/editions/geospatialdemo/tiddlers/Layers.tid index a42264e0e..c2b1d0f45 100644 --- a/editions/geospatialdemo/tiddlers/Layers.tid +++ b/editions/geospatialdemo/tiddlers/Layers.tid @@ -1,12 +1,7 @@ title: GeoLayers tags: $:/tags/GeospatialDemo -This is a list of all the tiddlers containing ~GeoJSON layers in this wiki (identified by the tag <>). A ~GeoJSON layer identifies a region of the surface of the earth via a series of polygons defined as lines between consecutive points specified via latitude and longitude (and optional elevation). ~GeoJSON layers may also contain associated metadata in JSON format. - -You can create new layers by: - -* Visit the tiddler for a ~GeoJSON marker and use the button to calculate travel time -* Importing a ~GeoJSON layer +This is a list of all the tiddlers containing ~GeoJSON layers in this wiki (identified by the tag <>). A ~GeoJSON layer identifies a region of the surface of the earth via a series of polygons defined as lines between consecutive points specified via latitude and longitude (and optional altitude). ~GeoJSON layers may also contain associated metadata in JSON format.
    <$list filter="[all[shadows+tiddlers]tag[$:/tags/GeoLayer]sort[caption]]"> diff --git a/editions/geospatialdemo/tiddlers/Markers.tid b/editions/geospatialdemo/tiddlers/Markers.tid index 681c37d62..1943be64f 100644 --- a/editions/geospatialdemo/tiddlers/Markers.tid +++ b/editions/geospatialdemo/tiddlers/Markers.tid @@ -1,12 +1,7 @@ title: GeoMarkers tags: $:/tags/GeospatialDemo -This is a list of all the tiddlers containing ~GeoJSON markers in this wiki (identified by the tag <>). A ~GeoJSON marker identifies a location via latitude and longitude (and optional elevation) and may also contain associated metadata in JSON format. - -You can create new markers by: - -* Importing geotagged photographs from Flickr -* Importing a ~GeoJSON marker +This is a list of all the tiddlers containing ~GeoJSON markers in this wiki (identified by the tag <>). A ~GeoJSON marker identifies a location via latitude and longitude (and optional altitude) and may also contain associated metadata in JSON format.
      <$list filter="[all[shadows+tiddlers]tag[$:/tags/GeoMarker]sort[caption]]"> diff --git a/plugins/tiddlywiki/geospatial/docs.tid b/plugins/tiddlywiki/geospatial/docs.tid index ceda6e25c..4856cfe52 100644 --- a/plugins/tiddlywiki/geospatial/docs.tid +++ b/plugins/tiddlywiki/geospatial/docs.tid @@ -1,5 +1,18 @@ title: $:/plugins/tiddlywiki/geospatial/docs +! Widgets + +!! `<$geomap>` widget + +The `<$geomap>` widget displays an interactive map using [[Leaflet.js|https://leafletjs.com/]]. + +The following attributes are supported: + +|!Attribute |!Description | +|''state'' |The title of a state tiddler used to track the state of the map in the `zoom`, `long` and `lat` fields | +|''layers'' |A filter identifying the GeoJSON layer tiddlers to be displayed on the map | +|''markers'' |A filter identifying the GeoJSON marker tiddlers to be displayed on the map | + ! Filter Operators !! `geopoint` operator