Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Switch to Stadia.Stamen____ #886

Merged
merged 1 commit into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/basemaps.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Alternatively, many popular free third-party basemaps can be added using the `ad
As a convenience, leaflet also provides a named list of all the third-party tile providers that are supported by the plugin. This enables you to use auto-completion feature of your favorite R IDE (like RStudio) and not have to remember or look up supported tile providers; just type `providers$` and choose from one of the options. You can also use `names(providers)` to view all of the options.

```{r fig.height=1.25}
m %>% addProviderTiles(providers$Stamen.Toner)
m %>% addProviderTiles(providers$Stadia.StamenToner)
m %>% addProviderTiles(providers$CartoDB.Positron)
m %>% addProviderTiles(providers$Esri.NatGeoWorldMap)
```
Expand Down Expand Up @@ -53,7 +53,7 @@ You aren't restricted to using a single basemap on a map; you can stack them by

```{r fig.height=1.75}
m %>% addProviderTiles(providers$MtbMap) %>%
addProviderTiles(providers$Stamen.TonerLines,
addProviderTiles(providers$Stadia.StamenTonerLines,
options = providerTileOptions(opacity = 0.35)) %>%
addProviderTiles(providers$Stamen.TonerLabels)
addProviderTiles(providers$Stadia.StamenTonerLabels)
```
12 changes: 6 additions & 6 deletions docs/basemaps.html
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ <h3>Third-Party Tiles</h3>
just type <code>providers$</code> and choose from one of the options.
You can also use <code>names(providers)</code> to view all of the
options.</p>
<pre class="r"><code>m %&gt;% addProviderTiles(providers$Stamen.Toner)</code></pre>
<pre class="r"><code>m %&gt;% addProviderTiles(providers$Stadia.StamenToner)</code></pre>
<div class="leaflet html-widget html-fill-item-overflow-hidden html-fill-item" id="htmlwidget-92aa9ec4a26e6d2eb4c3" style="width:100%;height:120px;"></div>
<script type="application/json" data-for="htmlwidget-92aa9ec4a26e6d2eb4c3">{
"x": {
Expand All @@ -339,7 +339,7 @@ <h3>Third-Party Tiles</h3>
{
"method": "addProviderTiles",
"args": [
null,
"Stadia.StamenToner",
null,
null,
{
Expand Down Expand Up @@ -524,9 +524,9 @@ <h3>Combining Tile Layers</h3>
sense if the front tiles consist of semi transparent tiles, or have an
adjusted opacity via the <code>options</code> argument.</p>
<pre class="r"><code>m %&gt;% addProviderTiles(providers$MtbMap) %&gt;%
addProviderTiles(providers$Stamen.TonerLines,
addProviderTiles(providers$Stadia.StamenTonerLines,
options = providerTileOptions(opacity = 0.35)) %&gt;%
addProviderTiles(providers$Stamen.TonerLabels)</code></pre>
addProviderTiles(providers$Stadia.StamenTonerLabels)</code></pre>
<div class="leaflet html-widget html-fill-item-overflow-hidden html-fill-item" id="htmlwidget-2f386608a10ed269577b" style="width:100%;height:168px;"></div>
<script type="application/json" data-for="htmlwidget-2f386608a10ed269577b">{
"x": {
Expand Down Expand Up @@ -561,7 +561,7 @@ <h3>Combining Tile Layers</h3>
{
"method": "addProviderTiles",
"args": [
null,
"Stadia.StamenTonerLines",
null,
null,
{
Expand All @@ -575,7 +575,7 @@ <h3>Combining Tile Layers</h3>
{
"method": "addProviderTiles",
"args": [
null,
"Stadia.StamenTonerLabels",
null,
null,
{
Expand Down
2 changes: 1 addition & 1 deletion docs/shiny.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ server <- function(input, output, session) {

output$mymap <- renderLeaflet({
leaflet() %>%
addProviderTiles(providers$Stamen.TonerLite,
addProviderTiles(providers$Stadia.StamenTonerLite,
options = providerTileOptions(noWrap = TRUE)
) %>%
addMarkers(data = points())
Expand Down
2 changes: 1 addition & 1 deletion docs/shiny.html
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ <h2>Using Leaflet with Shiny</h2>

output$mymap &lt;- renderLeaflet({
leaflet() %&gt;%
addProviderTiles(providers$Stamen.TonerLite,
addProviderTiles(providers$Stadia.StamenTonerLite,
options = providerTileOptions(noWrap = TRUE)
) %&gt;%
addMarkers(data = points())
Expand Down
4 changes: 2 additions & 2 deletions docs/showhide.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ outline <- quakes[chull(quakes$long, quakes$lat),]
map <- leaflet(quakes) %>%
# Base groups
addTiles(group = "OSM (default)") %>%
addProviderTiles(providers$Stamen.Toner, group = "Toner") %>%
addProviderTiles(providers$Stamen.TonerLite, group = "Toner Lite") %>%
addProviderTiles(providers$Stadia.StamenToner, group = "Toner") %>%
addProviderTiles(providers$Stadia.StamenTonerLite, group = "Toner Lite") %>%
# Overlay groups
addCircles(~long, ~lat, ~10^mag/5, stroke = F, group = "Quakes") %>%
addPolygons(data = outline, lng = ~long, lat = ~lat,
Expand Down
12 changes: 6 additions & 6 deletions docs/showhide.html
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,8 @@ <h3>Interactive Layer Display</h3>
map &lt;- leaflet(quakes) %&gt;%
# Base groups
addTiles(group = &quot;OSM (default)&quot;) %&gt;%
addProviderTiles(providers$Stamen.Toner, group = &quot;Toner&quot;) %&gt;%
addProviderTiles(providers$Stamen.TonerLite, group = &quot;Toner Lite&quot;) %&gt;%
addProviderTiles(providers$Stadia.StamenToner, group = &quot;Toner&quot;) %&gt;%
addProviderTiles(providers$Stadia.StamenTonerLite, group = &quot;Toner Lite&quot;) %&gt;%
# Overlay groups
addCircles(~long, ~lat, ~10^mag/5, stroke = F, group = &quot;Quakes&quot;) %&gt;%
addPolygons(data = outline, lng = ~long, lat = ~lat,
Expand Down Expand Up @@ -351,7 +351,7 @@ <h3>Interactive Layer Display</h3>
{
"method": "addProviderTiles",
"args": [
null,
"Stadia.StamenToner",
null,
"Toner",
{
Expand All @@ -364,7 +364,7 @@ <h3>Interactive Layer Display</h3>
{
"method": "addProviderTiles",
"args": [
null,
"Stadia.StamenTonerLite",
null,
"Toner Lite",
{
Expand Down Expand Up @@ -538,7 +538,7 @@ <h3>Programmatic Layer Display</h3>
{
"method": "addProviderTiles",
"args": [
null,
"Stadia.StamenToner",
null,
"Toner",
{
Expand All @@ -551,7 +551,7 @@ <h3>Programmatic Layer Display</h3>
{
"method": "addProviderTiles",
"args": [
null,
"Stadia.StamenTonerLite",
null,
"Toner Lite",
{
Expand Down