Skip to content

Commit

Permalink
Merge pull request #66 from iainbeeston/patch-4
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianthedev authored Jul 7, 2023
2 parents e9bfcbc + 658bd41 commit 00281ca
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 00281ca

Please sign in to comment.