Integrating Leaflet to my React project, I had some problems with the country.json
file I am using. I need to have the UK with separate regions, so England, Scotland, Wales and Northern Ireland. Unfortunately, I’m finding it difficult to find the coordinates of these regions. I asked ChatGPT for a turbo overpass query that would return Scotland, but it doesn’t give me a suitable query. What can I do?
Hi @Alfonso_Zappia and welcome here.
I would use osm-boundaries.com:
You can define the download options to get what you want:
admin-level=4 should be right. It’s your choice to get only the land boundaries or with water.
Here’s an example with those downloads (Scotland with water, Wales land only): Leaflet - boundary of Scotland
1 Like