Topic on Extension talk:Maps

BonniHamm (talkcontribs)

Hello,

we use a lot of maps on www.hammwiki.info. We're now migrating from multimaps to maps, since multimaps doesn't seem to be maintained any longer.

We using own icons to be shown in #display_map: and that principally works, but:

The only possibility I found out is to use a fully qualified url to the icon file, e.g. |icon=https://<domain.tld>/<iconfolder>/<iconfile>.png

Is there somewhat to use path to the icon? What's the base folder of this? Like |icon=<mediawiki installation folder/somewhat folder/somewhat icon file?


And: is it possible to show more than one custom icon on a map with multiple positions? if yes, how?


Thanks and Regards

Frank

Cavila (talkcontribs)

[Edited]

Are you sure a full path is required? If NewYorkSubwaySmall.jpg or perhaps File:NewYorkSubwaySmall.jpg doesn't work, you could try something like {{filepath:NewYorkSubwaySmall.jpg|15px}}. See Help:Magic words for guidance on how to use filepath.

BonniHamm (talkcontribs)

I found out I just can upload the iconfile as an image and use the image name. Sorry, did not think of that before.

Remains: Multiple custom icons?

Cavila (talkcontribs)

The documentation has a section on custom markers and gives the following example:

{{#display_map:
Berlin~The city Berlin~Berlin is a really nice city and there is plenty of Club Mate~Red-marker.png;
}}
BonniHamm (talkcontribs)

On first try it does not work, it show display_maps' default marker and not the own one.

{{#display_map: Pauluskirche Hamm~Pauluskirche~MarkerHML.png;}}


Thank anyway, I'll do some more tests.

Cavila (talkcontribs)

The marker must be in the fourth position, not third. Try this (without description):

{{#display_map: 
Pauluskirche Hamm~Pauluskirche~~MarkerHML.png;
}}
BonniHamm (talkcontribs)

Jepp, that works, thanks

unfortunatelynot without title like

{{#display_map: Pauluskirche Hamm~~~MarkerHML.png; }}

Reply to "Displaying Icons"