Keep asked-for texts clear of the credit band; answer review round 1

At 400 to 640 px the credit band, held to 12 px after scaling, covered the date, the circuit line, the session
label and the season's subtitle. The band is now laid out first and every bottom text, the photo inset and the
poster's dark band are lifted by as much as it would cover them, which at full size is nothing, so classic draws
as before; the bottom checker is drawn last again, over the track's end. A first render now draws from the layer
as kept, so it matches every later render of its key, and the ETag is weak all the same. A Commons file's SHA-1
is kept beside the layers and asked once, so photo pictures need no Commons request after a restart. The USGS
credit carries no prefix, and /licences names a layout switched to the map among OpenStreetMap's uses.

Claude-Session: https://claude.ai/code/session_01NcbgfJAa38xFpzy69BWrqh
This commit is contained in:
2026-11-27 15:34:38 +01:00
parent d32e57ec41
commit 1cefc6dd52
5 changed files with 126 additions and 50 deletions
+3 -2
View File
@@ -93,7 +93,7 @@ JOLPICA_CREDIT = "Race schedules: Jolpica F1 API (https://github.com/jolpica/jol
def usgs() -> MapSource:
return MapSource("usgs", None,
"https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryOnly/MapServer/tile/{z}/{y}/{x}",
max_zoom=16, slots=4, credit="Imagery: USDA, USGS The National Map: Orthoimagery")
max_zoom=16, slots=4, credit="USDA, USGS The National Map: Orthoimagery")
def pdok() -> MapSource:
@@ -312,7 +312,8 @@ def licences() -> dict:
"bg=satellite elsewhere, for a layout first raced after 2016" if EOX_2016_FOR_EARLY_LAYOUTS
else "bg=satellite elsewhere",
"CC BY-NC-SA 4.0", nc_sa, eox(EOX_NEWEST).credit, "https://cloudless.eox.at/documentation/license"),
source("osm", "OpenStreetMap standard tiles", "bg=osm, bg=dark and bg=light (recoloured), the world locator",
source("osm", "OpenStreetMap standard tiles",
"bg=osm, bg=dark and bg=light (recoloured), the world locator, and a layout switched to the map",
"ODbL (data), tile usage policy", "https://www.openstreetmap.org/copyright", OSM_CREDIT,
"https://operations.osmfoundation.org/policies/tiles/"),
source("jolpica", "Jolpica F1 API", "race schedules: names, rounds, dates", "CC BY-NC-SA 4.0", nc_sa,