Interactive maps, now in your language

Translate this post

Photo by барон Н.Н.Торнау, public domain.

Imagine you needed to learn about a foreign land, but the only map you had was written in a mysterious script you couldn’t read. That might sound like a plot twist from some adventure story, but it’s actually the situation visitors to Wikimedia projects—including Wikipedia—often found themselves in until recently.
An extension called Kartographer enables Wikimedians to create interactive maps simply by supplying the longitude and latitude of a location. The service is powered by geographic data from the open-source mapping project OpenStreetMap. These Kartographer maps provide a valuable form of visual information, but until now they’ve suffered from a limitation common to most OpenStreetMap projects: maps were displayed in the language of the territory mapped, rather than in the reader’s language. The map of Asia below demonstrates the issue. To understand it fully, a reader would have to know no less than seven different writing systems.
An example of how wiki maps looked before internationalization. It’s labeled in seven distinct writing systems (from right to left): Japanese, Korean, Latin (for Vietnam), Chinese, Lao, Thai, and Burmese. Visit the dynamic map, and read more about its copyright licenses.

Another problem with Kartographer maps was that until recently, the full service wasn’t available on most Wikipedias. Editors on these wikis could link to interactive maps, but they lacked the “mapframe” feature that lets you embed maps right on a page.

A wish fulfilled

In 2017, the maps user community rallied behind a proposal in the Community Wishlist Survey that requested Kartographer Improvements, making this the most voted-for Wishlist item of the year. The proposal’s main wish was to fix Kartographer so that maps display in the language of the reader.  In January of this year, the Foundation’s Collaboration team got the assignment to address this and other issues with Kartographer, and the Map improvements 2018 project was born.
Revamping Kartographer so it displays maps in virtually every script and language on the planet was a significant challenge—I’m told there is no other mapping service that even tries. But after a lot of painstaking work, last month the maps community got its wish with the release of “map internationalization.”  At the same time, the Map Improvements project delivered the ability to embed maps on a wiki page to the 277 Wikipedias that didn’t have the feature previously, including English Wikipedia. Now, maps like the one below—which no longer shows a babel of languages and alphabets—can be displayed on almost all Wikimedia wikis.*

The same map after internationalization. All labels are in the language of the wiki—English, in this case. Visit the dynamic map, and read more about its copyright licenses.

In the weeks since we released internationalized maps to all wiki projects, users have already placed more than 60,000 new mapframe maps on wiki pages.  These large numbers are possible because of templates, which volunteers can code to pull geo coordinates from Wikidata automatically and generate maps on hundreds or even thousands of pages at once. To cite a few examples, looking only at Wikipedias that didn’t have mapframe previously: Koreans now use mapframe to show the location of metro stations, Italians are mapping football stadiums (see illustration), English Wikipedians are tracing roads, and Bengalis are pinpointing the sites of American universities.
More on this at the bottom.**

That users are spreading interactive maps around the wikis in large numbers isn’t a surprise, since they offer many advantages. As demonstrated by the template examples just cited, mapframe maps are easier to generate than previous locator maps, which had to be created as graphics and uploaded individually. They provide more information to readers, since clicking on a mapframe map pops it up in a larger window where it can be zoomed and panned to show detail or context. And, of course, dynamic maps are less likely to become outdated as borders, place names and page layouts change.

Limitations and workarounds

Like Wikipedia, OpenStreetMap (OSM) is an open-source project, which means that its map data, including name data, are created  by volunteers. What names are available in which languages varies considerably from language to language and place to place. In general, the names of countries, states, provinces and major cities are present in many languages, while smaller towns and geographic features may or may not be available in the language you want. The table below shows the relative strengths of “multilingual name data,” as it’s known, in the 25 most widely available OSM languages.
With internationalization, Kartographer tries to present maps in the content language of the wiki where the map appears. When the software encounters a place or other map feature for which it can’t find a name in the desired language, it falls back as gracefully as possible: first to languages configured as fallbacks for the requested language, then to any transliterated names in the same script, and finally to the language of the territory mapped.

Availability of multilingual data in OpenStreetMap varies considerably from language to language. The more “translations” there are in a language, the higher the likelihood that a given map feature will display in that language. (Data from OSM, April, 2018.) Image by Joe Matazzoni, CC BY-SA 4.0.

This system works better in some situations than others. When the results are unsatisfactory, there are a few things you can do:

  • Add the missing names to OSM in your language. Doing so isn’t difficult, but do first take time to learn a bit about OSM’s best practices in this area. For example, you’ll want to supply only names that are time-honored and traditional in your language, avoiding new translations and transliterations.
  • Use a newly created parameter, lang=”xx, that lets you specify a particular language for your map (where xx stands for the short codes used to identify each language).
  • Use the value “local” with the above parameter to essentially opt out of internationalization, displaying the map in the language(s) of the territory mapped, like so: lang=“local”.
  • Change your language’s fallback sequence, possibly adding a commonly-translated language to the list (this will require community consensus).

The Map Improvements 2018 project page includes a number of posts that detail the hows and whys of these various approach, including: this post and this one, on the uses of lang=”local”; and this one about why some wikis might want to change their fallback languages.

Visual Editor’s map tools let you define a map’s location by just dragging and zooming. You can also set the size, language and alignment and add informational markings. Here the user has outlined the state of Nevada and set a marker for Las Vegas. Screenshot, read more about its copyright licenses.

Put your project on the map

The Map Improvements 2018 engagement comes to a conclusion at the end of June. Besides the internationalization features we’ve been talking about and some other necessary fixes to the user experience, a big focus of the project was modernizing and upgrading the Kartographer software so that the Reading Engineering team can maintain the technology going forward (here is the newly created Wikimedia Maps project page, where users will track and discuss that ongoing work).
If you typically work on one of the 277 Wikipedias that never had embedded mapframe maps before, it’s pretty easy to try these new features out. Visual Editor offers tools for creating  basic maps (see the illustration). A newly rewritten Kartographer Help page explains the Visual Editor features and demonstrates more advanced annotation and other capabilities.
It’s a wide world out there and mapping is a great way to explore and understand it a little better. Here’s hoping that these new feature encourage some of you to do just that.

———

*The exceptions are nine wikis that use a strict version of Flagged Revisions.
**An Italian Wikipedia template for football stadiums pulls geo coordinates from Wikidata and uses mapframe to automatically generate locator maps.

Joe Matazzoni is a product manager at the Wikimedia Foundation. The Map Improvements 2018 project couldn’t have been successful without generous advice and programming contributions from map-loving volunteers, including Yurik, framawiki, Naveenpf, TheDJ, Milu92, Atsirlin, Evad37, Pigsonthewing, Mike Peel, eranroz, Gareth and Abbe98. Thanks to them and everyone else who lent their hands to this work.

This blog post was edited on 9 July to include a mention of OpenStreetMap’s best practices.

Archive notice: This is an archived post from blog.wikimedia.org, which operated under different editorial and content guidelines than Diff.

Can you help us translate this article?

In order for this article to reach as many people as possible we would like your help. Can you translate this article to get the message out?

6 Comments
Inline Feedbacks
View all comments

There is a good page here that gives insight on what ‘names’ can be entered in OSM.
https://wiki.openstreetmap.org/wiki/Names
Yvecai, an OSM user and contributor

Rendering multilingual maps is an important and exciting development. Congratulations on your effort. However your post here has stirred up quite some heated discussion on OSM-Talk. Adding every imaginable language to every POI name in the OSM database is not what the OSM community wants and to call for this in this blog post is asking to vandalize OSM. Sorry, but it has to be called out like it is. It’s especially weird to read this on a wikimedia page from a wikimedia developer because wikimedia already has solved the internationalization issue with wikidata. Wikidata is the right place to… Read more »

Dear Joe, I would like to backup mxa’s recommendation to you to correct and update your call for the sake of all those nice WP, Wikidata and OpenStreetMap (OSM) projects. As yvecai said on OSM-talk: There is little advice in the article on how to enter names in OSM: https://www.mail-archive.com/talk@openstreetmap.org/msg60447.html So pls. consider adding this along following lines “When the results are unsatisfactory…” * “Add the missing names to Wikidata (not OpenStreetMap) in your language” * (… remaining bullets seem to target Wikidata anyway) * “Add the name to OpenStreetMap only after having understood how to do this: See https://wiki.openstreetmap.org/wiki/Names… Read more »

Describing good-faith contributions to an open-source project as “vandalism” is as unacceptable here (if not more so) than on the OSM mailing list where I first called out such behaviour.

Joe,
It’s over a week ago since you published this news.
Then replies regarding your suboptimal recommendations related to names in OSM showed up.
I hope you’ll have soon time to update this nice post.