record full rebuild staging audits

This commit is contained in:
OpenAI Codex
2026-04-18 16:48:13 +08:00
parent 6d72340f36
commit 08a00a86c7
9 changed files with 335 additions and 4 deletions

View File

@@ -317,12 +317,13 @@
<script src="https://unpkg.com/maplibre-gl@4.7.1/dist/maplibre-gl.js"></script>
<script>
const HTML_VERSION = "full-audit-r2-20260416-1504";
const HTML_VERSION = "full-audit-r3-20260418-1546";
const ORIGINAL_STYLE_URL = "./style.json";
const ORIGINAL_TILE_URL = "http://192.168.200.184/newpec/exported_auto/tile.mapple-on.jp__newpec-mvt-20260106__z___x___y_.pbf/tiles/{z}/{x}/{y}.pbf";
const searchParams = new URLSearchParams(window.location.search);
const auditMode = searchParams.get("audit") === "1";
const variantParam = (searchParams.get("variant") || "semantic").trim().toLowerCase();
const deliveryTileUrlOverride = (searchParams.get("deliveryTileUrl") || "").trim();
const PROFILES = {
full: {
label: "全国",
@@ -439,7 +440,11 @@
deliveryPaneLabelEl.textContent = PROFILE.deliveryPaneLabel;
homeBtn.textContent = PROFILE.homeLabel;
styleChip.textContent = `Style: ${PROFILE.deliveryStyleVersion} (${PROFILE.deliveryStyleFile})`;
pbfChip.textContent = `PBF: ${PROFILE.deliveryPbfVersion} (${PROFILE.deliveryPbfName})`;
if (deliveryTileUrlOverride) {
pbfChip.textContent = `PBF: override (${deliveryTileUrlOverride})`;
} else {
pbfChip.textContent = `PBF: ${PROFILE.deliveryPbfVersion} (${PROFILE.deliveryPbfName})`;
}
spriteChip.textContent = `Sprite: ${PROFILE.deliverySpriteVersion} (${PROFILE.deliverySpriteName})`;
document.title = `NavSea Compare · ${PROFILE.label}`;
}
@@ -486,7 +491,8 @@
function buildDeliveryStyle(style) {
const next = structuredClone(style);
if (next.sources?.navsea_delivery) {
next.sources.navsea_delivery.tiles = [withCacheBuster(PROFILE.deliveryTileUrl, styleVersion)];
const tileUrl = deliveryTileUrlOverride || PROFILE.deliveryTileUrl;
next.sources.navsea_delivery.tiles = [withCacheBuster(tileUrl, styleVersion)];
}
return touchStyleAssets(next);
}