Add audit mode for 20nm compare screenshots
This commit is contained in:
@@ -221,6 +221,15 @@
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
body.audit-mode .pane-tag,
|
||||
body.audit-mode .inspect-panel,
|
||||
body.audit-mode .status,
|
||||
body.audit-mode .maplibregl-ctrl-top-right,
|
||||
body.audit-mode .maplibregl-ctrl-bottom-right,
|
||||
body.audit-mode .maplibregl-ctrl-bottom-left {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
@media (max-width: 980px) {
|
||||
.layout {
|
||||
grid-template-columns: 1fr;
|
||||
@@ -314,7 +323,7 @@
|
||||
|
||||
<script src="https://unpkg.com/maplibre-gl@4.7.1/dist/maplibre-gl.js"></script>
|
||||
<script>
|
||||
const HTML_VERSION = "compare-r15-20260401-1705";
|
||||
const HTML_VERSION = "compare-r16-20260401-1734";
|
||||
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 PROFILES = {
|
||||
@@ -359,6 +368,7 @@
|
||||
};
|
||||
const searchParams = new URLSearchParams(window.location.search);
|
||||
const requestedProfile = searchParams.get("profile");
|
||||
const auditMode = searchParams.get("audit") === "1";
|
||||
|
||||
const reloadBtn = document.getElementById("reload-btn");
|
||||
const homeBtn = document.getElementById("home-btn");
|
||||
@@ -387,6 +397,7 @@
|
||||
|
||||
htmlChip.textContent = `HTML: ${HTML_VERSION}`;
|
||||
profileSelect.value = currentProfileKey;
|
||||
if (auditMode) document.body.classList.add("audit-mode");
|
||||
|
||||
function getCurrentProfile() {
|
||||
return PROFILES[currentProfileKey];
|
||||
|
||||
Reference in New Issue
Block a user