Oliver Wipfli
Oliver Wipfli
More demo maps now with a language switch that includes 7 languages are available here: https://pub-cf7f11e26ace447db8f7215b61ac0eae.r2.dev/lang-style/lang.html?script=Devanagari&language=hi#map=6.84/50.777/1.48, code see #275
I am happy to provide more screenshots with descriptions in #275. Regarding bringing in more name translations, let me open a separate issue.
The demo is now available at https://pub-cf7f11e26ace447db8f7215b61ac0eae.r2.dev/lang-style/index.html?script=Cyrillic&language=ru#map=9.84/33.5273/-7.4407
> Do you know why the 2nd language line is centered under the 1st line, even when the text is protected (anchored) to the left or right? Best practice would...
Edit: Removed the demo in favor of the built-in app.
For a demo see https://pub-cf7f11e26ace447db8f7215b61ac0eae.r2.dev/segment.html#map=10.17/33.6/-7.5023 The `places_locality` layer uses a text field expression like this one: maplibre style expression ```json "text-field": [ "case", [ "all", ["has", "name"], ["!", ["has", "name2"]],...
I plan to write the style expression with TypeScript and maybe we can simplify the case expressions a bit. So far it is just a first draft without any optimization...
If we think the expression ends up being too long, we can also use 2 segments at most instead of the current 3...
The demo at https://pub-cf7f11e26ace447db8f7215b61ac0eae.r2.dev/lang-style/index.html?script=Latin&language=en#map=8/38/24 has been updated to the latest commit of this pull request