1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-10-02 17:00:45 +00:00
TiddlyWiki5/plugins/tiddlywiki/geospatial/tests/widgets/geomap-draggable-marker.tid
jeremy@jermolene.com 4b919e3b7f Remove unwanted log
2023-06-13 18:23:37 +01:00

39 lines
832 B
Plaintext

title: $:/plugins/tiddlywiki/geospatial/tests/widgets/geomap-draggable-marker
description: geomap widget with draggable marker
type: text/vnd.tiddlywiki-multiple
tags: [[$:/tags/wiki-test-spec]]
title: Description
text: Map with draggable marker
+
title: Oxford
lat: 51.751944
long: -1.257778
alt: 0
+
title: Output
\procedure update-actions()
<$action-setfield $tiddler="Oxford" $field="lat" $value=<<lat>>/>
<$action-setfield $tiddler="Oxford" $field="long" $value=<<long>>/>
\end
<$geomap
state=<<qualify "$:/state/demo-map">>
>
<$tiddler tiddler="Oxford">
<$geolayer
lat={{!!lat}}
long={{!!long}}
alt={{!!alt}}
color={{!!color}}
name={{!!title}}
draggable="yes"
updateActions=<<update-actions>>
/>
</$tiddler>
</$geomap>
+
title: ExpectedResult
<p><div style="width:100%;height:600px;"></div></p>