mirror of
https://github.com/smittix/intercept.git
synced 2026-04-27 16:20:02 -07:00
Number(null) evaluates to 0 which passes Number.isFinite(), causing aprsHasValidCoordinates(null, null) to return true. This made initAprsMap() center the map at [0,0] (Gulf of Guinea) at zoom 8 instead of the US default, hiding all station markers off-screen. Add null guards (lat != null && lon != null) to reject null/undefined while still accepting 0 as a valid equator coordinate. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>