Help with the Geospatial plugin

Hello good people

I have been playing with the geospatial plugin examples and I see lots of areas where I would like to put this to use.

HOWEVER, despite having tried and tried over the last two days I cannot get any markers or lines to show up on maps in my wiki. I created the wiki from the latest version of TW and imported the latest versions of the Geospatial Utilities plugin, JSZip and XLSUtils.

I have created some marker tiddlers and also imported a geojson track which appears to be in the correct format.

I just cannot get the data to show on a map, despite having looked at the examples over and over again to see where I am going wrong.

I assume that the problem is something to do with the way the tiddlers are tagged. I can find no advice on this in the documentation.

Please can someone help with the basic steps to get me going.

Many thanks. Cheers, Rob

Have no fear, my friend. Help is here.
I had the same difficulty. The documentation is pretty complicated. Once you get one marker up, you’ll feel more confident.
Create Two Tiddlers:
1 For the Map
2 For the Marker

1 Map:

<$geomap
	state=<<qualify "$:/state/demo-map">>
	popupTemplate="ui/PopupTemplate"
>
	<$list filter="[all[tiddlers+shadows]tag[$:/tags/GeoMarker]]">
		<$geolayer lat={{!!lat}} long={{!!long}} alt={{!!alt}} color={{!!color}} properties={{{ [[{}]jsonset[title],<currentTiddler>] }}}/>
	</$list>
</$geomap>

2. Marker
We’ll call this “Restaurant” for this example.
Tag all your Marker Tiddlers with: $:/tags/GeoMarker
create two fields: lat and long
for the lat value: 43.324438
for the long value: -1.984882

That should get you started. If it does not, let me know. I’ll try again.

Hope this helps you get started.

For your GeoJSON, you might want to tag it with $:/tags/GeoFeature. Make certain Your GeoJSON is the correct type; there are actually two types. Make sure it’s in the plain one. You can use QGIS to convert them. And you’ll be able to convert other things as well such as GPS tracks to GeoJSON.

Many thanks for your help @AlfieA . That got me heading in the right direction.

I now have a map displaying two markers and another map displaying the track of a cycle ride that I did the other day.

Also I have managed to display a map with marker in the marker tiddler.

What I don’t understand is how the tiddler cities/Oxford at https://tiddlywiki.com/plugins/tiddlywiki/geospatial/ displays a map and yet there is no code in the tiddler !!

Cheers, Rob

This is because this wiki uses custom ViewTemplates to display tiddlers tagged “$:/tags/GeoFeature” or “$:/tags/GeoMarker”. You can read some documentation about ViewTemplates here.

Fred

Many thanks @tw-FRed

I thought that might possibly be the case. I found the template and now understand how to replicate the concept in my own wiki.

Cheers, Rob

You might find this interesting and/or helpful: TiddlyTools/Panels/Maps. To install, just visit this link and drag-and-drop the tiddler title into your own TiddlyWiki.

While TiddlyTools Maps can work “stand-alone”, it is also designed to use enhanced features provided by TiddlyTools/Panels/Location, which adds:

  • Get current GPS latitude/longitude using the tm-request-geolocation message from the GeoLocation plugin.
  • Select/save “named places” to store/re-apply latitude/longitude values.
  • Get latitude/longitude from address text or OLC PlusCode input using the Google Places API (requires a free Google API Key)
  • Lookup JSON summary and detailed address geo data from the Google Places API

The TiddlyTools Maps panel also makes use of the “Dom-to-image” plugin (experimental 5.3.7-prerelease), so you can save “snapshot” JPEG image tiddlers and then embed those images into other tiddlers.

enjoy,
-e

Many thanks for that @EricShulman . I will check that out.

Cheers, Rob