Skip to content

Commit abeb6d8

Browse files
committed
Update coverage embed URL to use current zone code for improved accuracy
1 parent 990ff0a commit abeb6d8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

content/wardrive.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,8 +768,10 @@ function updateAutoButton() {
768768
}
769769
}
770770
function buildCoverageEmbedUrl(lat, lon) {
771+
// Use current zone code from preflight check, fallback to default
772+
const zoneCode = (state.currentZone?.code || WARDIVE_IATA_CODE).toLowerCase();
771773
const base =
772-
"https://yow.meshmapper.net/embed.php?cov_grid=1&fail_grid=1&pings=0&repeaters=1&rep_coverage=0&grid_lines=0&dir=1&meters=1500";
774+
`https://${zoneCode}.meshmapper.net/embed.php?cov_grid=1&fail_grid=1&pings=0&repeaters=1&rep_coverage=0&grid_lines=0&dir=1&meters=1500`;
773775
return `${base}&lat=${encodeURIComponent(lat)}&lon=${encodeURIComponent(lon)}`;
774776
}
775777
let coverageRefreshTimer = null;

0 commit comments

Comments
 (0)