Skip to content

include all name variants (don't de-dup) #1406

@matkoniecz

Description

@matkoniecz

I wanted to provide fallback for names - for example for a location in Japan I would want to display name:pl if it would be available, with name:en as fallback and if neither was available use name, likely to contain unreadable squiggles (true list was significantly longer but other languages were omitted for previty).

  • What did you see?

Mapzen includes all language variants of the name:* values to enable full internationalization (when different from name).

https://github.com/tilezen/vector-datasource/blob/master/docs/layers.md

So as result, in Poland name:pl was removed and as result I got English names on my map in Poland (despite name:pl provided, to avoid exactly this problem).

  • What did you expect to see?

name:lang are provided, even if the same as name (or there is a list of languages where name is the same as in the name tag, so one may use fallback in displaying label)

  • What map location are you having problems with? City and country are helpful, as well as tile coordinates or latitude / longitude.
  • Screenshot? Props for animated gifs.

See https://github.com/matkoniecz/Zazolc/commits/failed_fallback branch

https://mapzen.com/tangram/play/?#13.5000/50.0586/19.9356

selection_004

This image contains more German labels than Polish ones. With addition of some English labels, that are also unwanted.

German and English names are preferable over Japan/Korean/Hebrew etc, but not over Polish names.

Is space saved by avoiding name duplication really worth making fallback for labels impossible? How much space is saved this way? Maybe deduplicate only some languages?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions