From 60d7dd74c3cd8a0abbd589615151868d1fd3c057 Mon Sep 17 00:00:00 2001 From: Cristine Guadelupe Date: Mon, 29 Jan 2024 15:09:41 -0300 Subject: [PATCH] Maplibre guide - add controls (#2459) --- lib/livebook/notebook/learn/intro_to_maplibre.livemd | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/livebook/notebook/learn/intro_to_maplibre.livemd b/lib/livebook/notebook/learn/intro_to_maplibre.livemd index 154f838c8..02447d128 100644 --- a/lib/livebook/notebook/learn/intro_to_maplibre.livemd +++ b/lib/livebook/notebook/learn/intro_to_maplibre.livemd @@ -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() +``` + ## Interactive maps