I'm trying to set up a wiki linked to site in my village (http://hhg.clusteragency.co.uk/index.php) - the combination of MediaWiki, SMW, Maps and Semantic Maps seems ideal if only I can make it work
A typical page has this code:
{{location |The coordinates=52.8205, 1.5371 }}
which calls a template:
{{Infobox | data1 = {{#display_map: {{{The coordinates|52.82,1.53}}} |height=250|width=333|type=hybrid|static=yes}} | data2 = [[coordinates::{{{The coordinates|52.82,1.53}}}]] | data3 = [[Has coordinates::{{{The coordinates|52.82,1.53}}}]] | image = {{{image|}}} }} <includeonly>[[Category:Locations]]</includeonly>
note I'm using two properties as I can't get either to work.
The homepage which is running the query:
{{ #ask: [[Category:Locations]] | ?Has coordinates | ?coordinates | format=table }} {{ #ask: [[Category:Locations]] | ?Has coordinates | ?coordinates | format=map }}
So the table shows that both properties are being pulled in, but the map does not display any markers. The same thing happens with KML type - it's like Semantic Maps is looking for a different property name. I've trawled through all the documentation and examples I can find and tried everything I can think of.
Versions installed should all be current: MediaWiki: 1.21.1, Semantic Maps (Version 3.0 alpha), Semantic MediaWiki (Version 1.9 alpha), Maps (Version 3.0 alpha)
Any suggestions or advice would be HUGELY appreciated.
Going back to basics, I can confirm that I've just installed a completely fresh MediaWiki instance, and installed the Semantic Bundle following instructions, uncommenting just Maps and Semantic Maps in SemanticBundleSettings and trying the following:
Page (which works as expected):
{{#display_map: 52.8205, 1.5371}} [[Has coordinates::52.8205, 1.5371]] [[Category:Locations]]
Main Page (which shows coordinates in the table but no markers on the map):
{{ #ask: [[Category:Locations]] | ?Has coordinates | format=table }} {{ #ask: [[Category:Locations]] | ?Has coordinates | format=map }}
Same here. Can't make it work. Is there some debugging code we could generate ?
- Versions = latest from GIT: http://edutechwiki.unige.ch/en/Special:Version
- Maps = working: http://edutechwiki.unige.ch/en/Maps_%28MediaWiki_extension%29
- Except for features that require an API key, like layers (and other problem ...)
- Sem. Maps test (not working): http://edutechwiki.unige.ch/en/Category:MediaWiki_extension
- I believe that the coordinates are ok (they are produced with geocoding in a semantic forms template) and if I understand right, it also should work with addresses.
... but maybe I am a bit blind to a little mistake, since I am very new to this.