Previously RangeEstimate.estimate/1 ran on every beacon page mount,
even though the cells data was only rendered after the user flipped
the coverage toggle — a wasted bbox grid pass per page load. Start
with estimate: nil, compute lazily in handle_event("toggle_coverage")
when flipping on, and push the cells payload to the Leaflet hook via
a new load_coverage event. The JS hook no longer reads data-cells on
mount and only builds the cellLayer when the server sends it. Cached
in the socket so re-toggling is instant.
|
||
|---|---|---|
| .. | ||
| types | ||
| app.ts | ||
| beacon_map_hook.ts | ||
| beacons_list_map_hook.ts | ||
| contact_map_hook.ts | ||
| contacts_map_hook.ts | ||
| elevation_profile_hook.ts | ||
| locate_me_hook.ts | ||
| maidenhead_grid.ts | ||
| propagation_map_hook.ts | ||
| rover_map_hook.ts | ||
| weather_map_hook.ts | ||