I am trialing the geospatial plugin. I can get a world map to show with a geomarker at the correct lat & long.
However, if I specify a zoom level, the map always seems to display at zoom level 0
ViewTemplate code is
<$list filter="[<currentTab>caption[Map]]" >
<$geomap state="$:/TLS/MapState" >
<$geolayer
lat=<<parentLatitude>>
long=<<parentLongitude>>
alt=0
zoom=16
/>
</$geomap>
</$list>
The two coord variables are correctly set cause I can simply zoom in, 16 times, to see the map I want. However, the specified zoom parameter on the geomap call seems to be ignored.
I have tried quoting the zoom value, ie, “16”, seems to make no difference
If I set the zoom field on the state tiddler before rendering the map, then the map just shows blank.
Anyone got any clues?
@EricShulman, I am also trying your plugin but am having difficulties showing any map. But persevering…
bobj
Hi @Bob_Jansen there is no “zoom” attribute on the <$geolayer> widget. Setting a specific zoom level is accomplished by modifying the “zoom” field of the state tiddler. Can you share the code you tried?
@jeremyruston , I did try setting the zoom in the state tiddler before calling the geolayer widget but all I got was a blank display . Will try setting it after the call to see if that makes a difference.
Bobj
@jeremyruston,
I am back, looking at my code.
<$list filter="[<currentTab>caption[Map]]" >
<$geomap state=<<qualify "$:/TLS/MapState">> >
<$geolayer
lat=<<parentLatitude>>
long=<<parentLongitude>>
/>
</$geomap>
</$list>
This always starts a map for a gun with the world including the blue marker for the gun’s location. If I then zoom in and go to another gun, again I see the world and have to zoom in.
If I go back to the first gun, the map zooms in to the last value.
Ok, not what I want but at least only one zoom process per map. But, on the downside, many many state tiddlers. I assume state tiddlers are on a per map basis and stored until deleted?
if I remove the ‘qualify’ macro call and code in a permanent tiddler with no qualify, then the lat, long and zoom appear to be shared between maps. So, map for gun 2 shows the map for gun 1 at the current zoom level but wrong lat/long. So the lat and long in the geolayer call are overridden by what is stored in the state tiddler.
Is there anyway to have a permanent zoom with lat and long provided by the geolayer call?
Apart from that, I really like the map render. Simple with no visual frills.
bobj