Skip to content
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

Support multilingual name tags #105

Closed
hanchao opened this issue Jun 8, 2015 · 10 comments
Closed

Support multilingual name tags #105

hanchao opened this issue Jun 8, 2015 · 10 comments

Comments

@hanchao
Copy link
Contributor

hanchao commented Jun 8, 2015

multilingual name tags

@rmarianski
Copy link
Member

Thanks for submitting this. What we'd like to do is include the tags for alternate names (name:*) in the response only if those names are different from the name tag. This would help keep tile sizes down.

Some initial looking at taginfo [1] suggests that the number of features with alternate names is significantly smaller than the number of features with names. We might run some experiments to verify what the tile size impact will before rolling this out. We'll do some more research [2] into what other tags we might want to include, if any, in this scheme too.

[1] http://taginfo.openstreetmap.org/search?q=name
[2] http://wiki.openstreetmap.org/wiki/Key:name

@rmarianski
Copy link
Member

We now include name:* tags for features where that value is different from the name tag.

@musicformellons
Copy link

@rmarianski How do I get the values? I tried e.g. replacing {name} by {name:ru} or {name_ru} but do not get any values.

@rmarianski
Copy link
Member

@musicformellons The separator is a :

Here's an example:

http://vector.mapzen.com/osm/places/16/32751/21790.json

@musicformellons
Copy link

In mapbox stylesheet -using mapbox gl js- I replace {name} (which works fine) with {name:fr} and get:
image

@nvkelso
Copy link
Member

nvkelso commented Sep 22, 2015

Try quoting it?

On Tue, Sep 22, 2015 at 8:09 AM, musicformellons [email protected]
wrote:

In mapbox stylesheet -using mapbox gl js- I replace {name} (which works
fine) with {name:fr} and get:
[image: image]
https://cloud.githubusercontent.com/assets/10334123/10022336/91c5e16e-614c-11e5-88cc-6576eb3fa1d2.png


Reply to this email directly or view it on GitHub
#105 (comment)
.

@musicformellons
Copy link

Tried various ways of (single and double) quoting, but to no avail:
image

@nvkelso
Copy link
Member

nvkelso commented Sep 23, 2015

Suggest following up with Mapbox and reporting back here.

Sent from my handsful device.

On Sep 22, 2015, at 08:15, musicformellons [email protected] wrote:

Tried various ways of (single and double) quoting, but to no avail:


Reply to this email directly or view it on GitHub.

@musicformellons
Copy link

ok, will do.

@musicformellons
Copy link

See:
mapbox/mapbox-gl-style-spec#362 (comment)

Could the : be altered into a _ ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants