Loading...
 
Skip to main content

Features / Usability


Geotagging

The gmap plugin makes an obscure reference to geotagged wikis, etc. How can I specify coordinates for wiki entries? Is that done through trackers or something? I've searched but can only find a couple passing references to geotags. Thanks.
Correction. I'm using the GOOGLEMAP plugin. Not GMAP.

I had to look at the Googlemap plugin source code to figure out how to make this work. There's either a bug in the plugin, or an error in the documentation (depending on which way you want to look at it).

First you have to enable PluginAttributes.
Next you tag a wiki page by specifying its coordinates via the attribute plugin:

{attributes tiki_geo_lat="##.####", tiki_geo_lon="-##.####"}

Now here's the bug. According to the Googlemap plugin docs, it will use the type and ID of the current object to grab the geo attributes. That's not true - looking at the source, it simply falls through if the object type and ID are not explicitly specified.

Thus in the Googlemap plugin you have to add:
locateitemtype="wiki page", locateitemid="Name of Page"

Also the PluginAttributes documentation needs to have the curly braces escaped, because the wiki is trying to interpret it as a plugin.
http://doc.tiki.orgQuestion