Draw a zone on the High Command map: click points, drag to adjust, Enter or the first point to finish, Backspace to take back, Escape to cancel; a glass panel with the live point count and area, key hints and buttons as the keyboard-only path.
Part of High Command Pro. The preview and props are open to everyone; installing it needs your license key. Set up your key · Pricing
$ npx shadcn@latest add @highcommand/geofence-drawCopies the source into your project and pulls in what it needs (5 other items). First time? Add the registry to components.json.
Draw a zone on the High Command map.
activerequiredboolean—Drawing on or off; off discards an unfinished shape.
onCompleterequired(ring: LngLat[]) => void—The finished ring (open, at least 3 points).
onCancel() => void—Escape or Cancel.
unit'mi' | 'km''mi'Unit for the area readout. Default mi.
panelbooleantrueThe floating panel with the hint and buttons. Default true.
classNamestring—Extra classes for the floating panel (only drawn when `panel` is true).