Roman Karavia, 2020-06-17
GitHub / Twitter: @rkaravia
Article: Wuhan steht wegen des Coronavirus unter Quarantäne
Published on 2020-01-23 (online) / 2020-01-24 (print, page 22)
⚡ Demo ⚡
Include enough regions to cover common use cases (countries and subdivisions)
Polygon or Multipolygon for each region
Highlight only land part
Compatible with base map
Stable identifier for every region
Extract OSM countries and clip to land
Does not have subdivisions
No recent updates
Comprehensive datasets with countries, states, provinces
Not matching everywhere with OpenStreetMap
1 region
All the regions
[out:json];
(
relation
[boundary=administrative]
["ISO3166-1"="CH"]; // country equals CH
relation
[boundary=administrative]
["ISO3166-2"~"^CH"]; // subdivision starts with CH
);
out; >; out skel;[out:csv(::"id", "ISO3166-1")];
relation
[boundary=administrative]
[admin_level=2]
["ISO3166-1"];
out;tippecanoe \
--minimum-zoom=0 \
--maximum-zoom=10 \
--named-layer="{
\"file\": \"countries-clipped.json\",
\"layer\": \"countries\"
}" \
--named-layer="{
\"file\": \"subdivisions-clipped.json\",
\"layer\": \"subdivisions\"
}" \
--include=wikidata \
--simplification=4 \
--simplify-only-low-zooms \
--output regions.mbtilesDataset of countries and commonly used subdivisions
Available as GeoJSON + vector tiles
Built with lots of Open Source and Open Data
Slides
Code
Demo