1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-26 00:46:52 +00:00

Fix lat long transposition

This commit is contained in:
jeremy@jermolene.com 2023-03-06 14:05:41 +00:00
parent e051b2dbcf
commit 9ab2623629

View File

@ -70,7 +70,7 @@ title: $:/plugins/tiddlywiki/geospatial/demo/ui/geomarker
!! Distance to other markers !! Distance to other markers
<$let <$let
thisLocation={{{ [geopoint{!!lat},{!!long}] }}} thisLocation={{{ [geopoint{!!long},{!!lat}] }}}
> >
<ul> <ul>
<$list filter="[all[shadows+tiddlers]tag[$:/tags/GeoMarker]sort[caption]] -[<currentTiddler>]"> <$list filter="[all[shadows+tiddlers]tag[$:/tags/GeoMarker]sort[caption]] -[<currentTiddler>]">
@ -78,7 +78,7 @@ title: $:/plugins/tiddlywiki/geospatial/demo/ui/geomarker
<$link><$view field="caption"><$view field="title"/></$view></$link> <$link><$view field="caption"><$view field="title"/></$view></$link>
-- --
<$let <$let
otherLocation={{{ [geopoint{!!lat},{!!long}] }}} otherLocation={{{ [geopoint{!!long},{!!lat}] }}}
> >
<$text text={{{ [geodistance<thisLocation>,<otherLocation>,[miles]fixed[0]] }}}/> miles <$text text={{{ [geodistance<thisLocation>,<otherLocation>,[miles]fixed[0]] }}}/> miles
</$let> </$let>