Wikivoyage talk:How to use dynamic maps

From Wikivoyage
Jump to navigation Jump to search

Archived discussions

layer W always and not just by default[edit]

Am I right in assuming that the layer parameter does not accept M, O or anything that is external due to user privacy?

At least this is what is written in the description. But also we describe different options, which however have to effect on the displayed map.

Should we adjust the documentation therefore?

Cheers Ceever (talk) 11:21, 22 September 2019 (UTC)

How-to video: Create district overview maps[edit]

Swept in from the pub

User *angys* asked me how to create dynamic district overview maps like in Kuala Lumpur or Amsterdam. Thus I made an explanatory video for him. Hopefully it can be helpful to other editors as well:

Create GeoJSON with JOSM and upload to Wikimedia Commons

Some additional explanation

In short there are two options to create a district overview map:

1a. only
Go to, draw the lines/polygons, give them the desired color and title. Copy the GeoJSON file and proceed to step 2. A certain disadvantage with this solution is, that you cannot merge nodes. So if you have 2 polygons right next to each other, they won't be perfectly aligned. With the solution in 1b this problem is nonexistent.
1b. JOSM & (shown in the video above)
Draw polygons as desired and export as .geojson. Important: The export of polygons to .geojson only works as expected in JOSM, if the polygons have a describing tag assigned to it, which is normally applied to an area (e.g. landuse=residential)! You can assign the title tag to each polygon/line right in JOSM, if you don't want to do it in (e.g. title=[[Amsterdam/Noord|Noord]]).
2. Upload to Commons
Create a new map in Wikimedia Commons and paste in the GeoJSON created in 1.
3. Create mapmasks
In order to grey out the irrelevant parts of a district article map you can paste the GeoJSON from 2. into the tool Mapmask <-> GeoJSON Converter to create the mapmask code.

--Renek78 (talk) 02:05, 4 February 2020 (UTC)

In case you don't want to give Google clicks: File:Create GeoJSON with JOSM and upload to Wikimedia Commons.webm. Thanks for this, Rene. —Justin (koavf)TCM 02:27, 4 February 2020 (UTC)
Thanks Justin, sounds like a reasonable alternative. Just the resolution is quite poor. --Renek78 (talk) 03:19, 4 February 2020 (UTC)

Help exporting mapframe[edit]

Swept in from the pub

Hello! Basque Wikimedians have created a version of WikiVoyage inside Wikibooks (a temptative to see if we can have a community working on tourism related information). The project is on b:eu:Euskal_Herriko_bidaia-gida, but I would like to start adding the great mapframe option. I think I have copied everything needed (b:eu:Lankide:Theklan/Proba_orria) but can't get the listing appear on the map. It may be some .js or .css missing (we are working on having permissions for that) but I would like to know if something else is missing. Thanks! -Theklan (talk) 21:35, 18 June 2020 (UTC)

Alexander who helped with a map problem a few days ago, or Roland maybe know something? --Ypsilon (talk) 16:29, 19 June 2020 (UTC)
Wikibooks appears not to have group or show parameters implemented for mapframe and maplink. The same situation exists for wikipedia. A solution would be to make a single mapframe (FeatureCollection) with multiple features (ie. with type Point). Separate listings (doubling the work required) would use individual maplinks. Copying templates etc. can be useful and yet unsuccessful because of underlying code. I don't think they will change Kartographer. -- Matroc (talk) 05:06, 20 June 2020 (UTC)
@Matroc: Ok... so it is something that should be implemented in the core and cannot be solved with the templates? -Theklan (talk) 15:58, 20 June 2020 (UTC)
What I posted was an observation from what I experienced with wikipedia. First I would find out for sure if this is indeed the issue from those that know more than I. Note: from - The groups feature is only available in Wikivoyage (per VisualEditor team request). If something can be modified to make templates etc. work as envisaged would be great (best outcome). If not, then templates etc. would probably need to be modified (perhaps re-imagined) to produce some semblance of what you are trying to achieve. Don't give up... wait and see!. there are plenty of great minds out there and an awesome community. -- Matroc (talk) 04:34, 21 June 2020 (UTC)