# Application Maps and Location: Geofence Zones

Static map blueprint with polygon and radius zones above ruled rows pairing each zone with its trigger rule, event count, and toggle.

- Page: https://www.shadcn-ui-blocks.com/blocks/application-pro/maps-location/geofence-zones
- Collection: [Application](https://www.shadcn-ui-blocks.com/blocks/application-pro), Standard tier
- Group: [Maps and Location](https://www.shadcn-ui-blocks.com/blocks/application-pro/maps-location)
- Created: 2026-07-02
- Preview image: https://www.shadcn-ui-blocks.com/blocks/application-pro/maps-location/geofence-zones.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-pro-maps-location-geofence-zones
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: class-variance-authority, radix-ui
- shadcn/ui components: badge, button, switch
- Installs to: `@/components/blocks/application-pro/maps-location/geofence-zones`

## About this block

Geofence Zones is the zone monitoring panel, a static
map blueprint with three zones drawn over a street
grid: Depot perimeter as a solid polygon with vertex
handles, Downtown service area as a dashed 3 km radius
circle with a measured radius line, and Airport pickup
lot drawn muted while paused. Below the map, ruled rows
pair each zone with a shape swatch, its kind and size,
the trigger rule, the event count for today, and an
active toggle, with a Paused badge on the inactive row.

Zones are one array with shape, rule, event, and active
fields; the paused state dims the zone on the map and
zeroes its counter so the two surfaces never disagree.
The map is self-contained inline SVG with no tile
provider or embed.

## When to use

Reach for this block in fleet, logistics, and asset
tracking products where teams define areas that trigger
alerts or logs. Wire the toggles to your geofence API
and the event counts to the last day of enter and exit
events.

A natural flow around it on an Application Pro page:

**Before**

- [Map with pins blueprint](https://www.shadcn-ui-blocks.com/blocks/application-pro/maps-location)
- [App shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells)

**After**

- [Notifications](https://www.shadcn-ui-blocks.com/blocks/application-pro/notifications)
- [Workflow automation](https://www.shadcn-ui-blocks.com/blocks/application-pro/workflow-automation)

## What you can display

One strong use is the fleet operations geofence list.
Other zone surfaces:

- **Site safety zones.** Restricted areas on a job site
  with hard alerts on entry.
- **Delivery boundaries.** Service area polygons that
  gate address validation at checkout.
- **Compliance zones.** Regulated regions where entry
  starts an audit log rather than an alert.

> Tip: pause a zone instead of deleting it when rules
> change seasonally; history stays attached and the
> muted rendering makes the paused state obvious.

## More in Application Maps and Location

- [Address Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/maps-location/address-card)
- [Distance Radius Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/maps-location/distance-radius-card)
- [IP Lookup Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/maps-location/ip-lookup-panel)
- [Location History](https://www.shadcn-ui-blocks.com/blocks/application-pro/maps-location/location-history)
- [Location Picker](https://www.shadcn-ui-blocks.com/blocks/application-pro/maps-location/location-picker)
- [Location Sharing Settings](https://www.shadcn-ui-blocks.com/blocks/application-pro/maps-location/location-sharing-settings)
- [Map With Pins Blueprint](https://www.shadcn-ui-blocks.com/blocks/application-pro/maps-location/map-with-pins-blueprint)
- [Region Selector](https://www.shadcn-ui-blocks.com/blocks/application-pro/maps-location/region-selector)
- [Route Planner](https://www.shadcn-ui-blocks.com/blocks/application-pro/maps-location/route-planner)
- [Territory List](https://www.shadcn-ui-blocks.com/blocks/application-pro/maps-location/territory-list)
- [Timezone Overlap](https://www.shadcn-ui-blocks.com/blocks/application-pro/maps-location/timezone-overlap)
