From 1507a704f6bf3af2933672e699351791893c961c Mon Sep 17 00:00:00 2001 From: macbre Date: Fri, 23 Jan 2026 22:04:34 +0000 Subject: [PATCH 1/4] Roundabouts - work in progress --- faroe.html | 42 ++++++++++++++++++++++-------------------- static/map.css | 7 +++++++ static/map.js | 7 ++++--- 3 files changed, 33 insertions(+), 23 deletions(-) diff --git a/faroe.html b/faroe.html index e6262ee..ef2ca13 100644 --- a/faroe.html +++ b/faroe.html @@ -24,11 +24,11 @@

Faroe Islands

Wyspy Owcze

-

Old village paths

-

Szlaki między osadami

+

Roundabouts

+

Ronda

- +

All across the Faroe Islands, you'll find bygdagøtur - old narrow village paths that have been in use since the islands were first settled. They were used to get to the neighboring villages, attend the church, carry the coffin to the nearby cemetery, and deliver the post. @@ -76,7 +76,7 @@

Szlaki między osadami

ResearchOpracowanie: Maciej Brencz @ farerskiekadry.pl

- DataDane: Visit Faroe Islands + DataDane: OpenStreetMaps

@@ -112,6 +112,7 @@

Szlaki między osadami

let counts = []; // https://leafletjs.com/reference.html#geojson + /** L.geoJSON(await fetchGeoJSON('/geojson/fo-hikes.json'), { pane: `markers-blue`, // so that the geojson layer is rendered and visible style: feature => { @@ -155,7 +156,6 @@

Szlaki między osadami

L.marker([start[1], start[0]], {icon: getIcon('blue', '', 4), pane: `markers-blue`}).addTo(map); L.marker([end[1], end[0]], {icon: getIcon('blue', '', 4), pane: `markers-blue`}).addTo(map); } - **/ }).addTo(map); addLabel('dark-green', 'Up to 5 km long', 'Do 5 km długości', counts['green']); @@ -176,30 +176,30 @@

Szlaki między osadami

let counts = []; **/ - /** - L.geoJSON(await fetchGeoJSON('/geojson/osm-building-church.json'), { + /**/ + L.geoJSON(await fetchGeoJSON('/geojson/osm-junction-roundabout.json'), { onEachFeature: feature => { const geo = feature.geometry.coordinates; console.log(feature.properties); // https://www.wikidata.org/wiki/Q11999142 // P186 -> Q287 - wood - const material = feature.properties.wikidata_claims?.P186?.id; - const isWooden = material === 'Q287'; + // const material = feature.properties.wikidata_claims?.P186?.id; + // const isWooden = material === 'Q287'; - // "denomination": "roman_catholic", - const isCatholic = feature.properties.denomination === 'roman_catholic'; + // // "denomination": "roman_catholic", + // const isCatholic = feature.properties.denomination === 'roman_catholic'; - let color = 'blue'; + let color = 'red'; - if (isCatholic) { - color = 'orange' - } - else if (isWooden) { - color = 'green'; - } + // if (isCatholic) { + // color = 'orange' + // } + // else if (isWooden) { + // color = 'green'; + // } - L.marker([geo[1], geo[0]], {icon: getIcon(color), pane: `markers-${color}`}) + L.marker([geo[1], geo[0]], {icon: getIcon(color, '', true/*small*/), pane: `markers-${color}`}) .addTo(map) .bindPopup(feature.properties.name); @@ -208,7 +208,9 @@

Szlaki między osadami

counts[color]++; } }); - **/ + + addLabel('red', 'Roundabout', 'Rondo', counts['red']); + /**/ }); // console.log(gridsPerCity); diff --git a/static/map.css b/static/map.css index 47716ef..073baf2 100644 --- a/static/map.css +++ b/static/map.css @@ -110,6 +110,13 @@ body[lang="pl"] *[lang="en"] { display: none } /* and vice-versa */ /* filter: sepia(0.2); */ } +.marker-small { + --marker-size-small: 8px; + width: var(--marker-size-small); + height: var(--marker-size-small); + border-radius: var(--marker-size-small); +} + /* https://colorbrewer2.org/#type=diverging&scheme=RdYlGn&n=10 */ .marker.green { background-color: #a6d96a } .marker.dark-green { background-color: #006837 } diff --git a/static/map.js b/static/map.js index d619f49..c421507 100644 --- a/static/map.js +++ b/static/map.js @@ -1,13 +1,14 @@ // get a custom icon // https://www.geoapify.com/create-custom-map-marker-icon -function getIcon(color /* green | blue | yellow */, label) { - let size = 16; +function getIcon(color /* green | blue | yellow */, label, small) { + let size = small ? 8 : 16; label = label ? ` title="${label}"`: ''; + const isSmallClass = small ? " marker-small" : ""; // https://leafletjs.com/reference.html#divicon return L.divIcon({ className: 'marker-icon', - html: ``, + html: ``, iconSize: [size, size], // The coordinates of the "tip" of the icon (relative to its top left corner). // The icon will be aligned so that this point is at the marker's geographical location. From 2c6d7ec58b2eb96ad9fda40f78ec7acfa042ed5a Mon Sep 17 00:00:00 2001 From: macbre Date: Fri, 23 Jan 2026 22:25:13 +0000 Subject: [PATCH 2/4] Roundabouts: add text --- faroe.html | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/faroe.html b/faroe.html index ef2ca13..b80046c 100644 --- a/faroe.html +++ b/faroe.html @@ -30,15 +30,19 @@

Ronda

- All across the Faroe Islands, you'll find bygdagøtur - old narrow village paths that have been in use since the islands were first settled. - They were used to get to the neighboring villages, attend the church, carry the coffin to the nearby cemetery, and deliver the post. + The first roundabout (rundkoyring) in the Faroe Islands was opened in March 1990 in Runavík.

- These trails are marked by stone cairns (varðar) and free to hike along. Do remember to stay on the path. Walking on the in- and outfields require the landowners’ permission. + Since then, a few dozen have been built across the islands — half of them in Tórshavn alone. On the entire island of Vágar, though, you’ll only find three. The same goes for Klaksvík, the second-largest Faroese town. +

+ In December 2020, the Eysturoyartunnilin tunnel opened, featuring the world’s first undersea roundabout. It’s that dot right in the middle of the fjord.

- Wyspy Owcze poprzecinane są licznymi bygdagøtur - szlakami, które od stuleci łączyły osady. Korzystano z nich by dotrzeć do sąsiedniej wioski, wziąć udział w nabożeństwie, przenieść zmarłego na miejsce wiecznego spoczynku, dostarczyć pocztę. + Pierwsze farerskie rondo (rundkoyring) zostało otwarte w roku 1990 w Runavíku. +

+ Na współczesnych mapach drogowych znajdziemy ich już kilkadziesiąt – połowę z nich w samym Tórshavn. + Cała wyspa Vágar ma ich tylko trzy. Podobnie jak drugie co do wielkości miasto na Wyspach - Klaksvík. Ale za to tam na środku ronda znajdziemy wielki hak.

- Szlaki te znaczą kamienne kopczyki (varðar), pomagające w nawigacji. Korzystanie z nich jest bezpłatne. Pamiętajmy jednak, aby nie zbaczać z wyznaczonej ścieżki. Uszanujmy farerskie prawo własności. + W grudniu 2020 roku - wraz z otwarciem Eysturoyartunnilin - oddano do użytku pierwsze na świecie podmorskie rondo. Tak, to ta kropka pośrodku fiordu.