Extension talk:MultiMaps

About this board

Please report issues and feature requests to the extension's Phabricator project (you can login with your MediaWiki credentials).

Previous page history was archived for backup purposes at Extension talk:MultiMaps/LQT Archive 1 on 2015-07-10.
79.110.130.215 (talkcontribs)

How to make a map full screen?

FellTiger (talkcontribs)

That is currently not possible.

Multimaps and MW 1.38.1 and later

2
BonniHamm (talkcontribs)

Hello,

in MW 1.38.1 multimaps raises the following error:

Deprecated: Use of ParserOutput::addModules with non-array argument was deprecated in MediaWiki 1.38. [Called from MultiMaps\BaseMapService::addDependencies in /volume1/web/bwiki1381/extensions/MultiMaps/includes/BaseMapService.php at line 553] ...

Can this be fixed?

We run a CityWiki with 1000s of Multimaps and want to update to 1.38.1 first an then to 1.39 later.

I think this is relevant for next LTS-Version 1.39 as well.

Cheers and Thanks

FellTiger (talkcontribs)
Reply to "Multimaps and MW 1.38.1 and later"
Summary by FellTiger

Question answered, link provided

Nicole Sharp (talkcontribs)

I can't get the maps resized or add labels to pins. Can examples please be added to the documentation? The external links are all to a nonexistent website. Nicole Sharp (talk) 22:12, 15 March 2021 (UTC)

FellTiger (talkcontribs)

You can set the map size by writing {{#multimaps: 10,10 | height = 30px | width = 50px}}. I have never tried adding labels to pins, but it should work as described in Extension:MultiMaps/Documentation#Marker.

StasR (talkcontribs)

Pavel, hello! Text:

{{#multimaps:55.51999,38.089118~УИK 2628;55.489887,38.17434~УИK 2629;55.474682,38.190107~УИK 2630;55.567091,38.225898~ТИK |width=900px|height=600px}} 

raises MWException (checked on my test auxiliary server and on wiki.openstreetmap.org).

Reply to "MultiMaps and MW 1.35.4"

SOLVED - Are user uploaded images available as maps?

2
Summary last edited by Revansx 18:25, 6 April 2021 1 year ago

Extension:Maps was updated in 2020 to re-enable this capability

Revansx (talkcontribs)
FellTiger (talkcontribs)

I just saw your post and I guess you refer to my following statement to the mailing list:

The map extensions you mentioned will display small images with map pieces called "tiles" made by externals in your wiki.

The map extensions fetch images from external servers which in turn render those images based on some input. In case of OpenStreetMap, the input is done by individuals in a Wikipedia-like fashion. It is not possible however, to upload an image via Special:Upload to your wiki and use any map extension to create clickable sections on it. This feature is provided only by Extension:ImageMap AFAIK.

Adding custom services

2
Summary by FellTiger

Question answered by linking to the documentation

Aiinori (talkcontribs)

Is it possible to add other custom map service to use with this extension?

FellTiger (talkcontribs)

Yes, it is if you use version 0.7.3 (newest version) of the extension and if you can embed your map into a Leaflet frame. You need to use $egMultiMaps_MapServices configuration variable.

Cojoilustrado (talkcontribs)

Can we center with this extension? Or define a place along with the coordinates? Instructions say we might be able to use parameters from Maps extension but so far any combination I tried failed.

FellTiger (talkcontribs)

You can center the map around a given coordinate by writing {{#multimaps:1, 2}}. This extension does not offer any geocoding (i.e. place names are not recognized).

The documentation says that the parameter syntax is aimed to be compatible. It means that if both extensions offer a feature it is very likely that the same wiki markup is used. For example the code for displaying OpenStreetMap in a Leaflet frame at N10° and E10° is similar:
{{#display_map: 10, 10 }}
{{#multimaps: 10, 10 }}

What are you trying to achieve? Maybe I can help you.

2605:E000:1301:5631:2D7C:3B8F:5544:A57B (talkcontribs)

Thanks for the reply. I have a wiki about Venezuela and every city, town and state has an infobox with a multimap. This is all good, the thing is that when a map is displayed for, let's say, a town, the map center on the town, which is ok, but I'd like to keep the map centered on the state. So we see the whole state with the marker over the position of the town. Am I making sense?

FellTiger (talkcontribs)

You can achieve this by using position, center, and zoom like in this example: {{#multimaps: 10,10|center=10.264,9.9957628|zoom=10}}. It produces a map with a marker at 10,10. The map is centered at 10.264,9.9957628 and it is zoomed to level 10.

Cojoilustrado (talkcontribs)

The center parameter did it. For some reason I had to tinker with it more than usual, but it's working now. Here's what I'm using in case anyone is looking for a solution.

{{#multimaps: {{{coordenadas|8.8919987,-64.1848373}}}|{{#if:{{{zoom<includeonly>|</includeonly>}}}|zoom{{=}}{{{zoom}}}|}}|{{#if:{{{centro<includeonly>|</includeonly>}}}|center{{=}}{{{centro}}}|}}}}

Thanks FellTiger :) Really appreciate your help.

NH35 (talkcontribs)
  1. How to set by default "satelite" mode enabled using GM?
  2. Using MobileFrontend extension maps doesn't work. Displayed only text "Loading map...."
FellTiger (talkcontribs)
NH35 (talkcontribs)

Thank you!

Reply to "Configuration"
StasR (talkcontribs)

http://www.nablawiki.ru/s/av3

Почему-то на карте срабатывает Lingo, хотя вызов multimaps погружен в div class=noglossary (видно по подсказке у флажка «2114» в центре карты). Это лечится?

Pastakhov (talkcontribs)

да, это лечится, но нужно найти самый безобидный способ.

StasR (talkcontribs)

Спасибо! А я и забыл, что Вы разрешили форматирование в текстах.

2.75.128.250 (talkcontribs)

Это не решение, я найду нормальный способ.

Pastakhov (talkcontribs)
StasR (talkcontribs)

Спасибо ) Пошел обновляться

External icons problem (Resolved)

9
StasR (talkcontribs)

Завел новую серию иконок во внешних файлах. Вроде бы все сделал по правилам, но не работает (

Тестовый пример: http://www.nablawiki.ru/s/8ym

$egMultiMaps_IconPath = "$wgScriptPath/images/NablaIcons";

Версия у меня 5.2.

Pastakhov (talkcontribs)

Благодарю за сообщение.

Моя вина, исправлено в версии 0.6.1

StasR (talkcontribs)

Спасибо, Павел!

Если вдруг окажетесь в Москве — с меня коньяк :-)

Pastakhov (talkcontribs)

Спасибо, Станислав. Обязательно приеду :-)

StasR (talkcontribs)
StasR (talkcontribs)
Pastakhov (talkcontribs)

Я так понимаю, что карта уже работает? На какой версии mediawiki не работало?

StasR (talkcontribs)

С MultiMaps 0.6.1 все заработало замечательно (версию Mediawiki не менял), удаленный комментарий про проблемы — это была моя собственная глупая ошибка (пока искал причины неработоспособности новых иконок, поменял имя каталога с иконками, но не всюду). Вот красивая карта с новыми иконками :-) Спасибо!

Return to "MultiMaps" page.