--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/7d795fb0-fa78-4795-9cb5-59a26733d82b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/0544f30e-2c4e-4ecf-8e25-d1ff0bb6f557%40googlegroups.com.
Sylvain,Thanks so much for this, it worked right out of the box on my android phone, with a prompt to access my geolocation.
- Install the https://sycom.github.io/TiddlyWiki-Plugins/#%24%3A%2Fext%2Fmodules%2Fwidgets%2Fgeolocation-widget.js
- Then Place <$geoloc target="Geolocation Store" /> in a tiddler and click.
I see a lot of potential for this. But some questions arrise
- Can we make it happen on startup
- How do we refresh the location as we move (with a click sure)
Also If I may draw yours and others attention to a great GeoLocation solution https://what3words.com/
- I would love some help being able to translate the gps location to a W3W word
- This needs plugins to support the w3w apis (Currently Outside my skill set)
lang=fr
&key=MY-API-KEY and an xmlhttprequest() since the API support CORS. You should look into it, I learned code on my own resolving issues like this. By the way I don't think I will work on this now since Leaflet Plugin needs a lot more improvements and I don't have enough time for it already...To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/d7dbc9cc-1b76-4303-a841-c78136b8e32c%40googlegroups.com.
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
<$edit-text tag="input" tiddler="$:/temp/newloc" placeholder="Titel des neuen Ortes"/><$set name=target value={{$:/temp/newloc}} > <$geoloc target=<<target>> /></$set>
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/e636d7dc-2314-4af9-bd42-7143a367a7a9%40googlegroups.com.
<$edit-text tag=input tiddler="$:/temp/newloc" placeholder="Titel des neuen Ortes"/> <$geoloc />
<$list filter="[{$:/temp/newloc}minlength[4]!is[tiddler]]">
<$set name=target value={{$:/temp/newloc}} >
<$list filter="[[Position_speichern]has[point]]"><$button class="tc-btn-big-green">
Eintrag erzeugen point<$action-setfield $tiddler=<<target>> $field="point" $value={{!!point}} />
<$action-navigate $to={{$:/temp/newloc}}/><$action-deletefield point points/></$button></$list>
<$list filter="[[Position_speichern]has[points]]">
<$button class="tc-btn-big-green">Eintrag erzeugen points<$action-setfield $tiddler={{$:/temp/newloc}} $field="points" $value={{!!points}} />
<$action-navigate $to={{$:/temp/newloc}}/><$action-deletefield point points/></$button></$list>
</$set></$list>
Hello Jan,
Better understand your workflow now.
I made a short test to check something and discovered a new mystery, action-setfield works perfectly with almost any field name but not with point nor points (!?!)
maybe somebody more fluent in TiddlyWiki can explain this. Maybe the leaflet plugin brake something or maybe just the template...
I found a workaround by separating button for "point" and button for "points"
<$edit-text tag=input tiddler="$:/temp/newloc" placeholder="Titel des neuen Ortes"/> <$geoloc />
<$list filter="[{$:/temp/newloc}minlength[4]!is[tiddler]]"><$set name=target value={{$:/temp/newloc}} >
<$list filter="[[Position_speichern]has[point]]"><$button class="tc-btn-big-green">Eintrag erzeugen point<$action-setfield $tiddler=<<target>> $field="point" $value={{!!point}} /><$action-navigate $to={{$:/temp/newloc}}/><$action-deletefield point points/></$button></$list>
<$list filter="[[Position_speichern]has[points]]"><$button class="tc-btn-big-green">Eintrag erzeugen points<$action-setfield $tiddler={{$:/temp/newloc}} $field="points" $value={{!!points}} /><$action-navigate $to={{$:/temp/newloc}}/><$action-deletefield point points/></$button></$list>
</$set></$list>
Which seems to work. BUT something is wrong with leaflet plugin or geoTiddler template and clicking on the button will brake the wiki :-/
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/3b54775a-3bb3-422c-b181-b4bf02e7a839%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/0544f30e-2c4e-4ecf-8e25-d1ff0bb6f557%40googlegroups.com.