Topic on Extension talk:Maps

Maps 3.2.2 - Custom Markers Not Displayed

7
Tim Hoddy (talkcontribs)

Using: MediaWiki 1.24.1
PHP 5.4.16
SemanticMaps 3.1.3
Maps 3.2.2

Custom icons are not displayed here using the following:-

{{
#display_points:
{{coords}}
|height=768
|service=openlayers
|layers=osm-mapnik,osm-cyclemap,bing,google
|controls=panzoombar,scaleline,overviewmap,keyboarddefaults,navigation,layerswitcher,mouseposition
}}

Where template:coords contain coodinates in the form:

51.760546, -3.572933 
~'''[[Dinas Main Crag]]'''
~51.760546, -3.572933
~File:Blue.png;

51.760034, -3.574529 
~'''[[Kennelgarth Wall]]'''
~51.760034, -3.574529 
~File:Bouldering.png;

51.759673, -3.577498
~'''[[Dinas - Main Slab]]'''
~51.759673, -3.577498
~File:Orange.png;

etc....

This works fine on Maps 2.01

Is there a way around this? Have I forgotten something?

Thanks for any help.

Varlin (talkcontribs)

Hi, after reading this thread, it seems it had been fixed around 2018, but presently I still have this issue. Am I alone in this case ? As soon as I put a "Green marker.png" the markers won't show up. Even if I do upload a file with this name on the wiki (cause I don't know where the default avaialable icons are stored).

Jeroen De Dauw (talkcontribs)
Varlin (talkcontribs)

I'm using Mediawiki 1.34, Maps 7.15.5, and I tried every different syntax possible (Green marker, Green marker.png, File:Green marker, File:Green marker.png...). Still, no marker is displayed.

Varlin (talkcontribs)

It was because the extension only looks for images stored locally and ignores settings defining shared repository for images (which is my case). See here for a fix.