Skip to content

Commit

Permalink
Deployed 6fe2ab1 with MkDocs version: 1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown committed Jan 9, 2025
1 parent abbb92f commit fb3e3af
Show file tree
Hide file tree
Showing 10 changed files with 704 additions and 260 deletions.
18 changes: 9 additions & 9 deletions changelog_update/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5490,7 +5490,7 @@ <h1>Changelog update</h1>
<!-- End of mermaid configuration --><div class="jupyter-wrapper">
<div class="jp-Notebook" data-jp-theme-light="true" data-jp-theme-name="JupyterLab Light">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=8acb246d">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=5e7f6d9a">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand All @@ -5517,7 +5517,7 @@ <h1>Changelog update</h1>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=600df603">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=fb5911de">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand Down Expand Up @@ -5570,7 +5570,7 @@ <h1>Changelog update</h1>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=750b7cfa">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=7133e290">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand Down Expand Up @@ -5599,7 +5599,7 @@ <h1>Changelog update</h1>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=ed61cae5">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=b37f017b">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand Down Expand Up @@ -5632,7 +5632,7 @@ <h1>Changelog update</h1>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=3a676051">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=a5826679">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand Down Expand Up @@ -5661,7 +5661,7 @@ <h1>Changelog update</h1>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=9b7eee50">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=93678d25">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand Down Expand Up @@ -5706,7 +5706,7 @@ <h1>Changelog update</h1>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=18a304f8">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=03dcf6e7">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand Down Expand Up @@ -5735,7 +5735,7 @@ <h1>Changelog update</h1>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=00bba34b">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=d831fd67">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand Down Expand Up @@ -5764,7 +5764,7 @@ <h1>Changelog update</h1>
</div>
</div>
</div>
<div class="jp-Cell jp-MarkdownCell jp-Notebook-cell" id="cell-id=ea1d197d">
<div class="jp-Cell jp-MarkdownCell jp-Notebook-cell" id="cell-id=5edb8f5d">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand Down
4 changes: 0 additions & 4 deletions common/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29933,7 +29933,6 @@ <h2 id="geemap.common.geocode" class="doc doc-heading">
<span class="sd"> location (str): Place name or address</span>
<span class="sd"> max_rows (int, optional): Maximum number of records to return. Defaults to 10.</span>
<span class="sd"> reverse (bool, optional): Search place based on coordinates. Defaults to False.</span>

<span class="sd"> Returns:</span>
<span class="sd"> list: Returns a list of locations.</span>
<span class="sd"> &quot;&quot;&quot;</span>
Expand Down Expand Up @@ -29966,9 +29965,6 @@ <h2 id="geemap.common.geocode" class="doc doc-heading">
<span class="k">elif</span> <span class="s2">&quot; &quot;</span> <span class="ow">in</span> <span class="n">location</span><span class="p">:</span>
<span class="n">latlon</span> <span class="o">=</span> <span class="p">[</span><span class="nb">float</span><span class="p">(</span><span class="n">x</span><span class="p">)</span> <span class="k">for</span> <span class="n">x</span> <span class="ow">in</span> <span class="n">location</span><span class="o">.</span><span class="n">split</span><span class="p">(</span><span class="s2">&quot; &quot;</span><span class="p">)]</span>
<span class="k">else</span><span class="p">:</span>
<span class="nb">print</span><span class="p">(</span>
<span class="s2">&quot;The lat-lon coordinates should be numbers only and separated by comma or space, such as 40.2, -100.3&quot;</span>
<span class="p">)</span>
<span class="k">return</span>
<span class="n">g</span> <span class="o">=</span> <span class="n">geocoder</span><span class="o">.</span><span class="n">arcgis</span><span class="p">(</span><span class="n">latlon</span><span class="p">,</span> <span class="n">method</span><span class="o">=</span><span class="s2">&quot;reverse&quot;</span><span class="p">)</span>
<span class="n">locations</span> <span class="o">=</span> <span class="p">[]</span>
Expand Down
36 changes: 35 additions & 1 deletion core/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7326,6 +7326,15 @@ <h2 id="geemap.core.Map" class="doc doc-heading">
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_find_widget_of_type</span><span class="p">(</span><span class="n">map_widgets</span><span class="o">.</span><span class="n">Inspector</span><span class="p">)</span>

<span class="nd">@property</span>
<span class="k">def</span> <span class="nf">_search_bar</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">Optional</span><span class="p">[</span><span class="n">map_widgets</span><span class="o">.</span><span class="n">SearchBar</span><span class="p">]:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Finds the search bar widget in the map controls.</span>

<span class="sd"> Returns:</span>
<span class="sd"> Optional[map_widgets.SearchBar]: The search bar widget if found, else None.</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_find_widget_of_type</span><span class="p">(</span><span class="n">map_widgets</span><span class="o">.</span><span class="n">SearchBar</span><span class="p">)</span>

<span class="nd">@property</span>
<span class="k">def</span> <span class="nf">_draw_control</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">MapDrawControl</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Finds the draw control widget in the map controls.</span>
Expand Down Expand Up @@ -7578,6 +7587,8 @@ <h2 id="geemap.core.Map" class="doc doc-heading">
<span class="k">return</span>
<span class="n">new_kwargs</span> <span class="o">=</span> <span class="p">{</span><span class="o">**</span><span class="n">basic_control</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">}</span>
<span class="nb">super</span><span class="p">()</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">basic_control</span><span class="p">[</span><span class="mi">0</span><span class="p">](</span><span class="n">position</span><span class="o">=</span><span class="n">position</span><span class="p">,</span> <span class="o">**</span><span class="n">new_kwargs</span><span class="p">))</span>
<span class="k">elif</span> <span class="n">obj</span> <span class="o">==</span> <span class="s2">&quot;search_control&quot;</span><span class="p">:</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_add_search_control</span><span class="p">(</span><span class="n">position</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">)</span>
<span class="k">elif</span> <span class="n">obj</span> <span class="o">==</span> <span class="s2">&quot;toolbar&quot;</span><span class="p">:</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_add_toolbar</span><span class="p">(</span><span class="n">position</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">)</span>
<span class="k">elif</span> <span class="n">obj</span> <span class="o">==</span> <span class="s2">&quot;inspector&quot;</span><span class="p">:</span>
Expand Down Expand Up @@ -7651,6 +7662,20 @@ <h2 id="geemap.core.Map" class="doc doc-heading">
<span class="p">)</span>
<span class="nb">super</span><span class="p">()</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">inspector_control</span><span class="p">)</span>

<span class="k">def</span> <span class="nf">_add_search_control</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">position</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">:</span> <span class="n">Any</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Adds a search bar to the map.</span>

<span class="sd"> Args:</span>
<span class="sd"> position (str): The position to place the inspector.</span>
<span class="sd"> **kwargs (Any): Additional keyword arguments.</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">_search_bar</span><span class="p">:</span>
<span class="k">return</span>
<span class="n">widget</span> <span class="o">=</span> <span class="n">map_widgets</span><span class="o">.</span><span class="n">SearchBar</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">)</span>
<span class="n">widget</span><span class="o">.</span><span class="n">on_close</span> <span class="o">=</span> <span class="k">lambda</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">remove</span><span class="p">(</span><span class="s2">&quot;search_control&quot;</span><span class="p">)</span>
<span class="n">control</span> <span class="o">=</span> <span class="n">ipyleaflet</span><span class="o">.</span><span class="n">WidgetControl</span><span class="p">(</span><span class="n">widget</span><span class="o">=</span><span class="n">widget</span><span class="p">,</span> <span class="n">position</span><span class="o">=</span><span class="n">position</span><span class="p">)</span>
<span class="nb">super</span><span class="p">()</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">control</span><span class="p">)</span>

<span class="k">def</span> <span class="nf">_add_layer_editor</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">position</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">:</span> <span class="n">Any</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Adds a layer editor to the map.</span>

Expand Down Expand Up @@ -7724,6 +7749,7 @@ <h2 id="geemap.core.Map" class="doc doc-heading">
<span class="sd"> widget (Any): The widget to remove.</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="n">basic_controls</span><span class="p">:</span> <span class="n">Dict</span><span class="p">[</span><span class="nb">str</span><span class="p">,</span> <span class="n">ipyleaflet</span><span class="o">.</span><span class="n">Control</span><span class="p">]</span> <span class="o">=</span> <span class="p">{</span>
<span class="s2">&quot;search_control&quot;</span><span class="p">:</span> <span class="n">map_widgets</span><span class="o">.</span><span class="n">SearchBar</span><span class="p">,</span>
<span class="s2">&quot;zoom_control&quot;</span><span class="p">:</span> <span class="n">ipyleaflet</span><span class="o">.</span><span class="n">ZoomControl</span><span class="p">,</span>
<span class="s2">&quot;fullscreen_control&quot;</span><span class="p">:</span> <span class="n">ipyleaflet</span><span class="o">.</span><span class="n">FullScreenControl</span><span class="p">,</span>
<span class="s2">&quot;scale_control&quot;</span><span class="p">:</span> <span class="n">ipyleaflet</span><span class="o">.</span><span class="n">ScaleControl</span><span class="p">,</span>
Expand Down Expand Up @@ -7983,7 +8009,12 @@ <h2 id="geemap.core.Map" class="doc doc-heading">
<span class="sd"> Dict[str, List[str]]: The control configuration.</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">return</span> <span class="p">{</span>
<span class="s2">&quot;topleft&quot;</span><span class="p">:</span> <span class="p">[</span><span class="s2">&quot;zoom_control&quot;</span><span class="p">,</span> <span class="s2">&quot;fullscreen_control&quot;</span><span class="p">,</span> <span class="s2">&quot;draw_control&quot;</span><span class="p">],</span>
<span class="s2">&quot;topleft&quot;</span><span class="p">:</span> <span class="p">[</span>
<span class="s2">&quot;search_control&quot;</span><span class="p">,</span>
<span class="s2">&quot;zoom_control&quot;</span><span class="p">,</span>
<span class="s2">&quot;fullscreen_control&quot;</span><span class="p">,</span>
<span class="s2">&quot;draw_control&quot;</span><span class="p">,</span>
<span class="p">],</span>
<span class="s2">&quot;bottomleft&quot;</span><span class="p">:</span> <span class="p">[</span><span class="s2">&quot;scale_control&quot;</span><span class="p">,</span> <span class="s2">&quot;measure_control&quot;</span><span class="p">],</span>
<span class="s2">&quot;topright&quot;</span><span class="p">:</span> <span class="p">[</span><span class="s2">&quot;toolbar&quot;</span><span class="p">],</span>
<span class="s2">&quot;bottomright&quot;</span><span class="p">:</span> <span class="p">[</span><span class="s2">&quot;attribution_control&quot;</span><span class="p">],</span>
Expand Down Expand Up @@ -8340,6 +8371,8 @@ <h3 id="geemap.core.Map.add" class="doc doc-heading">
<span class="k">return</span>
<span class="n">new_kwargs</span> <span class="o">=</span> <span class="p">{</span><span class="o">**</span><span class="n">basic_control</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">}</span>
<span class="nb">super</span><span class="p">()</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">basic_control</span><span class="p">[</span><span class="mi">0</span><span class="p">](</span><span class="n">position</span><span class="o">=</span><span class="n">position</span><span class="p">,</span> <span class="o">**</span><span class="n">new_kwargs</span><span class="p">))</span>
<span class="k">elif</span> <span class="n">obj</span> <span class="o">==</span> <span class="s2">&quot;search_control&quot;</span><span class="p">:</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_add_search_control</span><span class="p">(</span><span class="n">position</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">)</span>
<span class="k">elif</span> <span class="n">obj</span> <span class="o">==</span> <span class="s2">&quot;toolbar&quot;</span><span class="p">:</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_add_toolbar</span><span class="p">(</span><span class="n">position</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">)</span>
<span class="k">elif</span> <span class="n">obj</span> <span class="o">==</span> <span class="s2">&quot;inspector&quot;</span><span class="p">:</span>
Expand Down Expand Up @@ -9121,6 +9154,7 @@ <h3 id="geemap.core.Map.remove" class="doc doc-heading">
<span class="sd"> widget (Any): The widget to remove.</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="n">basic_controls</span><span class="p">:</span> <span class="n">Dict</span><span class="p">[</span><span class="nb">str</span><span class="p">,</span> <span class="n">ipyleaflet</span><span class="o">.</span><span class="n">Control</span><span class="p">]</span> <span class="o">=</span> <span class="p">{</span>
<span class="s2">&quot;search_control&quot;</span><span class="p">:</span> <span class="n">map_widgets</span><span class="o">.</span><span class="n">SearchBar</span><span class="p">,</span>
<span class="s2">&quot;zoom_control&quot;</span><span class="p">:</span> <span class="n">ipyleaflet</span><span class="o">.</span><span class="n">ZoomControl</span><span class="p">,</span>
<span class="s2">&quot;fullscreen_control&quot;</span><span class="p">:</span> <span class="n">ipyleaflet</span><span class="o">.</span><span class="n">FullScreenControl</span><span class="p">,</span>
<span class="s2">&quot;scale_control&quot;</span><span class="p">:</span> <span class="n">ipyleaflet</span><span class="o">.</span><span class="n">ScaleControl</span><span class="p">,</span>
Expand Down
Loading

0 comments on commit fb3e3af

Please sign in to comment.