-
-
Notifications
You must be signed in to change notification settings - Fork 362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use local language for names on the map #664
Comments
@ENT8R @westnordost Do you know is it possible to dynamically modify style in tangram-es? |
Yes. I am doing this for the quests. Though, what exactly needs to be changed on the style to change the language of the labels is different for each style? Or is this independent of which style is used? |
Depends on style - for example see https://github.com/ENT8R/streetcomplete-mapstyle/blob/master/global.yaml#L24 where source of names (later reused) is defined. With So http://www.openstreetmap.org/node/25248662 is currently displayed on map as 北京市, with language set to en it would be Beijing (and with language set to de it would be Peking). With Cinnabar it is also possible to set it somewhere, I would need to check variable name. |
In Cinnabar it would be |
And https://github.com/tangrams/tangram-es/blob/master/platforms/android/demo/src/main/java/com/mapzen/tangram/android/MainActivity.java#L87 has what seems to be example of doing this. |
Passing current language set on phone to https://github.com/westnordost/StreetComplete/blob/master/app/src/main/assets/cinnabar-style-8.0.0.yaml#L24 would result in displaying names on the map in the local language (except low zoom as result of tilezen/vector-datasource#977 )
According to #659 (comment) ideal app version would include a dynamic map style, so it may be a good first step.
The text was updated successfully, but these errors were encountered: