mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-07 18:39:57 +00:00
39 lines
832 B
Plaintext
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> |