From c9a7ef93680da8f4863370a2b6bfae36f3330b4e Mon Sep 17 00:00:00 2001 From: Doxa Maps Date: Sat, 3 Oct 2026 13:48:34 +0000 Subject: [PATCH] Country posters print fast on a phone: the sea-name scan and the label placement skip any land ring whose bbox cannot hold the point, and the scan tests the frame first. Exact: all 286 sheets are byte-identical; generation is 3.4-4.4x faster (China's 3x4 sheet 10.3 s -> 3.1 s). --- library/packet/poster-render.integrity.js | 4 ++-- library/packet/poster-render.js | 23 +++++++++++++++++++---- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/library/packet/poster-render.integrity.js b/library/packet/poster-render.integrity.js index 7b17598fc..b17fada30 100644 --- a/library/packet/poster-render.integrity.js +++ b/library/packet/poster-render.integrity.js @@ -2,13 +2,13 @@ // The sha384 of library/packet/poster-render.js. The browser fetches the served copy of that file // (/lib/poster-render.js), hashes it, and runs it only when it matches this pin: code loaded at // print time is integrity-pinned like every embed, because it executes on partner pages. -export const POSTER_RENDER_SHA384 = 'sha384-BNFUrsdCCaEetmp5cSBzDklAUsB5XBEefQEcCd3+dNNDghxRuZNytNsVfl5mBOeP' +export const POSTER_RENDER_SHA384 = 'sha384-sR7a+BDeXAxY0eZS+crqAXtYtVySYAeDKSek4aHPFYzsUaq9pVi+v2RkmkwjadCV' // The sha384 of library/scripts/posters/data/ne-places.json, served at /boundaries/ne-places.json. // Data, not code, but pinned the same way: a sheet uses the places only when they are the pinned ones. export const NE_PLACES_SHA384 = 'sha384-Qtz2q8mcnA9Ei8Kwa2MRMyX95hSbSnUXjXdtsy8rHTX++mgSCih4LO4Rdrb2MIQy' // The sha384 of the classic-script copy (/lib/poster-render.global.js, globalVariant of the file above), // loaded with