Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
Friessn committed Oct 16, 2024
1 parent fb9b2f6 commit 9191017
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
24 changes: 16 additions & 8 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -165,22 +165,30 @@
<p><a href="https://github.com/eodaGmbH/r-maplibregl">MapLibre for R</a> provides R bindings for <a href="https://github.com/maplibre/maplibre-gl-js">MapLibre GL JS</a>.</p>
<p>It integrates seamlessly into <a href="https://github.com/rstudio/shiny">Shiny</a>, <a href="https://quarto.org/">Quarto</a> and <a href="https://jupyter.org/">Jupyter</a>.</p>
<div class="cell">
<div class="sourceCode cell-code" id="cb1"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="fu">library</span>(maplibre)</span>
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a><span class="fu">maplibre</span>(<span class="at">map_options =</span> <span class="fu">mapOptions</span>(<span class="at">center=</span><span class="fu">c</span>(<span class="sc">-</span><span class="fl">123.1256</span>, <span class="fl">49.24658</span>), <span class="at">zoom =</span> <span class="dv">9</span>))</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="sourceCode cell-code" id="cb1"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a>remotes<span class="sc">::</span><span class="fu">install_github</span>(<span class="st">"eodaGmbH/r-maplibregl"</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stderr">
<pre><code>Using GitHub PAT from the git credential store.</code></pre>
</div>
<div class="cell-output cell-output-stderr">
<pre><code>Skipping install of 'maplibre' from a github remote, the SHA1 (7d9dd7d8) has not changed since last install.
Use `force = TRUE` to force installation</code></pre>
</div>
<div class="sourceCode cell-code" id="cb4"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a><span class="fu">library</span>(maplibre)</span>
<span id="cb4-2"><a href="#cb4-2" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb4-3"><a href="#cb4-3" aria-hidden="true" tabindex="-1"></a><span class="fu">maplibre</span>(<span class="at">map_options =</span> <span class="fu">mapOptions</span>(<span class="at">center=</span><span class="fu">c</span>(<span class="sc">-</span><span class="fl">123.1256</span>, <span class="fl">49.24658</span>), <span class="at">zoom =</span> <span class="dv">9</span>))</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<div id="htmlwidget-8810221772af6580ae79" style="width:100%;height:480px;" class="maplibre html-widget"></div>
<script type="application/json" data-for="htmlwidget-8810221772af6580ae79">{"x":{"mapOptions":{"center":[-123.1256,49.24658],"style":"https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json","zoom":9},"calls":[]},"evals":[],"jsHooks":[]}</script>
<div id="htmlwidget-53d7447e1d2bc9d50ecf" style="width:100%;height:480px;" class="maplibre html-widget"></div>
<script type="application/json" data-for="htmlwidget-53d7447e1d2bc9d50ecf">{"x":{"mapOptions":{"center":[-123.1256,49.24658],"style":"https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json","zoom":9},"calls":[]},"evals":[],"jsHooks":[]}</script>
</div>
</div>
</div>
<div id="tabset-1-2" class="tab-pane" role="tabpanel" aria-labelledby="tabset-1-2-tab">
<p><a href="https://github.com/eodaGmbH/py-maplibregl">MapLibre for Python</a> provides Python bindings for <a href="https://github.com/maplibre/maplibre-gl-js">MapLibre GL JS</a>.</p>
<p>It integrates seamlessly into <a href="https://github.com/posit-dev/py-shiny">Shiny for Python</a>, <a href="https://quarto.org/">Quarto</a> and <a href="https://jupyter.org/">Jupyter</a>.</p>
<div class="cell">
<div class="sourceCode cell-code" id="cb2"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="im">from</span> maplibre <span class="im">import</span> Map, MapOptions</span>
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb2-3"><a href="#cb2-3" aria-hidden="true" tabindex="-1"></a>Map(MapOptions(center<span class="op">=</span>(<span class="op">-</span><span class="fl">123.1256</span>, <span class="fl">49.24658</span>), zoom<span class="op">=</span><span class="dv">9</span>))</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="sourceCode cell-code" id="cb5"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a><span class="im">from</span> maplibre <span class="im">import</span> Map, MapOptions</span>
<span id="cb5-2"><a href="#cb5-2" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb5-3"><a href="#cb5-3" aria-hidden="true" tabindex="-1"></a>Map(MapOptions(center<span class="op">=</span>(<span class="op">-</span><span class="fl">123.1256</span>, <span class="fl">49.24658</span>), zoom<span class="op">=</span><span class="dv">9</span>))</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">


Expand Down
2 changes: 1 addition & 1 deletion docs/search.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"href": "index.html",
"title": "Maplibre GL JS Bindings for R and Python",
"section": "",
"text": "MapLibre GL JS bindings for R and Python\n\nRPython\n\n\nMapLibre for R provides R bindings for MapLibre GL JS.\nIt integrates seamlessly into Shiny, Quarto and Jupyter.\n\nlibrary(maplibre)\n\nmaplibre(map_options = mapOptions(center=c(-123.1256, 49.24658), zoom = 9))\n\n\n\n\n\n\n\nMapLibre for Python provides Python bindings for MapLibre GL JS.\nIt integrates seamlessly into Shiny for Python, Quarto and Jupyter.\n\nfrom maplibre import Map, MapOptions\n\nMap(MapOptions(center=(-123.1256, 49.24658), zoom=9))\n\n\n\n\nMy Awesome Map"
"text": "MapLibre GL JS bindings for R and Python\n\nRPython\n\n\nMapLibre for R provides R bindings for MapLibre GL JS.\nIt integrates seamlessly into Shiny, Quarto and Jupyter.\n\nremotes::install_github(\"eodaGmbH/r-maplibregl\")\n\nUsing GitHub PAT from the git credential store.\n\n\nSkipping install of 'maplibre' from a github remote, the SHA1 (7d9dd7d8) has not changed since last install.\n Use `force = TRUE` to force installation\n\nlibrary(maplibre)\n\nmaplibre(map_options = mapOptions(center=c(-123.1256, 49.24658), zoom = 9))\n\n\n\n\n\n\n\nMapLibre for Python provides Python bindings for MapLibre GL JS.\nIt integrates seamlessly into Shiny for Python, Quarto and Jupyter.\n\nfrom maplibre import Map, MapOptions\n\nMap(MapOptions(center=(-123.1256, 49.24658), zoom=9))\n\n\n\n\nMy Awesome Map"
}
]
1 change: 1 addition & 0 deletions index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ format:
It integrates seamlessly into [Shiny](https://github.com/rstudio/shiny), [Quarto](https://quarto.org/) and [Jupyter](https://jupyter.org/).

```{r}
remotes::install_github("eodaGmbH/r-maplibregl")
library(maplibre)
maplibre(map_options = mapOptions(center=c(-123.1256, 49.24658), zoom = 9))
Expand Down

0 comments on commit 9191017

Please sign in to comment.