Skip to content

Commit

Permalink
Deployed e339474 with MkDocs version: 1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Kuethe committed Dec 14, 2024
1 parent fbdb3c9 commit a685abd
Show file tree
Hide file tree
Showing 12 changed files with 1,775 additions and 1,341 deletions.
92 changes: 46 additions & 46 deletions api/basemaps/index.html

Large diffs are not rendered by default.

186 changes: 93 additions & 93 deletions api/controls/index.html

Large diffs are not rendered by default.

325 changes: 192 additions & 133 deletions api/layer/index.html

Large diffs are not rendered by default.

2,118 changes: 1,223 additions & 895 deletions api/map/index.html

Large diffs are not rendered by default.

266 changes: 138 additions & 128 deletions api/sources/index.html

Large diffs are not rendered by default.

61 changes: 56 additions & 5 deletions changelog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -513,9 +513,9 @@
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>

<li class="md-nav__item">
<a href="#maplibre-v027-unreleased" class="md-nav__link">
<a href="#maplibre-v027" class="md-nav__link">
<span class="md-ellipsis">
maplibre v0.2.7 (unreleased)
maplibre v0.2.7
</span>
</a>

Expand Down Expand Up @@ -1233,9 +1233,9 @@
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>

<li class="md-nav__item">
<a href="#maplibre-v027-unreleased" class="md-nav__link">
<a href="#maplibre-v027" class="md-nav__link">
<span class="md-ellipsis">
maplibre v0.2.7 (unreleased)
maplibre v0.2.7
</span>
</a>

Expand Down Expand Up @@ -1377,9 +1377,60 @@


<h1 id="changelog-for-maplibre-for-python">Changelog for MapLibre for Python</h1>
<h2 id="maplibre-v027-unreleased">maplibre v0.2.7 (unreleased)</h2>
<h2 id="maplibre-v027">maplibre v0.2.7</h2>
<ul>
<li>
<p>Add <code>basemaps.MapTiler</code></p>
</li>
<li>
<p>Add <code>maplibre.__future__</code></p>
</li>
<li>
<p>Add <code>Map.fit_bounds</code></p>
</li>
<li>
<p>Add expression helpers <code>maplibre.expressions</code>:</p>
</li>
<li><code>interpolate</code></li>
<li><code>step_expr</code></li>
<li><code>quantile_expr</code></li>
<li><code>match_expr</code></li>
<li><code>color_step_expr</code></li>
<li><code>color_quantile_expr</code></li>
<li><code>color_match_expr</code></li>
<li><code>filter_expr</code></li>
<li>
<p><code>range_filter</code></p>
</li>
<li>
<p>Add support for <code>pydeck.Layer</code> for</p>
</li>
<li><code>Map.add_deck_layers</code> and </li>
<li>
<p><code>Map.set_deck_layers</code></p>
</li>
<li>
<p>Add <code>sources.SimpleFeatures</code> for <code>geopandas.GeoDataFrame</code> sources </p>
</li>
<li>
<p>Support <code>geopandas.GeoDataFrame</code> as source in</p>
</li>
<li><code>Layer</code> and</li>
<li>
<p><code>Map.add_source</code></p>
</li>
<li>
<p>Add more parameters to <code>Map</code> class for simpler map initialization:</p>
</li>
<li><code>layers</code>: list</li>
<li><code>sources</code>: dict</li>
<li>
<p><code>controls</code>: list</p>
</li>
<li>
<p>Add <code>position</code> attribute to <code>Control</code> classes</p>
</li>
<li>
<p>Add <code>sources.VectorTileSource</code> (<a href="https://github.com/Martenz">Martenz</a>)</p>
</li>
<li>
Expand Down
9 changes: 1 addition & 8 deletions examples/getting_started/basic_usage.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import webbrowser

from maplibre import Layer, LayerType, Map, MapOptions
from maplibre.sources import GeoJSONSource

Expand All @@ -23,9 +21,4 @@
)
)

temp_file = "/tmp/pymaplibregl.html"

with open(temp_file, "w") as f:
f.write(m.to_html(style="height: 800px;"))

webbrowser.open(temp_file)
m.save(preview=True)
55 changes: 24 additions & 31 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1238,37 +1238,30 @@ <h2 id="installation">Installation</h2>
</span></code></pre></div>
<h2 id="basic-usage">Basic usage</h2>
<h3 id="standalone">Standalone</h3>
<div class="language-python highlight"><pre><span></span><code><span id="__span-1-1"><a id="__codelineno-1-1" name="__codelineno-1-1" href="#__codelineno-1-1"></a><span class="kn">import</span> <span class="nn">webbrowser</span>
</span><span id="__span-1-2"><a id="__codelineno-1-2" name="__codelineno-1-2" href="#__codelineno-1-2"></a>
</span><span id="__span-1-3"><a id="__codelineno-1-3" name="__codelineno-1-3" href="#__codelineno-1-3"></a><span class="kn">from</span> <span class="nn">maplibre</span> <span class="kn">import</span> <span class="n">Layer</span><span class="p">,</span> <span class="n">LayerType</span><span class="p">,</span> <span class="n">Map</span><span class="p">,</span> <span class="n">MapOptions</span>
</span><span id="__span-1-4"><a id="__codelineno-1-4" name="__codelineno-1-4" href="#__codelineno-1-4"></a><span class="kn">from</span> <span class="nn">maplibre.sources</span> <span class="kn">import</span> <span class="n">GeoJSONSource</span>
</span><span id="__span-1-5"><a id="__codelineno-1-5" name="__codelineno-1-5" href="#__codelineno-1-5"></a>
</span><span id="__span-1-6"><a id="__codelineno-1-6" name="__codelineno-1-6" href="#__codelineno-1-6"></a><span class="n">vancouver_blocks</span> <span class="o">=</span> <span class="n">GeoJSONSource</span><span class="p">(</span>
</span><span id="__span-1-7"><a id="__codelineno-1-7" name="__codelineno-1-7" href="#__codelineno-1-7"></a> <span class="n">data</span><span class="o">=</span><span class="s2">&quot;https://raw.githubusercontent.com/visgl/deck.gl-data/master/examples/geojson/vancouver-blocks.json&quot;</span><span class="p">,</span>
</span><span id="__span-1-8"><a id="__codelineno-1-8" name="__codelineno-1-8" href="#__codelineno-1-8"></a><span class="p">)</span>
</span><span id="__span-1-9"><a id="__codelineno-1-9" name="__codelineno-1-9" href="#__codelineno-1-9"></a>
</span><span id="__span-1-10"><a id="__codelineno-1-10" name="__codelineno-1-10" href="#__codelineno-1-10"></a><span class="n">map_options</span> <span class="o">=</span> <span class="n">MapOptions</span><span class="p">(</span>
</span><span id="__span-1-11"><a id="__codelineno-1-11" name="__codelineno-1-11" href="#__codelineno-1-11"></a> <span class="n">center</span><span class="o">=</span><span class="p">(</span><span class="o">-</span><span class="mf">123.1256</span><span class="p">,</span> <span class="mf">49.24658</span><span class="p">),</span>
</span><span id="__span-1-12"><a id="__codelineno-1-12" name="__codelineno-1-12" href="#__codelineno-1-12"></a> <span class="n">zoom</span><span class="o">=</span><span class="mi">12</span><span class="p">,</span>
</span><span id="__span-1-13"><a id="__codelineno-1-13" name="__codelineno-1-13" href="#__codelineno-1-13"></a> <span class="nb">hash</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span>
</span><span id="__span-1-14"><a id="__codelineno-1-14" name="__codelineno-1-14" href="#__codelineno-1-14"></a> <span class="n">pitch</span><span class="o">=</span><span class="mi">35</span><span class="p">,</span>
</span><span id="__span-1-15"><a id="__codelineno-1-15" name="__codelineno-1-15" href="#__codelineno-1-15"></a><span class="p">)</span>
</span><span id="__span-1-16"><a id="__codelineno-1-16" name="__codelineno-1-16" href="#__codelineno-1-16"></a>
</span><span id="__span-1-17"><a id="__codelineno-1-17" name="__codelineno-1-17" href="#__codelineno-1-17"></a><span class="n">m</span> <span class="o">=</span> <span class="n">Map</span><span class="p">(</span><span class="n">map_options</span><span class="p">)</span>
</span><span id="__span-1-18"><a id="__codelineno-1-18" name="__codelineno-1-18" href="#__codelineno-1-18"></a><span class="n">m</span><span class="o">.</span><span class="n">add_layer</span><span class="p">(</span>
</span><span id="__span-1-19"><a id="__codelineno-1-19" name="__codelineno-1-19" href="#__codelineno-1-19"></a> <span class="n">Layer</span><span class="p">(</span>
</span><span id="__span-1-20"><a id="__codelineno-1-20" name="__codelineno-1-20" href="#__codelineno-1-20"></a> <span class="nb">type</span><span class="o">=</span><span class="n">LayerType</span><span class="o">.</span><span class="n">LINE</span><span class="p">,</span>
</span><span id="__span-1-21"><a id="__codelineno-1-21" name="__codelineno-1-21" href="#__codelineno-1-21"></a> <span class="n">source</span><span class="o">=</span><span class="n">vancouver_blocks</span><span class="p">,</span>
</span><span id="__span-1-22"><a id="__codelineno-1-22" name="__codelineno-1-22" href="#__codelineno-1-22"></a> <span class="n">paint</span><span class="o">=</span><span class="p">{</span><span class="s2">&quot;line-color&quot;</span><span class="p">:</span> <span class="s2">&quot;white&quot;</span><span class="p">},</span>
</span><span id="__span-1-23"><a id="__codelineno-1-23" name="__codelineno-1-23" href="#__codelineno-1-23"></a> <span class="p">)</span>
</span><span id="__span-1-24"><a id="__codelineno-1-24" name="__codelineno-1-24" href="#__codelineno-1-24"></a><span class="p">)</span>
</span><span id="__span-1-25"><a id="__codelineno-1-25" name="__codelineno-1-25" href="#__codelineno-1-25"></a>
</span><span id="__span-1-26"><a id="__codelineno-1-26" name="__codelineno-1-26" href="#__codelineno-1-26"></a><span class="n">temp_file</span> <span class="o">=</span> <span class="s2">&quot;/tmp/pymaplibregl.html&quot;</span>
</span><span id="__span-1-27"><a id="__codelineno-1-27" name="__codelineno-1-27" href="#__codelineno-1-27"></a>
</span><span id="__span-1-28"><a id="__codelineno-1-28" name="__codelineno-1-28" href="#__codelineno-1-28"></a><span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="n">temp_file</span><span class="p">,</span> <span class="s2">&quot;w&quot;</span><span class="p">)</span> <span class="k">as</span> <span class="n">f</span><span class="p">:</span>
</span><span id="__span-1-29"><a id="__codelineno-1-29" name="__codelineno-1-29" href="#__codelineno-1-29"></a> <span class="n">f</span><span class="o">.</span><span class="n">write</span><span class="p">(</span><span class="n">m</span><span class="o">.</span><span class="n">to_html</span><span class="p">(</span><span class="n">style</span><span class="o">=</span><span class="s2">&quot;height: 800px;&quot;</span><span class="p">))</span>
</span><span id="__span-1-30"><a id="__codelineno-1-30" name="__codelineno-1-30" href="#__codelineno-1-30"></a>
</span><span id="__span-1-31"><a id="__codelineno-1-31" name="__codelineno-1-31" href="#__codelineno-1-31"></a><span class="n">webbrowser</span><span class="o">.</span><span class="n">open</span><span class="p">(</span><span class="n">temp_file</span><span class="p">)</span>
<div class="language-python highlight"><pre><span></span><code><span id="__span-1-1"><a id="__codelineno-1-1" name="__codelineno-1-1" href="#__codelineno-1-1"></a><span class="kn">from</span> <span class="nn">maplibre</span> <span class="kn">import</span> <span class="n">Layer</span><span class="p">,</span> <span class="n">LayerType</span><span class="p">,</span> <span class="n">Map</span><span class="p">,</span> <span class="n">MapOptions</span>
</span><span id="__span-1-2"><a id="__codelineno-1-2" name="__codelineno-1-2" href="#__codelineno-1-2"></a><span class="kn">from</span> <span class="nn">maplibre.sources</span> <span class="kn">import</span> <span class="n">GeoJSONSource</span>
</span><span id="__span-1-3"><a id="__codelineno-1-3" name="__codelineno-1-3" href="#__codelineno-1-3"></a>
</span><span id="__span-1-4"><a id="__codelineno-1-4" name="__codelineno-1-4" href="#__codelineno-1-4"></a><span class="n">vancouver_blocks</span> <span class="o">=</span> <span class="n">GeoJSONSource</span><span class="p">(</span>
</span><span id="__span-1-5"><a id="__codelineno-1-5" name="__codelineno-1-5" href="#__codelineno-1-5"></a> <span class="n">data</span><span class="o">=</span><span class="s2">&quot;https://raw.githubusercontent.com/visgl/deck.gl-data/master/examples/geojson/vancouver-blocks.json&quot;</span><span class="p">,</span>
</span><span id="__span-1-6"><a id="__codelineno-1-6" name="__codelineno-1-6" href="#__codelineno-1-6"></a><span class="p">)</span>
</span><span id="__span-1-7"><a id="__codelineno-1-7" name="__codelineno-1-7" href="#__codelineno-1-7"></a>
</span><span id="__span-1-8"><a id="__codelineno-1-8" name="__codelineno-1-8" href="#__codelineno-1-8"></a><span class="n">map_options</span> <span class="o">=</span> <span class="n">MapOptions</span><span class="p">(</span>
</span><span id="__span-1-9"><a id="__codelineno-1-9" name="__codelineno-1-9" href="#__codelineno-1-9"></a> <span class="n">center</span><span class="o">=</span><span class="p">(</span><span class="o">-</span><span class="mf">123.1256</span><span class="p">,</span> <span class="mf">49.24658</span><span class="p">),</span>
</span><span id="__span-1-10"><a id="__codelineno-1-10" name="__codelineno-1-10" href="#__codelineno-1-10"></a> <span class="n">zoom</span><span class="o">=</span><span class="mi">12</span><span class="p">,</span>
</span><span id="__span-1-11"><a id="__codelineno-1-11" name="__codelineno-1-11" href="#__codelineno-1-11"></a> <span class="nb">hash</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span>
</span><span id="__span-1-12"><a id="__codelineno-1-12" name="__codelineno-1-12" href="#__codelineno-1-12"></a> <span class="n">pitch</span><span class="o">=</span><span class="mi">35</span><span class="p">,</span>
</span><span id="__span-1-13"><a id="__codelineno-1-13" name="__codelineno-1-13" href="#__codelineno-1-13"></a><span class="p">)</span>
</span><span id="__span-1-14"><a id="__codelineno-1-14" name="__codelineno-1-14" href="#__codelineno-1-14"></a>
</span><span id="__span-1-15"><a id="__codelineno-1-15" name="__codelineno-1-15" href="#__codelineno-1-15"></a><span class="n">m</span> <span class="o">=</span> <span class="n">Map</span><span class="p">(</span><span class="n">map_options</span><span class="p">)</span>
</span><span id="__span-1-16"><a id="__codelineno-1-16" name="__codelineno-1-16" href="#__codelineno-1-16"></a><span class="n">m</span><span class="o">.</span><span class="n">add_layer</span><span class="p">(</span>
</span><span id="__span-1-17"><a id="__codelineno-1-17" name="__codelineno-1-17" href="#__codelineno-1-17"></a> <span class="n">Layer</span><span class="p">(</span>
</span><span id="__span-1-18"><a id="__codelineno-1-18" name="__codelineno-1-18" href="#__codelineno-1-18"></a> <span class="nb">type</span><span class="o">=</span><span class="n">LayerType</span><span class="o">.</span><span class="n">LINE</span><span class="p">,</span>
</span><span id="__span-1-19"><a id="__codelineno-1-19" name="__codelineno-1-19" href="#__codelineno-1-19"></a> <span class="n">source</span><span class="o">=</span><span class="n">vancouver_blocks</span><span class="p">,</span>
</span><span id="__span-1-20"><a id="__codelineno-1-20" name="__codelineno-1-20" href="#__codelineno-1-20"></a> <span class="n">paint</span><span class="o">=</span><span class="p">{</span><span class="s2">&quot;line-color&quot;</span><span class="p">:</span> <span class="s2">&quot;white&quot;</span><span class="p">},</span>
</span><span id="__span-1-21"><a id="__codelineno-1-21" name="__codelineno-1-21" href="#__codelineno-1-21"></a> <span class="p">)</span>
</span><span id="__span-1-22"><a id="__codelineno-1-22" name="__codelineno-1-22" href="#__codelineno-1-22"></a><span class="p">)</span>
</span><span id="__span-1-23"><a id="__codelineno-1-23" name="__codelineno-1-23" href="#__codelineno-1-23"></a>
</span><span id="__span-1-24"><a id="__codelineno-1-24" name="__codelineno-1-24" href="#__codelineno-1-24"></a><span class="n">m</span><span class="o">.</span><span class="n">save</span><span class="p">(</span><span class="n">preview</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
</span></code></pre></div>
<h3 id="shiny-integration">Shiny integration</h3>
<div class="language-python highlight"><pre><span></span><code><span id="__span-2-1"><a id="__codelineno-2-1" name="__codelineno-2-1" href="#__codelineno-2-1"></a><span class="kn">from</span> <span class="nn">maplibre</span> <span class="kn">import</span> <span class="n">Map</span><span class="p">,</span> <span class="n">MapContext</span><span class="p">,</span> <span class="n">output_maplibregl</span><span class="p">,</span> <span class="n">render_maplibregl</span>
Expand Down
2 changes: 1 addition & 1 deletion jupyter/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,7 @@

<h1>Jupyter</h1>

<p>Use <code>MapWidget</code> in your <a href="https://jupyter.org/">Juyper</a> Notebook:</p>
<p>Use <code>MapWidget</code> in your <a href="https://jupyter.org/">Jupyter</a> Notebook:</p>
<div class="language-python highlight"><pre><span></span><code><span id="__span-0-1"><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a><span class="kn">import</span> <span class="nn">ipywidgets</span> <span class="k">as</span> <span class="nn">widgets</span>
</span><span id="__span-0-2"><a id="__codelineno-0-2" name="__codelineno-0-2" href="#__codelineno-0-2"></a>
</span><span id="__span-0-3"><a id="__codelineno-0-3" name="__codelineno-0-3" href="#__codelineno-0-3"></a><span class="kn">from</span> <span class="nn">maplibre</span> <span class="kn">import</span> <span class="n">Layer</span><span class="p">,</span> <span class="n">LayerType</span>
Expand Down
Binary file modified objects.inv
Binary file not shown.
2 changes: 1 addition & 1 deletion search/search_index.json

Large diffs are not rendered by default.

Binary file modified sitemap.xml.gz
Binary file not shown.

0 comments on commit a685abd

Please sign in to comment.