How to make a map full screen?
Extension talk:MultiMaps
That is currently not possible.
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
I can confirm this using MW 1.39. I created a task at https://phabricator.wikimedia.org/T314227.
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)
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.
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).
per this thread in mediawiki-l: https://lists.wikimedia.org/pipermail/mediawiki-l/2019-June/048015.html
User Tigerfell proposes that local images can be used as the basis of a map for this extension. If this understanding is accurate, would someone please provide instructions and/or examples. Thanks!
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.
Is it possible to add other custom map service to use with this extension?
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.
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.
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.
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?
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.
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.
- How to set by default "satelite" mode enabled using GM?
- Using MobileFrontend extension maps doesn't work. Displayed only text "Loading map...."
The second issue is tracked in phab:T266654.
Thank you!
Почему-то на карте срабатывает Lingo, хотя вызов multimaps погружен в div class=noglossary
(видно по подсказке у флажка «2114» в центре карты). Это лечится?
да, это лечится, но нужно найти самый безобидный способ.
Спасибо! А я и забыл, что Вы разрешили форматирование в текстах.
Это не решение, я найду нормальный способ.
Done version 0.7.2 is friendly with Extension:Lingo
Спасибо ) Пошел обновляться
Пожалуйста, удачи!
Завел новую серию иконок во внешних файлах. Вроде бы все сделал по правилам, но не работает (
Тестовый пример: http://www.nablawiki.ru/s/8ym
$egMultiMaps_IconPath = "$wgScriptPath/images/NablaIcons";
- http://www.nablawiki.ru/images/NablaIcons/E/0/uik0076-e.png — старая иконка показывается на карте.
- http://www.nablawiki.ru/images/NablaIcons/Date/4/03/date-4-02.03.png — новая иконка не воспринимается.
Версия у меня 5.2.
Благодарю за сообщение.
Моя вина, исправлено в версии 0.6.1
Спасибо, Павел!
Если вдруг окажетесь в Москве — с меня коньяк :-)
Спасибо, Станислав. Обязательно приеду :-)
Я так понимаю, что карта уже работает? На какой версии mediawiki не работало?
С MultiMaps 0.6.1 все заработало замечательно (версию Mediawiki не менял), удаленный комментарий про проблемы — это была моя собственная глупая ошибка (пока искал причины неработоспособности новых иконок, поменял имя каталога с иконками, но не всюду). Вот красивая карта с новыми иконками :-) Спасибо!
Ясно, да красиво :-)