Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Switching the MKMapView display language

Tags:

ios

iphone

Is it possible to switch the underlying language of MKMapView to a different one than the system locale?

For example, if the address displays translated street names (English) but I need to see the native language translations (e.g. in mainland China or Japan).

A alternative to this is to include a local Map Engine (like Baidu) but I wish to see if iOS can do that out of the box.

like image 200
Sebastian Roth Avatar asked Aug 20 '12 15:08

Sebastian Roth


People also ask

What framework is required to use a Mkmapview in an app?

You can use the MapKit framework to: Embed maps directly into your app's windows and views. Add annotations and overlays to a map to call out points of interest.

What is Apple MapKit?

MapKit lets you bring the world's most detailed city experiences from Apple Maps to your apps and websites, all with a focus on privacy. And you can use the new Maps Server API to create more functional experiences across platforms.

What is Mkmap in Swift?

An embeddable map interface, similar to the one that the Maps app provides.


1 Answers

The map will display in the language of the country it is displaying, often with English (or maybe your local language) as a second language. Open the Maps app on your phone and type in Dubai or Cairo, Egypt, for example, and you'll see Arabic text for cities and streets.

The same is true of other languages. Type Shanghai, China and you'll get Chinese text, Tokyo, Japan and you'll get Japanese text, etc.

There is (as of now) no open framework functions to manually change the languages of the input. I know that the openstreetmap API have some calls for this, but that would require rolling your own map handler.

like image 65
Nils Munch Avatar answered Sep 22 '22 10:09

Nils Munch