Geospatial plugin - Help required with the PopupTemplate for a GeoMarker

Hello again

I am still trying to get my head around the Geospatial plugin.

I have created some simple GeoMarkers and I am able to display them on a map. I have been trying to get my around the format for the PopupTemplate for a GeoMarker. I have looked at the example ui/PopupTemplate at https://tiddlywiki.com/plugins/tiddlywiki/geospatial/ but have not been able to work it out.

Can anyone offer any help with this?

Cheers, Rob

@Rob_Jopling , did you get anywhere with this? I’d like a facility to click on a geomarker and be able to perform some actions, like go to a tiddler with more data.

bobj

The $geolayer widget supports an optional clickActions=... param.

See the Geospatial Plugin’s $geomap widget documentation for an example of “Map with geomarker with actions”.

-e

Thanks @EricShulman , I remember reading something about this but haven’t been able to find where I read it.

Bobj

Hi @Bob_Jansen

Since seeing your post I have been playing around with this and I came up with the following modified code for ui/PopupTemplate which appears to do what you were looking for.

<div width="300px">
	<$let currentTiddler={{{ [<feature>jsonget[properties],[title]addsuffix[ - more data]] }}}>
		<$link><$text text=<<currentTiddler>>/></$link>
	</$let>
</div>

It could be adapted to perform other actions.

I hope that this is helpful.

Cheers, Rob

Thanks @Rob_Jopling , I will try what you suggest.

Bobj