wipfli / positioned-glyph-font

Postioned glyph font for MapLibre
https://wipfli.github.io/positioned-glyph-font/examples/protomaps/name-ne
MIT License
4 stars 1 forks source link

Broken label #7

Open wipfli opened 9 months ago

wipfli commented 9 months ago

https://wipfli.github.io/positioned-glyph-font/examples/protomaps/#map=11.91/26.9058/85.70416

wipfli commented 9 months ago

Might be because we are using sometimes "name" instead of "@name". This means we uses non-encoded strings but reference the positioned glyph font with it so stuff will go wrong.

Example:

https://github.com/wipfli/positioned-glyph-font/blob/13a7aec3f3fdcfe269235e1d846cfa755afa7a6c/examples/protomaps/style.json#L2482

wipfli commented 9 months ago

If I replace "name" with "@name" in the entire style, the broken label mentioned here goes away. This means that the feature has no "@name" even though it should have...

wipfli commented 9 months ago

Broken label:

image