This wiki is being moved to a new server and cannot be edited. Please sit tight. Thank you.

Discuss Extension "Semantic Maps"

First page
First page
Previous page
Previous page
Last page
Last page

Displaying multiple results on a single marker

I am struggling with formatting an output that will show me multiple entries on a single marker. I have multiple events (wiki pages) occurring at the same location and thus they have the same coordinates, but when clicking the marker on the map only one event is shown. I have tried both Google Maps v3 and OpenLayers and neither format seems capable of this. Marker clustering does not help either as the cluster does not show data when clicked. is there any way I can display multiple matching pages for a single coordinate?

22:10, 8 January 2016

Semantic Maps not rendering map when #ask (ing) and using format map

I use mediawiki 1.25.2 Semantic MediaWiki 2.2.2 Semantic Maps 3.2

When using

[[Has coordinates::+]]
| ?Has coordinates
| format=map

i get absolutely nothing. But when i render #displaymap then no problems. And if i use format=table then it renders with #ask also but with format=map nothing. page where #ask in entered

and page where i inserted -31° 57' 13", 115° 51' 25"

Is there something im missing here i have looked around and not find any fix to this.

Can somebody please help me

Thank you very much!!!

19:26, 10 October 2015

A look at the your [0] revealed a missing type declaration (hence the lat/long value as a red link) after action=purge it reappeared and your query should display the map just fine.

PS: The missing of property values could be caused by the 1.25.* release for more details see [1].

[0] [1]

04:17, 11 October 2015

Thanks for that

I tried entering new data for coordinates and same thing happened and after i manually purge all pages it renders ok. I will see the fix mentioned to see if it resolve the problem

Thanks for the quick response

04:43, 11 October 2015

Thanks for the quick bug fix release this solved the problem straight away.

No it updates every thing normally and #ask is rendering map with no problems any more.

Thank you very much !!!!

05:16, 11 October 2015

[SOLVED] "Open in Google Maps"


is there a way of adding a link to the map saying "Open in Google Maps" or "View in Google Maps"? I'd like to have the location automatically added into the Google Maps input fields. (It doesn't matter if the link is on/within or underneath the map itself.)

I'm using form fields similar to this location form within a form to create the coordinates. These coordinates then get copied into another form field to be stored as a property with type "Geographic coordinate".

When using this property in a simple link like{{{Geographic coordinates}}} Open in Google Maps] the coordinates won't work as they are stored with a space between them, like 50.77721349999999, -3.9994609999999966.

Any ideas on how to achieve this? Maybe I'm missing an obvious point?

I couldn't find anything in the numerous examples or in the docu about it.

23:39, 4 March 2015

It was too simple: The click on the "Google" logo does the trick.

23:38, 6 April 2015

Hah yeah, I remember also looking for that at some point several years back :)

22:32, 24 July 2015

Map center on user position

Is it possible to center a map on user position (got by mobile device) and show the points around it? Thank you.

15:40, 25 May 2015

This is not currently possible, though you can file a feature request at

15:47, 2 July 2015

openlayer map with popup tooltips (including page title)

I'd like to create a tooltip like the ones at this page: simply displaying the PAGE TITLE, using <a href="{{fullurl:pagename}}">{{PAGENAME}}</a> or something similar. I couldn't find any info on how to do this with semantic maps so far :( any ideas?

Second question: how do I make it so that if I click on the marker, the previously mentioned tooltip doesn't work as "hover" but remains on until the marker is clicked again?

19:26, 3 June 2015

map including all posts from certain category

I am building a wiki based on a specific territory... and I would like to have one function on the homepage: a map of this Territory showing only one (or more) categories of pages that include a map themselves. I have created a few pages that include a map, like for instance this one: [1] - and they're good on their own.

But now I would have to create a map that shows all pointers from a certain category, and even more than one. How can I do this? I've read quite a lot of documentation, but couldn't find any useful info about this. My aim is to make things "discoverable" via a map... someone must have done this already, but I could not find any useful info so far. Help! :)

18:38, 3 June 2015

Google geocharts


I came across a map that outputs a semantic query into a Google Geocharts ("google-geochart") format.

See "Number of Utility Companies by State"

I wanted to know if this / was a standard results format included in Semantic Maps, or if this was custom-made for OpenEI, as it appears to be very useful.

22:06, 16 January 2013

This is not Semantic Maps. In fact, it's not using Google Maps but some other Google visualization tool.

17:44, 18 January 2013

Has any more happened on this? It would be very useful if the functionality of the Geochart feature within Google Charts was available. From the look of the table required for the Javascript, it is feasible within Semantic Results Format, as much as the other Google Charts features are. My little sampler is at

I have done all the other stuff I need completely within Semantic MediaWiki including the calculations needed.

15:58, 28 August 2014

Compound Query could not render text correctly

Hi, i'm using compound query to display points on the map, and experienced some problem on the result. When i'm using Firefox and Chrome the text could not render correctly, but in Safari the text displayed correctly. Is this some kind of bug and how to fix this? Screenshot at

Anyway, i'm using MediaWiki 1.23.2 and Semantic Bundle 1.9.2 (Semantic Compound Queries updated to version 0.4). Thank you

15:55, 25 August 2014

Map form input display issue when used with show on select

Hi all-

I am experiencing an issue when displaying the map input field in use with the show on select feature in SF. I don't always want to display the map input field, and have set a checkbox with show on select to toggle a div containing the map input field. When the checkbox is selected and the div is displayed, it seems that only one tile of the map (showing southern India, Australia, and a chunk of Antarctica) is generated.

Additionally, there are issues when using the pan and zoom map features.

If I move the map input field outside of the associated show on select div, it works just fine.

Installed Versions: MediaWiki (Version 1.20.2), Semantic Forms (Version 2.5.1), Semantic Forms Inputs (Version 0.6), Semantic Maps (Version, Semantic MediaWiki (Version 1.8), Semantic Result Formats (Version 1.8)

Any advice is much appreciated!

22:15, 11 June 2014

Issue with semantic maps and mobile version

I installed semantic maps v 2.0 rc1 and mobilefronted v 0.7.0, in desktop mode working fine, but in mobile mode the map is gray with the word "loading...". I read that is a common problem, any fix?

21:58, 28 March 2014

Well, there definitively will not be one for the 2.x branch. What is happening when you install SM 3.x?

23:02, 28 March 2014

I've read that 3.x has the same display problems, unfortunately...

21:10, 30 March 2014

That's ouch. I think an issue report should be filed for this if it has not been done so far.

14:17, 31 March 2014

However, the problem is not only MobileFronted. I also tried some skins designed for mobile and have the same problem

02:57, 1 April 2014

Maps tracking category

There's a category in the extension Maps(which use the message named 'maps-tracking-category'), and all pages that use a map seem to be automatically added to this category. But when I use the ask function and set format=map, a map will displayed but the page is not added to the category.

12:28, 25 March 2014

Problems with googlemap in multiple form element

Dear Jeroen & all!
I'm having issues as follows:
I have a form with a template definition which is defined as "multiple". Inside there is a field with input type=googlemaps.

  • When using the form and clicking on the "Add another" button it opens and you can already see that the preloaded map looks strange, its somehow devided into squares with different colors as if the map could not load properly.
  • Furthermore, the preloaded grey text which asks to enter an address into the coordinates text field does not disappear when clicking into the field.
  • Finally when I enter something into one of the text fields and click on the update button, the page reloads and everything is gone, i.e. the form loads normal but the multiple form element is closed as it was the first call and nothing is saved.

What could be the problem?
Many thanks!!

19:31, 4 April 2013

Please specify the versions of the software you are using.

14:00, 5 May 2013

Dear Jeroen,
should all be up to date:

Mediawiki: 1.22.2
Semantic Forms: Version 2.7
Semantic Forms Inputs: Version 0.7
Semantic MediaWiki: Version 1.9.1
Semantic Result Formats: Version 1.9
Maps: Version 3.0

Many thanks!

13:58, 20 February 2014

I can't look into this now though have added an entry in the SM issue tracker:

21:11, 23 February 2014

Problems with openlayers map form input

Edited by 2 users.
Last edit: 19:25, 7 January 2014

I'm trying to set up a map form input with openlayers but the map doesn't show up.

My code:

{{{field|Position|mandatory|input type=openlayers}}}

With googlemaps it works fine. Anyone in here with a working map form input with openlayers can give me some hints?

My software versions: Semantic Forms (Version 2.5.3), Semantic Maps (Version, Semantic MediaWiki (Version, Maps (Version 2.0.1), Validator (Version 0.5.1)

btw: This example with openlayers is also not working: Semantic_Maps_examples/Mapping_service_(queries) And the map input here is also broken: Form:Location

16:51, 25 December 2013

Thanks for reporting this. The first linked OpenLayers map has now been fixed. I still have to check OpenLayers form inputs. Will do so before the 3.0 release which will be soonish.

19:26, 7 January 2014

Semantic Maps (google maps format) display "curl4" with a blue screen

Hi, When I try to use Semantic Maps with the following query

{{#ask: [[Category:MyCat]]
| ?Has coordinates
| format=googlemaps
| showtitle=off
| icon=Blue_marker.png

I only see "Curl 4" in the middle of a blue screen. Any idea?


  • In Category:MyCat page, I set [[Has display parameters::? Has coordinates;format=googlemaps3| ]]
  • In a page that belongs to MyCat category, I have something like: [[Has coordinates::{{#geocode:New York, NY, USA|geonames|format=float|directional=no }}]]
  • Maps extension is working fine. {{#display_map: ...}} gives me correct map display.
  • I am using the latest MediaWiki (1.21.2), Semantic Bundle ( with Semantic Maps ( I did not change the include order(Validator, ..., SMW, ..., SF, ..., Maps, SM, as specified in the installation guide)
  • I googled "Curl 4" but could not find anything related to Semantic Maps.
  • I changed Semantic Maps format from googlemaps to openlayers but still no luck.
  • Thank you very much.

Wikihy (talk) 14:54, 3 November 2013 (CET)

15:54, 3 November 2013

I have not seen this before. Can you look at the page (HTML) source? Is there an error message there, from which you only happen to see the "Curl 4" part when looking at the actual page?

22:21, 24 November 2013

Jeroen, thanks a lot for your reply.

I checked HTML source but no errors found. I then found that "Curl4" is just like "ace lock service inc", which points to somewhere in the ocean near west Africa (0°N, 0°W). I then noticed that my geocode result looks like (1°北, 2°西) instead of (1°N, 2°W). BTW, my site language is Chinese. I then changed the site language to English and Semantic Maps worked fine.

My guess is Geographic coordinate's parser does not support i18n geocode formats, which is totally understandable. I just need to make the geocode result look like (1°N, 2°W) in my wiki. That should be easy.

15:50, 29 November 2013

The PHP library used by Maps 3.0 supports using alternate symbols for the direction labels. So far Maps is not making use of this facility though.

05:10, 30 November 2013

SemanticMaps 3.0c error

Wanted to give SMW 1.9 a whirl, but got hung up on this error:

Fatal error: Call to a member function setInputTypeHook() on a non-object in C:\inetpub\\dev\extensions\SemanticMaps\includes\forminputs\SM_FormInputs.php on line 101

I have all of the extension dependencies, but I'm still on Mediawiki 1.20. Is 1.21 absolutely necessary, or is something else causing the error?


00:35, 15 November 2013

This looks like you are loading Semantic Forms after Semantic Maps. It needs to be the other way around.

02:12, 24 November 2013

Advice with Semantic Maps

I'm trying to set up a wiki linked to site in my village ( - the combination of MediaWiki, SMW, Maps and Semantic Maps seems ideal if only I can make it work

A typical page has this code:

|The coordinates=52.8205, 1.5371

which calls a template:

| 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|}}}


note I'm using two properties as I can't get either to work.

The homepage which is running the query:

| ?Has coordinates
| ?coordinates
| format=table

| ?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.

15:04, 13 August 2013

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]]

Main Page (which shows coordinates in the table but no markers on the map):

| ?Has coordinates
| format=table

| ?Has coordinates
| format=map

16:00, 13 August 2013

Same here. Can't make it work. Is there some debugging code we could generate ?

Except for features that require an API key, like layers (and other problem ...)
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.

13:24, 25 August 2013

tutorial on adding a map form input

Would anyone be willing to provide a step by step tutorial on how to add a semantic map form input (preferably through page schemas but not required). I don't want the form to create a new page, but I want it to be a field in an existing form where a user puts in the address, then the coordinates and map are calculated and inserted (into the body, infobox, whatever) of an existing page with an existing form.



16:28, 31 July 2013

I'm also interessed in such a tutorial. Right now I have a SF with header tabs and wanted to add an new tab like:

=Geodata= {|class="formtable" ! The location | {{{field|Location type|required|default=City}}} |- ! Located in: (optional) | {{{field|Located in|autocomplete on=Locations}}} |- ! Coordinates | {{{field|Has coordinates|input type=googlemaps}}} |}

But this caused an error. My setup:

  • MediaWiki 1.20.3
  • Semantic MediaWiki (Version
  • Semantic Maps (Version 2.0 rc1)
  • Maps (Version 2.0.1)
11:00, 6 August 2013

Custom marker on googlemaps input type

Hi, Is it possible to give custom marker in "input type = googlemaps" ?

For example : field|Location|property=Location|input type=googlemaps|height=800| width=800| centre=49.0,9.67| zoom=5| type=hybrid |icon=red_markder.png

icon parameter seems not working.

13:50, 25 July 2013

"icon" is the right parameter to use. I don't quite recall, but perhaps you need to have "File:red_marger.png" as value. Also make sure the image actually exists on your wiki.

04:57, 6 August 2013

Form: How to set input to mandatory?

In a form I have a field with input type=googlemaps.
How can I force users to fill this field?
I tried adding |mandatory but this didn't work.

If a user doesn't add a location/coordinates, the form seems to be stuck after hitting "save" and the page is not saved...

Thanks for any help!

10:05, 13 April 2013

Hi, I have the same problem as Stefahn :

If a user doesn't add a location/coordinates, the form seems to be stuck after hitting "save" and the page is not saved...

My confs :

  • MediaWiki 1.20.6
  • PHP 5.4.6 (cgi-fcgi)
  • MySQL 5.5.14
  • Semantic Forms (version 2.5.2)
  • Semantic Maps (version
  • Semantic MediaWiki (version


Nicolas NALLET (Sémantiki)

14:23, 27 May 2013

I personally have not found a working combination of SF, SM and SMW either. :( One of the upgrades broke input type maps completely. On my wiki it is not even possible to save if coordinates were provided. So far I did not have the time to dig into this further, so if others have more insight ...

17:22, 27 May 2013

Configuring semantic maps form

The semantic map form I'm using has two fields and buttons at the top: - one for lat/lng, followed by "Update map" button - one for an address (with gray text "Enter address here"), followed by "Lookup coordinates" button

I'd like to simplify that a bit, and have just one button ("Lookup") and one field (which would let me just enter the address).

Do such configuration options exist? I couldn't find them anywhere.

I did find a conditional on "this.showCoordinate" in forminputs/jquery.mapforminput.js, but I'm not sure if this matches a configuration option.

Alexthepuffin (talk) 18:46, 1 April 2013 (CEST)

18:46, 1 April 2013

You cannot currently specify to not display this field using some option. And it is not surprising you did not undertand what this conditional is about, since it is just plain bad code that really should be rewritten :)

14:08, 5 May 2013
First page
First page
Previous page
Previous page
Last page
Last page