---
title: "Geofence animated icon"
description: "Geofence animated icon (Maps & navigation). Light: six fence dashes draw clockwise around the pin from the top. Strong: all dashes whip on together as the fence snaps outward and settles; reverse retracts the dashes."
canonical: https://generativeicons.com/icons/geofence/
---

# Geofence animated icon

Light: six fence dashes draw clockwise around the pin from the top. Strong: all dashes whip on together as the fence snaps outward and settles; reverse retracts the dashes.

- Id: `geofence`
- Category: Maps & navigation
- Search terms: geo-fence, geo fence, boundary, perimeter, zone, virtual fence, service area, delivery zone, location alert, area boundary
- Two states: off to on, played forward and back
- Styles: outline, solid, duotone; outline weights 1.5, 2, 2.5 (any from 1 to 3); motion light or strong
- File: https://generativeicons.com/assets/geofence.lottie (dotLottie, 22423 bytes, sha256 e0137a86ab339d3049ea59c6fdf3f145f9f9582481528ee25d6ca3f47e7c247f)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add geofence
```

## React

```tsx
// npm install @lottiefiles/generative-icons-react
'use client';
import { AnimatedIcon } from '@lottiefiles/generative-icons-react';
import icon, { src } from './generative-icons/geofence.mjs';

export function GeofenceIcon() {
  return <AnimatedIcon icon={icon} src={src} size={32}
    color="#ffffff" variant="outline" weight={2}
    motion="light" theme="dark" />;
}
```

## JavaScript

```js
import { createIcon } from '@lottiefiles/generative-icons-runtime';
import icon, { src } from './generative-icons/geofence.mjs';

const handle = await createIcon(canvas, {
  icon, src,
  color: '#ffffff', style: 'outline', weight: 2,
  motion: 'light', theme: 'dark'
});
button.addEventListener('click', () => handle.play());
// On removal: handle.destroy();
```

More: https://generativeicons.com/icons/geofence/ · https://generativeicons.com/api/icons/geofence
