---
title: "<ScriptGoogleMapsCircle> · Nuxt Scripts"
description: "Draw a reactive circle overlay and handle its map events."
canonical_url: "https://scripts.nuxt.com/scripts/google-maps/api/circle"
meta:
  "og:description": "Draw a reactive circle overlay and handle its map events."
  "og:image": "https://scripts.nuxt.com/_og/s/o_c08761baa5d8a71e.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "<ScriptGoogleMapsCircle> · Nuxt Scripts"
  "twitter:image": "https://scripts.nuxt.com/_og/s/o_c08761baa5d8a71e.png"
---

> Index of every page on this site: [llms.txt](https://scripts.nuxt.com/llms.txt)

**Api**

# **\<ScriptGoogleMapsCircle>**

[Copy for LLMs](https://scripts.nuxt.com/scripts/google-maps/api/circle.md)

Circular overlay on the map. Place it inside a [`**<ScriptGoogleMaps>**`](https://scripts.nuxt.com/scripts/google-maps/api/script-google-maps) component. Its options map to [`**google.maps.CircleOptions**`](https://developers.google.com/maps/documentation/javascript/reference/polygon#CircleOptions).

`**options**``Omit<google.maps.CircleOptions, 'map'>`

Configuration options for the circle overlay.

## Usage

```vue
<template>
  <ScriptGoogleMaps api-key="your-api-key">
    <ScriptGoogleMapsCircle
      :options="{
        center: { lat: -34.397, lng: 150.644 },
        radius: 1000,
        fillColor: '#FF0000',
        fillOpacity: 0.35,
        strokeColor: '#FF0000',
        strokeOpacity: 0.8,
        strokeWeight: 2,
      }"
    />
  </ScriptGoogleMaps>
</template>
```

### Editable & Draggable

Allow users to resize or reposition the circle interactively.

```vue
<script setup lang="ts">
function onRadiusChanged() {
  console.log('Radius changed')
}
function onCenterChanged() {
  console.log('Center changed')
}
</script>

<template>
  <ScriptGoogleMaps api-key="your-api-key">
    <ScriptGoogleMapsCircle
      :options="{
        center: { lat: -34.397, lng: 150.644 },
        radius: 1000,
        editable: true,
        draggable: true,
        fillColor: '#4285F4',
        fillOpacity: 0.2,
      }"
      @radius_changed="onRadiusChanged"
      @center_changed="onCenterChanged"
    />
  </ScriptGoogleMaps>
</template>
```

### Click Events

```vue
<template>
  <ScriptGoogleMaps api-key="your-api-key">
    <ScriptGoogleMapsCircle
      :options="{
        center: { lat: -34.397, lng: 150.644 },
        radius: 500,
        clickable: true,
        fillColor: '#34a853',
        fillOpacity: 0.3,
      }"
      @click="(e) => console.log('Clicked at', e.latLng?.toJSON())"
    />
  </ScriptGoogleMaps>
</template>
```

The `**options**` prop is deeply reactive. Updating it calls `**circle.setOptions()**` under the hood, so you can dynamically change radius, color, or position without remounting the component.

[Edit this page](https://github.com/nuxt/scripts/edit/main/docs/content/google-maps/2.api/5.circle.md)

[Markdown For LLMs](https://scripts.nuxt.com/scripts/google-maps/api/circle.md)

[**\<ScriptGoogleMapsMarkerClusterer>** Group nearby advanced markers and customize their cluster rendering.](https://scripts.nuxt.com/scripts/google-maps/api/marker-clusterer) [**\<ScriptGoogleMapsPolygon>** Draw reactive polygon overlays, including editable polygons and polygons with holes.](https://scripts.nuxt.com/scripts/google-maps/api/polygon)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://scripts.nuxt.com/#website","@type":"WebSite","description":"Nuxt Scripts lets you load third-party scripts with better performance, privacy, security and DX. It includes many popular third-parties out of the box.","name":"Nuxt Scripts","url":"https://scripts.nuxt.com/","publisher":{"@id":"https://scripts.nuxt.com/#identity"}},{"@id":"https://scripts.nuxt.com/scripts/google-maps/api/circle#webpage","@type":"WebPage","description":"Draw a reactive circle overlay and handle its map events.","name":"<ScriptGoogleMapsCircle>","url":"https://scripts.nuxt.com/scripts/google-maps/api/circle","breadcrumb":{"@id":"https://scripts.nuxt.com/scripts/google-maps/api/circle#breadcrumb"},"isPartOf":{"@id":"https://scripts.nuxt.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://scripts.nuxt.com/scripts/google-maps/api/circle"]}],"primaryImageOfPage":{"@id":"https://scripts.nuxt.com/#logo"}},{"@id":"https://scripts.nuxt.com/#identity","@type":"Organization","name":"Nuxt Scripts","url":"https://scripts.nuxt.com","logo":{"@id":"https://scripts.nuxt.com/#logo"}},{"@id":"https://scripts.nuxt.com/scripts/google-maps/api/circle#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Nuxt Scripts","item":"https://scripts.nuxt.com/","position":1},{"@type":"ListItem","name":"Scripts","item":"https://scripts.nuxt.com/scripts","position":2},{"@type":"ListItem","name":"Google Maps","item":"https://scripts.nuxt.com/scripts/google-maps","position":3},{"@type":"ListItem","name":"API","item":"https://scripts.nuxt.com/scripts/google-maps/api","position":4},{"@type":"ListItem","name":"<ScriptGoogleMapsCircle>","item":"https://scripts.nuxt.com/scripts/google-maps/api/circle","position":5}]},{"@id":"https://scripts.nuxt.com/#logo","@type":"ImageObject","caption":"Nuxt Scripts","contentUrl":"https://scripts.nuxt.com/logo.svg","inLanguage":"en","url":"https://scripts.nuxt.com/logo.svg"}]}
```

## Sitemap

See the full [sitemap](https://scripts.nuxt.com/sitemap.md) for all pages.
