Extension talk:Maps/Flow archive/2017
This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
Archive
Is there a feature to show points nearby to a user?
RESOLVED | |
See the Whats Nearby extension or the discussion here. |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Can we use the location info provided by the browser to show points nearby to a user? Nischayn22 (talk) 18:20, 23 January 2017 (UTC)
- Heiya Nischay, you may want to have a look at the WhatsNearby extension. It is not officially released yet but I guess it is pretty stable to do serious testing and eventually brining it to the public. There is also a feature request I just subscribed you to. [[kgh]] (talk) 22:01, 23 January 2017 (UTC)
- Thanks Karsten. I didn't know of this, will surely check it out. Nischayn22 (talk) 04:44, 24 January 2017 (UTC)
- Couldn't find any working example of this extension :(
- Are you seeing it working somewhere? Nischayn22 (talk) 06:49, 24 January 2017 (UTC)
- I should have also linked to the extenion's page on this wiki. The examples are linked via the infobox. See also the docs directory coming with the code. [[kgh]] (talk) 10:07, 25 January 2017 (UTC)
- I meant I have seen the examples but none were working for me. It always says "was disabled by the user" though it never asked for the permissions. Nischayn22 (talk) 16:41, 25 January 2017 (UTC)
- Perhaps you disabled you geolocation being disclosed for your device. I guess there a general client settings in place for this. I just accessed one of the examples an the browser asked my if my geolocation may be used or not. So seems to work well. Anyway since we are talking about Whats Nearby it will be best to continue on its talk page. [[kgh]] (talk) 17:15, 25 January 2017 (UTC)
- I just tried it out again.. Seemed to work this time. Future discussion we can continue on the extension's page. Thanks for your help :) Nischayn22 (talk) 18:15, 25 January 2017 (UTC)
Please Add YandexMap for ExUSSR and Turkey
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Please Add YandexMap for ExUSSR and Turkey Wikipro (talk) 14:39, 27 January 2017 (UTC)
- You already asked for this a year ago. The issue is still open and seeks for a developer tackling it. [[kgh]] (talk) 13:04, 30 January 2017 (UTC)
Do not work Cyrilic searh for Show GoogleMaps and OSM
Search does not work on Cyrillic addresses in Google maps and OSM. How to fix it? MW 26.4, SMW 2.4 , Maps 4.01, Debian 8, mariadb 5. PHP5.6 Wikipro (talk) 14:59, 27 January 2017 (UTC)
- Seems to work fine. In case you are talking about the search fields provided by the "maps" input type the better place to address this is the talk page of the Page forms extension. [[kgh]] (talk) 13:21, 30 January 2017 (UTC)
The map has stopped displaying correctly
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 Askurashev (talk) 13:26, 11 March 2017 (UTC)
- I'm having the same exact problems. Were you able to resolve? 205.254.147.8 (talk) 20:03, 24 April 2017 (UTC)
- 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. 116.41.199.114 (talk) 16:11, 3 May 2017 (UTC)
- 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 ?? Askurashev (talk) 13:15, 3 June 2017 (UTC)
- Having this same issue. Using city name does not work. 2001:470:8:C7:0:0:0:1BC (talk) 19:14, 2 October 2017 (UTC)
- 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. Wmengle (talk) 20:12, 25 January 2018 (UTC)
Query Multiple Categories for Geolocation of Wiki Pages
Can someone please tell me how I would query multiple categories to display pages in multiple categories? I currently am using the example at https://sandbox.semantic-mediawiki.org/wiki/Cities
And I am adding one additional category below the first category, but I am only able to display pages in the first category.
Any help is greatly appreciated, thank you.
John John Morris (talk) 04:59, 30 March 2017 (UTC)
- I guess you would like to do something like this:
{{#ask: [[Category:Cities in Europe]] OR [[Category:Cities in Asia]] |?Has coordinates |format=map }}
- ... as in unions of query results: disjunctions [[kgh]] (talk) 11:31, 30 March 2017 (UTC)
- That was it Karsten! Thanks so much, where in the heck do you find this information "OR". Who would have guessed! I was looking for some syntax tricks to make this work, but it was a simple obvious "OR".
- Thanks sir
- John John Morris (talk) 11:42, 30 March 2017 (UTC)
- And thanks for the link Karsten
- https://www.semantic-mediawiki.org/wiki/Help:Selecting_pages#Unions_of_query_results:_disjunctions John Morris (talk) 12:00, 31 March 2017 (UTC)
- I guess this indeed answers "where in the heck do you find this information "OR"." :)
- In your case you could also have done
{{#ask: [[Category:Cities in Europe||Cities in Asia]] |?Has coordinates |format=map }}
- or
{{#ask: [[Category:Cities]] |?Has coordinates |format=map }}
- if the categories "Cities in Europe" and "Cities in Asia" were subcategories of "Cities". [[kgh]] (talk) 14:09, 31 March 2017 (UTC)
- Thanks so much Karsten for the additional information, I will have sub categories so yes, this is awesome information. John Morris (talk) 18:57, 1 April 2017 (UTC)
Maps extension leaves parsing error with Template:Coord
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.
Thanks,
Chap Chapjo (talk) 18:28, 11 April 2017 (UTC)
- I assume that there is something wrong with the "Coord" template you created on you wiki. [[kgh]] (talk) 20:46, 11 April 2017 (UTC)
- 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.
- Thanks,
- Chap Chapjo (talk) 00:28, 12 April 2017 (UTC)
- What is the content of the "Coord" template? Is it a public wiki you could point to. [[kgh]] (talk) 08:23, 12 April 2017 (UTC)
- Thanks Kghbln,
- The Template:Coord is a template exported from Wikimedia and imported into my wiki with no modifications.
- The wiki is a small, personal wiki being used for genealogy. I am the sole editor.
- https://wiki.jonesipedia.com/index.php/Special:Version
- Chap Chapjo (talk) 15:22, 12 April 2017 (UTC)
- 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. [[kgh]] (talk) 15:54, 12 April 2017 (UTC)
- 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 @
- extensions/Geo/src/Parsers/GeoCoordinateParser.php
- 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,
- Chap Chapjo (talk) 20:08, 12 April 2017 (UTC)
- 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. [[kgh]] (talk) 08:25, 13 April 2017 (UTC)
- Thanks K.
- Will follow your advice.
- Chap Chapjo (talk) 15:58, 13 April 2017 (UTC)
- i have the same problem. did you found how to fix? thank you Brunodapei (talk) 22:47, 25 March 2019 (UTC)
- Same problem in MW 1.35: Will display coords on top but not inline on any WP Templates. Example: https://digitalmatrixgroup.com/index.php/Birmingham,_Alabama Foreclosurepedia (talk) 20:56, 7 October 2020 (UTC)
Right align or use in a Mediawiki template
RESOLVED | |
Wrap it into a "div" tag. |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I was trying to use a map in a Mediawiki template, but when that didn't work, using
{{#if: {{{location}}} | {{#display_map: {{{location}}} |width=300 |height=300}} | }}
I tried some other ways of displaying the map where I want it (on the right, under the infobox).
I can neither get a map to show in the infobox, nor can I right align a map. Is there a trick to get this working? --~ 86.17.35.216 (talk) 19:10, 29 May 2017 (UTC)
- Just wrap it into a "div" tag:
- [[kgh]] (talk) 20:29, 29 May 2017 (UTC)
{{#if: {{{location}}} | <div style="float: right"> {{#display_map: {{{location}}} |width=300 |height=300 }} </div> }}
- Thanks! 86.17.35.216 (talk) 07:19, 30 May 2017 (UTC)
Attaching event handlers
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I would like to do various things with the maps that require attaching event handlers to the Google map objects. Can I get a reference to the collection of maps on a given page?
Keep up the good work. It is much appreciated!
Henrik Thiil Nielsen
Edit:
I guess I found the answer: I was expecting the list of map objects to be named "window.maps.googleMapsList" or "window.maps.googlemapslist", but the list is named "window.maps.googlemapsList" :-) Henryfunk (talk) 13:37, 11 June 2017 (UTC)
Maps extension installation (on Debian Jessie)
RESOLVED | |
See on how to get things rolling in this environment. |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi
I just installed and configured mediawiki 1.27.3 using debian backports ie
sudo apt-get -t jessie-backports install mediawiki
next I did the following:
wget https://getcomposer.org/composer.phar
>composer.json
vim composer.json
copied/pasted:
{ "require": { "mediawiki/maps": "~4.2.1", "mediawiki/semantic-media-wiki": "~2.5.0" } }
sudo php composer.phar update
Now I have folders:
./extensions
and ./vendor
in my home dir
While my extension folder is:
/var/lib/mediawiki/extensions
lrwxrwxrwx 1 root root 47 May 8 21:49 WikiEditor -> usr/share/mediawiki/extensions-core/WikiEditor lrwxrwxrwx 1 root root 51 May 8 21:49 TitleBlacklist -> /usr/share/mediawiki/extensions-core/TitleBlacklist lrwxrwxrwx 1 root root 58 May 8 21:49 SyntaxHighlight_GeSHi -> usr/share/mediawiki/extensions-core/SyntaxHighlight_GeSHi lrwxrwxrwx 1 root root 50 May 8 21:49 SpamBlacklist -> /usr/share/mediawiki/extensions-core/SpamBlacklist lrwxrwxrwx 1 root root 47 May 8 21:49 Renameuser -> /usr/share/mediawiki/extensions-core/Renameuser lrwxrwxrwx 1 root root 41 May 8 21:49 Poem -> /usr/share/mediawiki/extensions-core/Poem lrwxrwxrwx 1 root root 47 May 8 21:49 PdfHandler -> /usr/share/mediawiki/extensions-core/PdfHandler lrwxrwxrwx 1 root root 52 May 8 21:49 ParserFunctions -> /usr/share/mediawiki/extensions-core/ParserFunctions lrwxrwxrwx 1 root root 41 May 8 21:49 Nuke -> /usr/share/mediawiki/extensions-core/Nuke lrwxrwxrwx 1 root root 55 May 8 21:49 LocalisationUpdate -> /usr/share/mediawiki/extensions-core/LocalisationUpdate lrwxrwxrwx 1 root root 46 May 8 21:49 Interwiki -> /usr/share/mediawiki/extensions-core/Interwiki lrwxrwxrwx 1 root root 45 May 8 21:49 InputBox -> /usr/share/mediawiki/extensions-core/InputBox lrwxrwxrwx 1 root root 45 May 8 21:49 ImageMap -> /usr/share/mediawiki/extensions-core/ImageMap lrwxrwxrwx 1 root root 44 May 8 21:49 Gadgets -> /usr/share/mediawiki/extensions-core/Gadgets lrwxrwxrwx 1 root root 48 May 8 21:49 ConfirmEdit -> /usr/share/mediawiki/extensions-core/ConfirmEdit lrwxrwxrwx 1 root root 49 May 8 21:49 CiteThisPage -> /usr/share/mediawiki/extensions-core/CiteThisPage
A this point of page Special:Version gives me no info on Maps extension installed 46.112.151.78 (talk) 15:37, 21 June 2017 (UTC)
- It is better to use "composer.local.json" for your version of MediaWiki. Strange that "composer.json" was empty. Add the following:
- [[kgh]] (talk) 15:56, 21 June 2017 (UTC)
{ "require": { "mediawiki/maps": "~4.3", "mediawiki/semantic-media-wiki": "~2.5" } }
- For Mediawiki 1.27.3 installed via backports on Debian Jessie main folder is:
/usr/share/mediawiki
- Here you can find
./vendor
subfolder wherecomposer.json
file resides, I edited the file, added these two lines "mediawiki/maps": "~4.3", "mediawiki/semantic-media-wiki": "~2.5"
- to
require:{}
section, and I ran inside this./vendor
foldersudo composer update
- Now, when I go to url
{MYDOMAIN}/mediawiki/index.php?title=Special:Version
I have Semantic Map and Maps extensions listed! 88.220.56.142 (talk) 08:16, 22 June 2017 (UTC) - Ah, yeah, did not look at the folders. Great that it works out for you now and that you shared the info with us. [[kgh]] (talk) 08:42, 22 June 2017 (UTC)
Wrong urls for maps controls and css files (Debian Jessie)
After Maps extension installation (described in post Maps extension installation (on Debian Jessie)) I try use simple examples, map using OpenLayers service is displayed except some controls and css files aren't accessible, for instance:
zoombar.png url is:
{MYDOMAIN}/mediawiki/extensions/Maps//includes/services/OpenLayers/OpenLayers/img/zoombar.png
whereas, in fact is accessible at
{MYDOMAIN}/mediawiki/vendor/extensions/Maps/includes/services/OpenLayers/OpenLayers/img/zoombar.png
or style.css url is:
{MYDOMAIN}/mediawiki/extensions/Maps/includes/services/OpenLayers/OpenLayers/theme/default/style.css
while it should be:
{MYDOMAIN}/mediawiki/vendor/extensions/Maps/includes/services/OpenLayers/OpenLayers/theme/default/style.css
Regards
Darek Darek07 (talk) 07:24, 23 June 2017 (UTC)
- Ouch, the extension should have ended up at
{MYDOMAIN}/mediawiki/extensions/Maps
like all other extensions and not at{MYDOMAIN}/mediawiki/vendor/extensions/Maps
. Probably the previous post is all wrong too though the extension installed somehow. I suggest to write to the user mailing-list since I have no experience with using MediaWiki packages via OS sources. [[kgh]] (talk) 08:24, 23 June 2017 (UTC) - Although I use a couple mediawki's (1.27.3) installed via backported packages on Debian Jessie I wouldn't recommend it for non-core extensions installation.
- I installed mediawiki 1.28.2 on CentOS 7 using source tar.gz, installed composer,
- and next I simply did:
cd /var/www/html sudo vi composer.local.json sudo cat /var/www/html/composer.local.json { "require": { "mediawiki/maps": "~4.3", "mediawiki/semantic-media-wiki": "~2.5" } } composer update
- and everything seems to work fine! Darek07 (talk) 12:19, 25 June 2017 (UTC)
- Thanks for the sharing your findings. I guess this is the easiest solution. I will however ping @Jeroen De Dauw: to have a peep at this. [[kgh]] (talk) 20:02, 25 June 2017 (UTC)
Hard to install ?
Hello everyone !
I'm kind of new to mediawiki and i'm not a programmer. I'm quite impres by all the work made here by enthusiast people. Well. My question will probably seems stupid to you but... How do we install Maps properly ? it seems so hardcore to me.
I understood I've to install Composer and Semantic MediaWiki ?? I'm unable to do that.
Is there a way to download a folder, to write some text in localsettings.php and that's it = (has it goes for many other extensions...)
Thanks !
Yannick, Switzerland 2A02:120B:2C7D:FD90:1DDD:289C:3BF4:6105 (talk) 22:05, 11 September 2017 (UTC)
- Just create a "composer.local.json" file containing the following:
{ "require": { "mediawiki/maps": "~4.3" } }
- Now issue the following command
php composer.phar update --no-dev
- or
composer update --no-dev
- depending on how you installed Composer.
- Semantic MediaWiki is only required if you would like to use the semantic capabilities of Maps.
- This is what the instructions try to tell.
- How to install Composer is documented here.
- No there is not other way. [[kgh]] (talk) 22:53, 11 September 2017 (UTC)
- well thanks for assistance. it seems so hard... will try 2A02:120B:2C7D:FD90:2C50:5E8D:71D6:60AF (talk) 09:31, 12 September 2017 (UTC)
- It's actually easier once you have installed composer. [[kgh]] (talk) 16:34, 12 September 2017 (UTC)
- composer seems pretty hard to install too ^^ but i'm learning a lot of stuff. thanks ! 2A02:120B:2C7D:FD90:E82F:3B49:8E8B:2DB7 (talk) 06:34, 19 September 2017 (UTC)
SSL protection
Hi,
Since I applied SSL protection to my site, the maps have stopped working (they all just show a grey box). The SSL is unbroken. Is there a known problem? Thanks. 89.101.251.25 (talk) 18:49, 18 September 2017 (UTC)
- Sounds like your browser is automatically blocking mixed content. I think there was an issue in earlier versions like 2.x and lower but recent versions 3.x work fine. [[kgh]] (talk) 19:49, 18 September 2017 (UTC)
- Bingo! I thought Firefox loaded mixed content with a warning, but you're right you now need to enable it in settings. 89.101.251.25 (talk) 14:05, 19 September 2017 (UTC)
Fullscreen button in Google Maps
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). Henryfunk (talk) 18:24, 14 December 2017 (UTC)