Skip to content

Commit

Permalink
Merge branch 'main' of github.com:avo-hq/avodocs
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianthedev committed Jul 18, 2023
2 parents f443428 + 00281ca commit 440a994
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/2.0/fields/location.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,20 @@ By using this notation, Avo will grab the `latitude` and `longitude` from those
This will also render the <Edit /> view with two separate fields to edit the coordinates.

<img :src="('/assets/img/fields/location-edit.png')" alt="Location field" class="border mb-4" />

:::option `zoom`

Changes the zoom level for the map with higher numbers being zoomed in and showing a smaller area on the map.

#### Default value

`15`

#### Possible values

Any number between 0 (the most zoomed out) to 22 (the most zoomed in).

```ruby
field :coordinates, as: :location, zoom: 5
```

0 comments on commit 440a994

Please sign in to comment.