Offline regions for the whole world: the region list comes from Geofabrik's index (bin/geofabrik-regions-sync.mjs → geofabrik_regions.geojson, 193 countries plus subregions like the US states), keeping the European ISO codes; the picker folds it by continent with a search box and subregions under their country, flags for all of them
This commit is contained in:
1 parent
df69886220
commit
ff5924faf1
155 files changed
+5465
-113
No files matched your search
+44
-5
@@ -729,23 +729,62 @@ body.side-pinned:has(.basemap-panel:not([hidden]), .gpx-panel:not([hidden])) .pr
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.offline-data-panel__region-filter {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
margin-bottom: 4px;
|
||||
padding: 6px 8px;
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
/* Continents (collapsible) > countries > a country's subregions. */
|
||||
.offline-data-panel__region-list {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
max-height: 220px;
|
||||
max-height: 50vh;
|
||||
overflow-y: auto;
|
||||
border: 1px solid #eee;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.offline-data-panel__region-list li {
|
||||
.offline-data-panel__continent > summary,
|
||||
.offline-data-panel__subregions > summary {
|
||||
padding: 6px 8px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.offline-data-panel__continent > summary {
|
||||
font-weight: 600;
|
||||
background: #f7f7f7;
|
||||
border-bottom: 1px solid #eee;
|
||||
}
|
||||
|
||||
.offline-data-panel__count {
|
||||
font-weight: normal;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.offline-data-panel__subregions {
|
||||
margin-left: 26px;
|
||||
border-left: 2px solid #eee;
|
||||
}
|
||||
|
||||
.offline-data-panel__subregions > summary {
|
||||
color: #666;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.offline-data-panel__region {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.offline-data-panel__region[hidden],
|
||||
.offline-data-panel__continent[hidden],
|
||||
.offline-data-panel__subregions[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.offline-data-panel__region-list label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
Reference in new issue
Block a user