Zones on the High Command map: hairline outlines and a faint wash in each zone's status (neutral is a quiet grey outline), the status shape over its name, inactive zones dashed, the selected one heavier, High Command's hover card and click.
$ npx shadcn@latest add @highcommand/geofence-layerCopies the source into your project and pulls in what it needs (5 other items). First time? Add the registry to components.json.
Geofences on the High Command map: a hairline outline and a faint wash in the zone's status (neutral, the default, is a quiet grey outline: colour is status only), the status shape before its name, inactive zones dashed and faint, the selected one drawn heavier.
geofencesrequiredreadonly Geofence[]—The zones to draw.
selectedIdstring | nullnullId of the selected zone: drawn heavier.
onSelect(g: Geofence) => void—Called with the zone when it is clicked.
labelsbooleantrueZone names at their centroids. Default true.
facts(g: Geofence) => [string, ReactNode, StatusColor?][]—Extra figures for the hover card, e.g. vehicles inside: [label, value, status?].
renderCard(g: Geofence) => ReactNode—Your own hover card.
Install this free piece now; the Pro pieces drop in on top of it, in the same app. Pro is $79 once.