Vessel layer renders AIS aids-to-navigation (MMSI 99xxxxxxx buoys) as vessels #186

Closed
opened 2026-09-27 13:38:13 -04:00 by logan · 0 comments
Owner

components/MapView.tsx VesselLayer/vesselIcon() (~line 244-275, from 3d2b722, pre-dates the aircraft-side-panel branch) renders every doc in the vessels collection with the same ship icon and popup copy ('MMSI {v.mmsi}'). MMSI numbers starting with 99 are AIS aids-to-navigation (buoys, lighthouses, etc.), not vessels underway — the AIS spec reserves that block for ATON. Showing a stationary buoy with a heading-rotated ship glyph and a 'Speed: N kt' style popup is misleading.

Fix: branch on mmsi.startsWith('99') (or the underlying AIS message type if c2-core already captures it) to render ATON with a distinct icon/label and drop the ship-specific fields (heading/speed) from its popup.

Flagged during QA of the aircraft-side-panel branch per owner's ask; out of that branch's diff (VesselLayer untouched), filing separately so it isn't lost.

`components/MapView.tsx` `VesselLayer`/`vesselIcon()` (~line 244-275, from 3d2b722, pre-dates the aircraft-side-panel branch) renders every doc in the `vessels` collection with the same ship icon and popup copy ('MMSI {v.mmsi}'). MMSI numbers starting with 99 are AIS aids-to-navigation (buoys, lighthouses, etc.), not vessels underway — the AIS spec reserves that block for ATON. Showing a stationary buoy with a heading-rotated ship glyph and a 'Speed: N kt' style popup is misleading. Fix: branch on `mmsi.startsWith('99')` (or the underlying AIS message type if c2-core already captures it) to render ATON with a distinct icon/label and drop the ship-specific fields (heading/speed) from its popup. Flagged during QA of the aircraft-side-panel branch per owner's ask; out of that branch's diff (VesselLayer untouched), filing separately so it isn't lost.
logan closed this issue 2026-09-27 13:45:31 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: logan/server-26#186