Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Can you control the language of OpenStreetMap locations?

I'm building an App for a Proof of Concept and I'm using the Map visualisation. Given that the users may be based all round the world, I'd like to localised how place names are displayed to the user.

For now, I'd just like to pass the language I want to render the place names in. For example, do something like this in the desktop app:

http://tile.openstreetmap.org/${z}/${x}/${y}.png?name=en

To force the places to show in English, all around the world but I'm struggling with the correct nomenclature.

I'm using QlikSense v1.0.0+Build:21ms8

Thanks!

1 Solution

Accepted Solutions
Not applicable
Author

(Further to the conversation where Adam advised me that the tiles have the name embedded, I looked at other map providers, found MapQuest and added it's URL but got a satellite aerial view, but I wanted a map view).

Ah - ok, I just need to change the 'sat' part to 'map':

was:

http://otile1.mqcdn.com/tiles/1.0.0/sat/${z}/${x}/${y}.png

now:

http://otile1.mqcdn.com/tiles/1.0.0/map/${z}/${x}/${y}.png

(ref MapQuest-OSM Tiles + MapQuest Open Aerial Tiles - MapQuest Developer Network )

This does give me what I need for the demo. Actually, I've used: http://a.tile.opencyclemap.org/cycle/${z}/${x}/${y}.png as this is offers the best mix and imagery for my purposes.

Thanks for the help!

View solution in original post

4 Replies
Anonymous
Not applicable
Author

Hi David,

This appears to be more a case of how the map is rendered into tiles on the tile server. There is a similar questions asked at the following page around forcing English names globally.

http://stackoverflow.com/questions/18589621/setting-map-language-to-english-in-openstreetmap-with-le...

I would imagine that if you wanted to provide maps in many languages you would either need a lot of map providers, or to set up your own tile server to follow the required behaviour. Qlik Sense gives you the option of different servers but can't provide the content itself.

Not applicable
Author

Hi Adam,

Thanks - or one provider that actually offered the functionality to pass a language setting in the URL, which then rendered the labels from that setting. Do you know any providers that offer that?

By the looks of that stackoverflow comment, mapquest has what I'm after for the purposes of the demo, but it's not rendering any names (using http://otile1.mqcdn.com/tiles/1.0.0/sat/${z}/${x}/${y}.png) - so if I could get this I'd be cooking on gas.

Thanks,

Dave

Not applicable
Author

(Further to the conversation where Adam advised me that the tiles have the name embedded, I looked at other map providers, found MapQuest and added it's URL but got a satellite aerial view, but I wanted a map view).

Ah - ok, I just need to change the 'sat' part to 'map':

was:

http://otile1.mqcdn.com/tiles/1.0.0/sat/${z}/${x}/${y}.png

now:

http://otile1.mqcdn.com/tiles/1.0.0/map/${z}/${x}/${y}.png

(ref MapQuest-OSM Tiles + MapQuest Open Aerial Tiles - MapQuest Developer Network )

This does give me what I need for the demo. Actually, I've used: http://a.tile.opencyclemap.org/cycle/${z}/${x}/${y}.png as this is offers the best mix and imagery for my purposes.

Thanks for the help!

flaurntiu
Partner - Contributor III
Partner - Contributor III

I noticed when using the Mapquest tile servers to display the maps that they have been decomissioned as per july 11 2016