mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-06 13:04:53 +08:00
Maplibre guide - add controls (#2459)
This commit is contained in:
parent
368b69b423
commit
60d7dd74c3
1 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue