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

Full country labels #23

Open
schalise-bc opened this issue May 22, 2024 · 5 comments
Open

Full country labels #23

schalise-bc opened this issue May 22, 2024 · 5 comments

Comments

@schalise-bc
Copy link

Hi maplibre community,

Not sure if I should raise this as an issue or for discussion. I am using demotile for my website which is sufficing my need but need country label to be common i.e. in full form. I saw that some countries have short form being used and some don't have names that are official. E.g.
Dominican Republic -> Dominican Rep.
Sint Marteen -> St. Martin
Cook Islands -> Cook Is.

Is there any other symbol or name sources I could use where I could get the official names with demo styles ?
Thank you

@wipfli
Copy link
Contributor

wipfli commented May 22, 2024

Maybe https://fieldmaps.io/

@schalise-bc
Copy link
Author

@wipfli Sorry for my naive question. Is there any documentation or example on how to ?

@wipfli
Copy link
Contributor

wipfli commented May 29, 2024

No problem. For fieldmaps I don't know. But you could also have a look at natural earth which is probably the dataset that was used here...

@wipfli
Copy link
Contributor

wipfli commented May 31, 2024

I forgot to mention: You can of course also just go to https://overpass-turbo.eu/ and run this query to get all country labels in a geojson:

[out:json];
(
  node["place"="country"]({{bbox}}); 
);
out; 

@matths
Copy link

matths commented Feb 10, 2025

In the properties associated with countries in the maplibregl demotiles (that are btw. derived from Natural Earth) you find the ADM0_A3 Code for each Country. This resembles the ISO 3166 code and you can use that to map with full country names from whatever datasource you like, eg.
https://www.iso.org/iso-3166-country-codes.html
https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes

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

3 participants