# Maps widget with a circle around the location

**URL:** <https://community.tago.io/t/maps-widget-with-a-circle-around-the-location/1569>\
**Category:** Feature Request\
**Created:** [April 11, 2024, 8:29pm UTC](https://community.tago.io/t/maps-widget-with-a-circle-around-the-location/1569 "2024-04-11T20:29:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![celio.gushiken](https://avatars.discourse-cdn.com/v4/letter/c/8c91f0/32.png) [@celio.gushiken](https://community.tago.io/u/celio.gushiken)\
**Post date:** [April 11, 2024, 8:29pm UTC](https://community.tago.io/t/maps-widget-with-a-circle-around-the-location/1569/1 "2024-04-11T20:29:08Z")

</div>

Dear all,

I had to draw a circle around the device last location and did some workaround:

1. added a variable to the payload, “range” as a fence format:

```auto

```

_{_

_“variable”: “range”,_

_“value”: “Range: 36.75”,_

_“location”: {_

```
_"type": "Point",_

_"coordinates": \[_

  _-46.63629,_

  _-23.595664_

_\]_

```

_},_

_“metadata”: {_

```
_"event": "Accuracy: 36.75",_

_"eventColor": "black",_

_"geolocation": {_

  _"type": "Point",_

  _"radius": 36.75,_

  _"coordinates": \[_

    _-23.595664,_

    _-46.63629_

  _\]_

_}_

```

_}_

_}_

```auto

```

2. Changed geofence options in the widget to show only one value for the “range” variable.

Then the result is this:

 ![](https://canada1.discourse-cdn.com/flex034/uploads/tagoio1/original/2X/a/a86a3f53e1e7672d9e67e5e62474c1057d95b6d2.jpeg)

Would be nice if the map widget have this feature (location.radius or metadata.radius or metadata.geolocation.radius ) on the variable without adding a new variable to simulate it.

Color option and a button to switch on/off the view also would be welcome.

Thanks in advance
