Maplibre guide - add controls (#2459)

This commit is contained in:
Cristine Guadelupe 2024-01-29 15:09:41 -03:00 committed by GitHub
parent 368b69b423
commit 60d7dd74c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -347,6 +347,17 @@ Ml.new(
)
```
## Controls
The controls allow you to personalize the experience of using the maps that best suits you.
In addition to navigation controls, terrain, scale, location and geocode controls are available.
The geocode control is particularly interesting. It allows you to use [Nominatim](https://nominatim.org) queries to search for any address directly from the map.
```elixir
Ml.new() |> Kino.MapLibre.add_geocode_control()
```
<!-- livebook:{"branch_parent_index":2} -->
## Interactive maps