Skip to content

Antenna sample: carrier icon toggles in a card under the map - #80

Merged
wf9a5m75 merged 2 commits into
developfrom
feat/antenna-carrier-toggles
Nov 21, 2026
Merged

wf9a5m75 merged 2 commits into
developfrom
feat/antenna-carrier-toggles

Conversation

@wf9a5m75

Copy link
Copy Markdown
Contributor

What

  • The four carriers are buttons with an icon instead of checkboxes with counts. The icons (public/antennas/carrier-*.svg) are drawn for this sample in each carrier's circle colour, a white tower on a coloured disc, not the carriers' logos. A button is outlined in the carrier's colour while its cells are shown, and greyed out while they are hidden (aria-pressed). The per-carrier counts are gone.
  • The options are a card under the map instead of a ControlPanel over it, where they hid most of the map. SamplePageLayout gains a slot under the map stage, and BelowMapCard portals a page's card into it. The card renders after mount, since portals do not render on the server, so the static page and the first client paint stay the same. Other pages keep their ControlPanel.

The Android and iOS samples get the same change, with the same drawing, in their own PRs.

Checked

In the browser (dev server, MapLibre):

  • Toggles: turning Verizon and T-Mobile off shows 204,037 circles (AT&T + Others), and turning Verizon back on shows 351,201.
  • Card placement: the card sits outside the map stage, below it.
  • Alaska: switching keeps one card and its state.
  • Other pages: the Circle page has no card and keeps its panel.
  • Console: no errors.
  • Lint and types: oxlint reports nothing new, and tsc has no errors in the changed files.

Not checked: phone width. The card uses the same margins as the documentation card.

The four carriers are now buttons with an icon drawn for this sample in each carrier's circle colour (not the carriers' logos), pressed when shown. The per-carrier counts are gone.
Its panel over the map hid most of it. SamplePageLayout now has a slot under the map stage, and BelowMapCard portals a page's options into it as a card (after mount, since portals do not render on the server). Other pages keep their ControlPanel.
@wf9a5m75
wf9a5m75 merged commit 18fd177 into develop Nov 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant