Extension talk:Maps

Jump to navigation Jump to search

About this board


Maps extension leaves parsing error with {{coord}}

Chapjo (talkcontribs)

Installing MAPS extension causes a call to {{coord}} to print this error; "Fatal error: The format of the coordinate could not be determined. Parsing failed." The {{coord}} continues to display correctly, however, the error message displays in a pink window below the coordinate.

Maps is installed via composer as the installation docs say. The only way I have been able to remove the error is to remove "mediawiki/maps" from composer.json AND reboot the server. The error will persist until machine is rebooted.

Hoping someone has seen this error and knows the fix.Or perhaps I am missing some other template/module/extension that needs to be installed.



Kghbln (talkcontribs)

I assume that there is something wrong with the "Coord" template you created on you wiki.

Chapjo (talkcontribs)

Thank you,

I have reverted to version 3.8.2 where the parsing error does not occur. I should have tried that to begin with. Installing 4.x.x seems to cause the error.



Kghbln (talkcontribs)

What is the content of the "Coord" template? Is it a public wiki you could point to.

Chapjo (talkcontribs)
Kghbln (talkcontribs)

Ah ok, one of these wikipedia template monsters. Note that Wikipedia does not use the Maps extension so there is probably something it the lua module the template uses that does not play. So something will have to be adapted.

Probably it will be good to get a stack trance for the error. Perhaps there is something that the Maps extension can do to fail more user friendly.

Chapjo (talkcontribs)

Thank you Kghbln,

Having turned on all the debug tools, I found only one message that appeared to sorta-kinda look suspicious;

[GlobalTitleFail] MessageCache::parse called by ParserHook->validateAndRender/ParserHook->renderFatalError/Message->parse/Message->toString/Message->parseText/MessageCache->parse with no title set.

However, and for what it's worth, the actual language of the error message is found on line 83 @


which is part of the data-values/geo package. I'm not sure, but I think that it is installed during the Maps composer installation. In the meantime, I have added "data-values/geo": "1.1.8" into composer.json. No difference was made with 1.1.8 installed with Maps 4.0.5. The parsing errors still occurs.

Thanks again,


Kghbln (talkcontribs)

Indeed, "data-values/geo" is fetched as a dependency of "Maps". Adding it manually to your "composer.local.json" file will not change this. I am not sure where best to report. Since Maps 3.x is working I would report initially at this spot to make the developer aware. That spot will be the second approach.

Chapjo (talkcontribs)

Thanks K.

Will follow your advice.


Brunodapei (talkcontribs)

i have the same problem. did you found how to fix? thank you

Reply to "Maps extension leaves parsing error with {{coord}}"
Squeak24 (talkcontribs)

Hi, I am trying to get Maps working on a Wiki I have installed on an A2 Hosting reseller account.

Obviously I don't have access to composer on this, so I downloaded maps using composer onto a local server and uploaded it to my server as I have done many times at work from an internet facing machine to my production server which isn't internet facing.

I am a little unsure what I am doing wrong.

Any help is appreciated. (talkcontribs)

You should be able to use SSH and install composer from command line. Look for SSH in your site's cPanel dashboard.

Reply to "500 Error when installing maps"

Few Questions: Full Screen Button, Close tooltips upon another opening, moving the 'Filter Markers' input.

1 (talkcontribs)

Hello all,

I'm hoping to get some help here as I'm failing. Any help I can get is appreciated.

I'm using Semantic Maps with the Google API on my Foreground skin.

  1. I want to add a 'Full Screen' button in the corner like a lot of maps have. Any clues on how to add that? Someone posted a thread below saying they had done it but offered no instructions.
  2. When you select a pin it opens the information tooltip. However when you select another, the previous ones remain open. I'm creating a densely populated map which gets messy really fast when opening multiple locations. Is there any way to have only one tooltip open at a time?
  3. On mobile the 'Filter Markers' input box is hidden behind the 'Map/Satellite' toggle buttons. I've had a heck of a time trying to move the Filter Markers input to no avail.

I'm pullin my hair out here! Thank you in advance!

Reply to "Few Questions: Full Screen Button, Close tooltips upon another opening, moving the 'Filter Markers' input."

How to integrate a legend to the map?

Justadust (talkcontribs)
Reply to "How to integrate a legend to the map?"
Heinrich krebs (talkcontribs)

Hi, I want users to use the Mapeditor to create shapes and stuff on the map, then store them in a property.

To show the map, I want to use {{#show: with format=template so that I get all the lines back in a way that the {{#display_map: Parser understands, but it doesn't seem to work - generating the syntax-error [[smw::off].

How come ?

Jeroen De Dauw (talkcontribs)

Can you paste the template?

Heinrich krebs (talkcontribs)

Here you mean. Sure (got the wiki working after again an update error)... So.

This is the "upper" template, doing the semantic search of either "Artikel" or the current page and gives all matching properties to "KarteZurSeite-Zeile". As was suggested, I tried to get rid of the [[SMW::on]] code by using #replace:.

}}</includeonly><noinclude>[[category:System]]Diese Vorlage soll alle Attribute des Names „[[:Attribut:KartenInfo|KartenInfo]]” auf einer Karte anzeigen.</noinclude>

This is the "lower" Template. Basically adding a | (Pipe) before the property and return it.

<noinclude>[[category:System]] Diese Hilfs-Vorlage ist für „[[Vorlage:KarteZurSeite]]”.</noinclude>|{{{1}}}
Revansx (talkcontribs)

did you ever get a solution for this? -Rich (@Revansx)

Reply to "smw::off ?"
Squeak24 (talkcontribs)

Hi, I am looking at using this Maps extension to display businesses in the vicinity of the user.

With the maps extension can you search for businesses that are near you and detail how far they are away?

Squeak24 (talkcontribs)

I should have gone to the bottom part of the page. I will have to have a play over the weekend

Extension:Whats Nearby

Reply to "distance from current location"

Is it possible to use it with Google Mars?

Robertinventor (talkcontribs)


It's for my astrobiology wiki http://encyclopediaofastrobiology.org

Would be nice to be able to show Google Maps for locations on Mars of features and landers / rovers.

Have it working with one of my other wikis for Earth for supervolcanoes with service="googlemaps3" was wondering if you can get Mars by specifying another service or something?? https://doomsdaydebunked.miraheze.org/wiki/Why_we%27d_have_centuries_of_warning_of_a_supervolcano_eruption_-_with_zoomable_map_of_top_seven_supervolcanoes#Where_can_we_expect_the_next_supervolcano.3F

Thanks, very useful extension!

Robertinventor (talk) 11:27, 25 September 2018 (UTC)

Arlo Barnes (talkcontribs)
Robertinventor (talkcontribs)

Oh that's helpful, thanks. For instance {{coord|4.5895|S|137.4417|E|globe:Mars}} takes you to the Curiosity landing site. It was in my wiki all along, I just hadn't noticed it, it's there in some of the pages imported from Wikipedia, e.g. uriosity (rover)#Landing siteI can now use the same approach in other pages that don't have these coordinates embedded.

It's not quite as flexible as the maps, can't embed it with multiple markers, I'd really like to do something like this as an embeddable zoomable map:

Template:Features and artificial objects on Mars

It would be nice to be able to do it like my Map of top seven supervolcanoes.

So question is still open if anyone else knows how to do that, but it's great to know about WikiMiniAtlas, thanks! Robertinventor (talk) 19:40, 26 September 2018 (UTC)

Reply to "Is it possible to use it with Google Mars?"

Fullscreen button in Google Maps

Henryfunk (talkcontribs)

FYI: The Maps extension includes a custom fullscreen control for Google Maps because there didn't used to be one in the Google Maps Javascript API, but this was added in version 3.23 of the API. See the release notes. I have hacked Maps a little, and you can see how the new control looks at this page (top right corner of map).

Reply to "Fullscreen button in Google Maps" (talkcontribs)

Is possible to use custom base maps in Maps extension, through this kind of services?

Thanks a lot

Reply to "WMS and WMTS services"

The map has stopped displaying correctly

Antohabio (talkcontribs)

If the query does not specify the coordinates, but the name (city for example), then the map is positioned simply on the center of the planet. If you specify the coordinates, it is centered on the coordinates as needed.

Previously, it worked correctly.

The latest versions of mediawiki, semantic and maps installed.

For example, page Belgium - http://anthecology.org/a/Belgium (talkcontribs)

I'm having the same exact problems. Were you able to resolve? (talkcontribs)

I am using {{#display_map:CITY_NAME|zoom-6|height=400}}

If I write CITY_NAME with English, the map workes well. But if I use Korean name, the map show wrong place.

Would you recommend what to check?

My private wiki used Debian, Mediawiki 1.28.2, SMW 2.5.1.

Antohabio (talkcontribs)

I found that when loading a tab with a map there must be a constriction - google.maps.event.trigger (map, "resize"); - which recalculates the size of the map and the positioning of the markers. However, it is apparently not envisaged in this extension.

Maybe the extension author will be able to add this construct to the required place in the code ??

2001:470:8:C7:0:0:0:1BC (talkcontribs)

Having this same issue. Using city name does not work.

Wmengle (talkcontribs)

Just adding another voice to say that we are also having the same issue when using city names (rather than geo coordinates) for points on a map, they do not display.

Reply to "The map has stopped displaying correctly"