Comments (5)
An example of language switching can be found here:
https://openmaptiles.org/languages/native/#0.56/0/0
from openstreetmap-americana.
Perhaps we could use something like Electron to create a tray: https://stackoverflow.com/questions/40485102/rich-html-tray-menu-in-a-desktop-web-application
from openstreetmap-americana.
As of #581, the user can switch the label language by adding &language=
, followed by one or more IETF BCP 47 language tags, to the hash part of the URL. This issue tracks an in-page control for switching the language.
As far as I know, this OpenMapTiles YAML file enumerates the ISO 639 language codes for which Planetiler adds name:*
fields to the vector tiles. Intl.DisplayNames
can turn these language codes into human-readable language names in either the original language or the user’s preferred language.
This project supports specifying a list of fallback locales. If we want the control to support that as well, then the ideal control would be a token field, which is not supported natively by the DOM but is available from a number of libraries.
from openstreetmap-americana.
#609 adds a read-only display of the label language fallback list.
from openstreetmap-americana.
Here is a proposed workflow for using simplistic text links:
from openstreetmap-americana.
Related Issues (20)
- Faroe Islands shields HOT 2
- Shields for Guernsey, Jersey and the Isle of Man HOT 1
- Shields of Malta
- Shields of Denmark
- Shields of Norway HOT 9
- Shields of Andorra
- Shields for the State of Mexico
- Norwegian names and language codes HOT 4
- Move this repo to the osm-americana organization HOT 7
- Make Americana an OSM US-supported project HOT 7
- Distinguish overlapping protected areas HOT 6
- Courthouses
- Campgrounds and potential new POI color HOT 1
- Change links from zelonewolf.github.io to americanamap.org
- random line in Gulf of Mexico HOT 2
- Additional Shields of Mexico City HOT 1
- Add shields for unorganized territory roads in Minnesota HOT 2
- Add option to print or export vector graphics
- Wikipedia link in readme has been moved
- Dead links in taginfo to renamed icons
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openstreetmap-americana.