professionalwiki / maps Goto Github PK
View Code? Open in Web Editor NEW🗺 Maps is the MediaWiki extension that enables visualization of geographic data with dynamic embedded maps.
Home Page: https://maps.extension.wiki
License: Other
🗺 Maps is the MediaWiki extension that enables visualization of geographic data with dynamic embedded maps.
Home Page: https://maps.extension.wiki
License: Other
installed via Composer
{{#geocode:Brandenburg Gate, Berlin, Germany}}
results in "Fatal error: Failed to parse or geocode" after some time
A built-in support for the OpenSeaMap overlay [1] would be very nice.
The specified image does not render on the map on a regular wiki page. There is only an invisible though clickable field at the specified spot on the map. Currently only the preview on "Special:MapEditor" works
Import from https://bugzilla.wikimedia.org/show_bug.cgi?id=40822
The second example here does not work since the file page does not get resolved to image path.
http://semantic-mediawiki.org/wiki/Maps_examples/Google_Maps_visited_icon
Maps 2.0.
Import from https://bugzilla.wikimedia.org/show_bug.cgi?id=30947
The example user shows Japanese for me, and I can see ja hardcoded in the page source. On preview it turns into Finnish.
-- Niklas Laxström 2011-09-17 07:55:05 UTC
I'm returning to the already known issue "Maps no longer showing infowindow" (e.g. see http://goo.gl/nQ3HaF).
I found this issue neither resolved nor patched. Moreover, I've found the issue inconsistent, namely:
infowindow is not working
<display_points type="terrain">
Amsterdam
Berlin|This is Berlin
London|London|The capital of [[England]].
Ghent|Ghent|Most awesome city in Europe|Green marker.png
</display_points>
but infowindow is working
{{#display_map:
Moscow, Russia~Moscow~A city in Russia;
New York~New York city;
London~[[London]]~Capital of England~File:Green marker.png;
Brussels;
Mali~Mali~~File:Blue marker.png
}}
These results were obtained for the following options:
Product Version
I'd be grateful for an answer about resolving this issue.
Using the map editor, I tried to insert an image as an overlay onto a map. It works fine in the map editor, but when exporting wiki code and pasting into a wiki page, the displayed map ignores the imageoverlay completely. Not only is the image not shown, the map does not zoom in to the correct location either (instead starting at 0,0).
Mediawiki 1.21, Maps 3.0.1.
Thanks!
Import from https://bugzilla.wikimedia.org/show_bug.cgi?id=42620
sprintf() used in the code for Special:MapEditor (now moved to Maps/includes/editor/EditorHtml.php) doesn't handle UTF-8 properly.
Seems to me that this problem causes "Uncaught SyntaxError: Unexpected token ILLEGAL" to appear in the console when using the googlemapsEditor forminput in http://openurbandev.com/index.php?title=Special:FormEdit/Address/Home
and hence on saving the page weird things happen like redirection to Homepage
Also the coding styles are not followed here.
see http://www.php.net/manual/en/function.sprintf.php#86304
-- Nischay Nahata 2012-12-02 11:02:09 UTC
The following system messages are used by both googlemaps, openlayers and leaflet should be "aliased":
maps-par-zoom
maps-par-searchmarkers
maps-par-resizable
Occasionally there is some feedback from translators about specific messages. What is the best way to deal with them I case I have no clue how to answer or resolve it directly without needing in involve you, i.e. @JeroenDeDauw?
Using the searchmarkers parameter show a "Filter markers" box in the upper right as expected, but typing anything in that box does not find any markers.
For example, see https://semantic-mediawiki.org/wiki/Maps_examples/Google_Maps_searchmarkers
The suggested search terms of "capital of" and "city" return nothing. My experiments can find no search term that matches any of the filters. I've tried direct copy-and-paste from the points' titles and descriptions, such as "Norway", "Meanwhile in Norway", "Capital of the United Kingdom", etc., and nothing is found.
The same result is found on OpenLayer searches: https://semantic-mediawiki.org/wiki/Maps_examples/OpenLayers_searchmarkers
The same result is found using either the tags or the parser function.
can someone provide "curl" instructions instead?
Hi,
I am trying to fix a map that doesn't work here: http://wiki.km4dev.org/Members_-_Map
I checked the syntax: correct, checked js errors: none, checked for incompatible extensions: none, checked for known bugs in MW version that could impact extension: none, checked php config files syntax for errors or missing parameters: none.
Unfortunately I don't have access to server logs, but nothing where I checked seems to be wrong. In fact I noticed that at times the map shows up correctly, only to disappear again if I refresh the page. See attached screenshot.
Would you be able to help?
Hi all,
i followed the guide but i cannot get the Maps extension works. Here some data:
Maps installed with the ExtensionInstaller extension. ExtensionInstaller is correctly listed in the Special:Version page but Maps is not and its tags are not working.
Maps and Validator are correctly downloaded by Composer in the extension\ExtensionInstaller\extensions folder.
Any help will be appreciated. :\
https://www.mediawiki.org/wiki/Thread:Extension_talk:Maps/Percent_width_broken_in_Maps_3.0
It seems the ability to use percentage for width in the new maps version has been lost, unless there's a different way that just doing "width=60%".
Since the release of 3.0 two "Markers" checkboxes are displayed in the overlays section on the OpenLayer maps like on this example [1]. Seems to be a bug...
[1] http://semantic-mediawiki.org/wiki/Semantic_Maps_examples/Mapping_service_%28queries%29
Import from https://bugzilla.wikimedia.org/show_bug.cgi?id=57337
You can see the issue here:
http://semantic-mediawiki.org/wiki/Yaron%27s_location
This page calls a template, which calls #display_point - the "coordinates" parameter is set to null, while the "zoom" parameter is set to 7. So, what shows up on the map is a highly-zoomed view of a location somewhere off the coast of Africa. Instead, if the coordinates (or address, etc.) are null, I would think #display_point should ignore the "zoom" parameter, and always set to it the lowest zoom level, i.e. show the whole world.
-- @yaronkoren 2013-11-21 01:35:46 UTC
Import from https://bugzilla.wikimedia.org/show_bug.cgi?id=38539
Latest git versions of MW and Cite does not show references displayed in text at the end where is
just one example
http://www.wecowi.de/wiki/Massaker_von_Aurora
-- DaSch 2012-07-20 20:33:36 UTC
Maps doesn't work with MobileFrontend. Endless "Loading map...". MediaWiki 1.22.2, Maps 3.0, and MobileFrontend.
http://www.mediawiki.org/wiki/Extension_talk:MobileFrontend#Maps_and_MobileFrontend_38039
@jdlrobson
In the initialization of OpenLayers.Layer.OSM.Mapnik under Maps / includes / services / OpenLayers / OSM / OpenStreetMap.js
, I wonder if the definition of numZoomLevels
should be increased to 20 rather than the current 19, as zoomlevels 0-19 are now available?
At present, using service=openlayer
, only up to zoomlevel 18 can be accessed for OSM Mapnik. This apparently cannot be overridden by setting the maxzoomlevel
parameter.
I appears that this is not going to come back. In current versions this layer renders with pink tiles. Probably worth removing this from code.
jshint reports failure on javascript files and should be fixed. Whenever this is done, one can make the jslint job to be voting by editing integration/zuul-config.git layout.yaml file and remove the line that make the jslint job to be non voting.
Downstream bug https://bugzilla.wikimedia.org/show_bug.cgi?id=61611
When creating circle objects on a map (using "circles"), the objects don't seem to use the fill color, opacity, stroke weight or anything besides the stroke color, caption and text. The map editor lets you create circles with all these parameters (and displays them properly) but exporting the wiki code and embedding in a wiki page makes all the circles appear filled in the default red color. Mediawiki 1.21, Maps 3.0.1. Thanks!
See translatewiki.net for the missing 76 help texts for translators
This is an issue reported on mw.o which I think will be a nice enhancement:
I 'm wondering why the coordinates are so long: 14 numbers for latitude/longitude while only 6 would be enough for precision (cf. older version of Google Maps extension). As a result, when you draw long lines or add many points, the size of the page becomes too heavy.
Would it be possible to shorten them?
For instance:
47.254301,-1.679535
instead of47.25430126476208,-1.67953552941873
Import from https://bugzilla.wikimedia.org/show_bug.cgi?id=62061
In Maps 2 you could use icon=/w/images/c/ce/Green_marker.png or icon=//semantic-mediawiki.org/w/images/c/ce/Green_marker.png. Maps 3 lost that possibility, you can only use icon= Green_marker.png . Can this be readded?
-- [email protected] 2014-02-28 15:37:35 UTC
The layerswitcher menue selectable via the (+) offers an overlays section for selecting or deselecting the markers. The checkbox for this is duplicated. See this docu page for an example.
MW 1.24.1, SMW 2.2, Maps 3.2.3 on PHP 5.3.3
If the MediaWiki server does not have an Internet connection (which is typical within enterprise Intranets), the Google and OSM maps embedded on client side are empty. The frame is shown, but there is no map.
It would be great if server-side processing could be disabled (e.g. fetching geocode) in order to support showing maps purely fetched and rendered on client-side.
I'm getting issues with the tag extension. Sometimes the points aren't rendered correctly, whereas the parser function works reliably.
For example: https://semantic-mediawiki.org/wiki/Maps_examples/Point_specific_data
The first and last maps don't show any of the points, which seams to be due to the "Mali|Mali||File:Blue marker.png" line. However, even without that line, none of the pop-ups on click work.
The middle map works correctly (minus the File: issue) with the parser function.
There are various other examples in the Maps examples that display defective tag behavior (especially defective pop-up behavior), such as: https://semantic-mediawiki.org/wiki/Maps_examples/Google_Maps_tag_and_autoinfowindows
Import from https://bugzilla.wikimedia.org/show_bug.cgi?id=44869
It would be great to be able to add custom map types to the googlemaps service. In my specific case, for instance, I would like to overlay the map offered by the Norwegian Mapping Authority (Statens Kartverk) alongside Google's terrain map. Documentation for how to do this can be found here: https://developers.google.com/maps/documentation/javascript/maptypes#CustomMapTypes
Using a practical example, with the Norwegian Mapping authority as described, the Javascript code would/could like like this:
function StatkartMapType(name, layer) {
this.layer = layer
this.name = name
this.alt = name
this.tileSize = new google.maps.Size(256,256);
this.maxZoom = 19;
this.getTile = function(coord, zoom, ownerDocument) {
var div = ownerDocument.createElement('DIV');
div.style.width = this.tileSize.width + 'px';
div.style.height = this.tileSize.height + 'px';
div.style.backgroundImage = "url(http://opencache.statkart.no/gatekeeper/gk/gk.open_gmaps?layers=" + this.layer + "&zoom=" + zoom + "&x=" + coord.x + "&y=" + coord.y + ")";
return div;
};
}
var map;
function initialize() {
var mapOptions = {
zoom: 8,
center: new google.maps.LatLng(60,9),
mapTypeControlOptions: {
mapTypeIds: ['topo2', google.maps.MapTypeId.TERRAIN]
}
};
map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
map.mapTypes.set('topo2',new StatkartMapType("S.Kartverk", "topo2"));
map.setMapTypeId('topo2');
}
-- [email protected] 2013-02-11 11:34:08 UTC
I am not absolutely sure but I think this is a feature request since I do not know if this is supposed to work. I tried to add lables and other stuff as metadata to an overlay generated by OpenLayers. This does not work: see version history
There are a multitude of hardcoded http://foo.bar.tld links in the extension code and js files. This means that whenever the extension is used on a TLS-secured wiki, any modern browser will warn about mixed security.
I've tried to do a recursive change of all 'http://' strings to just '//', which seem to work, at least for the OpenLayer type of maps. But this is probably too much, as it will also change urls in comments and documentation.
Hi all,
MediaWiki 1.23.4
PHP 5.3.29 (cgi-fcgi)
MySQL 5.5.36-cll-lve
Please tell me - where to perform this code?
wget http://getcomposer.org/composer.phar and
php composer.phar require mediawiki/maps "*"
In Ci-panel on PhpMyAdmin on tab "SQL"? Or where?
I download the file:composer.phar in the root folder my wiki. But I can not understand where to execute these lines of code?
Thanks
Pages on which the Maps extension is used are automatically included in the category "Pages with a map rendered by the Maps extension". Is this intended behaviour or do we want to hide the category from the page? I'm not really sure myself, but it does make you wonder. What's the thinking here?
http://sourceforge.net/p/semediawiki/mailman/message/32510196/
Hi all,
I have this inline query:
{{#ask:[[Has Coordinates::+]]
|?Has Coordinates
|format=googlemaps
|markercluster=yes
|height=400
}}
Has Coordinates was geocoded from a string property Country in a Template
as follows:
...
! Countries
| {{#arraymap:{{{Countries|}}}|,|x|[[Country::x]] {{#set:Has
Coordinates={{#geocode:x|geonames}}
...
And its pretty nice! My problem is if I have multiple items with the exact
same coordinates (say, I have 10 pages for Sudan), the markerclusterer
logic in Semantic Maps just zooms in and doesn't have any processing to
show the items on the exact same location. It just shows the cluster.
Ideally, something similar to this "spidercluster" effect would be nice:
http://www.ejw.de/ejw-vor-ort/ (click on a marker to show the spider
effect).
Thanks in advance!
Joel
When going into the googlemaps fullscreen mode, not all tiles in the map will load. Only a part of the map canvas, corresponding to the previous map size, will actually show and update map tiles.
There is a very simple fix for this. Simply add google.maps.event.trigger(map, "resize");
at line 811 in includes/services/GoogleMaps3/jquery.googlemap.js. This will make the map load all the appropriate tiles for the new size.
Import from https://bugzilla.wikimedia.org/show_bug.cgi?id=44870
It would be great if the Maps extension could provide reverse geocoding, something at least Google provides. As of now, if you use the #geocoder parser hook with coordinates as a parameter, you simply get a conversion of the coordinates. But if you use the Google geocoder api and send coordinates with the latlng parameter, you get a response formatted as xml or a json structure with addresses ranging from very specific to very general. Being able to pass some coordinates and pick out things like the city and different administrative areas (municipality, county, state, etc) would be very useful.
The method for doing this is basically identical to regular geocoding, with a few minor adjustments, and can be found here:
https://developers.google.com/maps/documentation/geocoding/?hl=en#ReverseGeocoding
https://developers.google.com/maps/documentation/javascript/geocoding?hl=en#ReverseGeocoding
Example: http://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452&sensor=false
-- [email protected] 2013-02-11 11:53:24 UTC
A week ago or so I noticed the maps on the wiki started not working right. Seemed to be either related to the markers or text labels (Inline Labels). Anyways, I hope this will be corrected. The labels were part of what made the map work so well.
http://ghostbusters.wikia.com/wiki/User:Devilmanozzy/Map_testbed
Core test fails me locally because of missing i18n message:
php maintenance/update.php
...
Rewriting tsearch2 triggers ...done.
Creating maps_layers table ...[1c451ba4] [no req] Exception from line 3560 of /wiki/includes/db/Database.php: Could not open file.Backtrace:
0 /wiki/includes/installer/DatabaseUpdater.php(642): DatabaseBase->sourceFile(NULL)
1 /wiki/includes/installer/DatabaseUpdater.php(665): DatabaseUpdater->applyPatch(NULL, boolean, string)
2 [internal function]: DatabaseUpdater->addTable(string, NULL, boolean)
3 /wiki/includes/installer/DatabaseUpdater.php(435): call_user_func_array(array, array)
4 /wiki/includes/installer/DatabaseUpdater.php(399): DatabaseUpdater->runUpdates(array, boolean)
5 /wiki/maintenance/update.php(160): DatabaseUpdater->doUpdates(array)
6 /wiki/maintenance/doMaintenance.php(113): UpdateMediaWiki->execute()
7 /wiki/maintenance/update.php(201): require_once(string)
8 {main}
Notice: Uncommitted DB writes (transaction from DatabaseUpdater::doUpdates). in /wiki/includes/db/Database.php on line 3945
Failed to parse or geocode is shown when using {{#geocode:New York|service=google}} and i cant figure out why!
Maps 3.2.2
MW 1.24.1
Can the problem be viewed online in a public wiki? (If yes, provide its URL.)
https://karaoke.kjams.com/wiki/Map/Test
Which versions of the relevant extension(s) was/were used?
current / latest
Which version of MediaWiki was used?
current
Which server setup was used (PHP, MySQL, OS)?
MySQL i think, and MacOS
Can the problem be reproduced on another wiki (like this one)? (If yes, provide its URL.)
probably, haven't tried
Import from https://bugzilla.wikimedia.org/show_bug.cgi?id=23739
Combine tooltips for overlapping markers or have next/previous buttons on the tooltip, whatever works best with the google api.
Right now when one has overlapping markers, only one can be accessed and only the top tooltip is shown on click.
-- Ed 2010-06-01 06:22:50 UTC
With the current setup, each time a page is saved, all geocoding requests on it are made. Given the geocoding services impose limits, it is not desirable to constantly hit them with the same requests. Some form of persistent caching of the geocoding calls would fix this.
Using a geocoding library such as geocoder-php or geotools has several benefits over the current custom code Maps has:
Message text: "Filter markers"
Question: Is Filter to be translated as a verb or a noun?
I think it is to be translated in a sense that one can filter by markers when using the filtering, however I am not sure. If yes it should probably better say "Filter by markers"
example page seems broken or I just currently do not get the magic :|
googlemaps and openlayers:
maps-par-searchmarkers
maps-googlemaps3-par-markercluster, maps-googlemaps3-par-imageoverlays
Setting a marker custom icon doesn't work. See:
http://semantic-mediawiki.org/wiki/Maps_examples/Point_specific_data
However, setting a whole-map custom marker does work. See:
http://semantic-mediawiki.org/wiki/Maps_examples/Map_properties
installed via Composer.
{{#display_map: Berlin, Germany
|service=openlayers
}}
raises
"NetworkError: 404 Not Found - http://localhost:8080/wiki01/index.php/Theme/default/style.css"
in Firebug. Any ideas?
Import from https://bugzilla.wikimedia.org/show_bug.cgi?id=48279
It would be great if the Mediawiki Maps plugin is able to 'map' IP addresses. So something like: {{#display_map:IP=209.85.139.9}}
I can see lots of cool stuff if this is possible. For example, we are hosting software that people can download for free but we do capture people's IP address. Would be nice to create a map to show where software went to.
Thanks for considering,
Albert.
-- [email protected] 2013-05-08 22:41:58 UTC
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.