From 0d61d9e9baf56481e270baf2d3e0d6ecaf2eec1a Mon Sep 17 00:00:00 2001 From: gadenbuie Date: Wed, 10 Apr 2024 21:45:21 +0000 Subject: [PATCH] Built site for leaflet: 2.2.2.9000@92bc272 --- dev/articles/basemaps.html | 55 +++++++++++------- .../fill.css | 0 dev/articles/choropleths.html | 26 ++++----- .../fill.css | 0 dev/articles/colors.html | 18 +++--- .../fill.css | 0 dev/articles/extending.html | 6 +- .../fill.css | 0 dev/articles/images/shiny1.png | Bin 595679 -> 238703 bytes dev/articles/json.html | 14 ++--- .../fill.css | 0 dev/articles/leaflet.html | 6 +- .../fill.css | 0 dev/articles/legends.html | 10 ++-- .../fill.css | 0 dev/articles/markers.html | 34 +++++------ .../fill.css | 0 dev/articles/morefeatures.html | 50 ++++++++-------- .../fill.css | 0 dev/articles/popups.html | 18 +++--- .../fill.css | 0 dev/articles/projections.html | 10 ++-- .../fill.css | 0 dev/articles/raster.html | 6 +- .../fill.css | 0 dev/articles/shapes.html | 14 ++--- .../fill.css | 0 dev/articles/shiny.html | 2 +- dev/articles/showhide.html | 44 +++++++++----- .../fill.css | 0 dev/articles/widget.html | 10 ++-- .../fill.css | 0 dev/pkgdown.yml | 2 +- dev/reference/addLayersControl.html | 6 +- dev/reference/addProviderTiles.html | 6 +- dev/reference/groupOptions.html | 4 +- dev/search.json | 2 +- 37 files changed, 187 insertions(+), 156 deletions(-) rename dev/articles/basemaps_files/{htmltools-fill-0.5.8 => htmltools-fill-0.5.8.1}/fill.css (100%) rename dev/articles/choropleths_files/{htmltools-fill-0.5.8 => htmltools-fill-0.5.8.1}/fill.css (100%) rename dev/articles/colors_files/{htmltools-fill-0.5.8 => htmltools-fill-0.5.8.1}/fill.css (100%) rename dev/articles/extending_files/{htmltools-fill-0.5.8 => htmltools-fill-0.5.8.1}/fill.css (100%) rename dev/articles/json_files/{htmltools-fill-0.5.8 => htmltools-fill-0.5.8.1}/fill.css (100%) rename dev/articles/leaflet_files/{htmltools-fill-0.5.8 => htmltools-fill-0.5.8.1}/fill.css (100%) rename dev/articles/legends_files/{htmltools-fill-0.5.8 => htmltools-fill-0.5.8.1}/fill.css (100%) rename dev/articles/markers_files/{htmltools-fill-0.5.8 => htmltools-fill-0.5.8.1}/fill.css (100%) rename dev/articles/morefeatures_files/{htmltools-fill-0.5.8 => htmltools-fill-0.5.8.1}/fill.css (100%) rename dev/articles/popups_files/{htmltools-fill-0.5.8 => htmltools-fill-0.5.8.1}/fill.css (100%) rename dev/articles/projections_files/{htmltools-fill-0.5.8 => htmltools-fill-0.5.8.1}/fill.css (100%) rename dev/articles/raster_files/{htmltools-fill-0.5.8 => htmltools-fill-0.5.8.1}/fill.css (100%) rename dev/articles/shapes_files/{htmltools-fill-0.5.8 => htmltools-fill-0.5.8.1}/fill.css (100%) rename dev/articles/showhide_files/{htmltools-fill-0.5.8 => htmltools-fill-0.5.8.1}/fill.css (100%) rename dev/articles/widget_files/{htmltools-fill-0.5.8 => htmltools-fill-0.5.8.1}/fill.css (100%) diff --git a/dev/articles/basemaps.html b/dev/articles/basemaps.html index 5ff752c81..2abc78c60 100644 --- a/dev/articles/basemaps.html +++ b/dev/articles/basemaps.html @@ -91,7 +91,7 @@ - + @@ -119,8 +119,8 @@

Default (OpenStreetMap) Tileslibrary(leaflet) m <- leaflet() %>% setView(lng = -71.0589, lat = 42.3601, zoom = 12) m %>% addTiles() -
- +
+

Third-Party Tiles @@ -138,19 +138,28 @@

Third-Party Tiles
-m %>% addProviderTiles(providers$Stadia.StamenToner)

-
-
 m %>% addProviderTiles(providers$CartoDB.Positron)
-
-
+
+
 m %>% addProviderTiles(providers$Esri.NatGeoWorldMap)
-
-

Note that some tile set providers require you to register; see the project +

+
+m %>% addProviderTiles(providers$OpenTopoMap)
+
+
+m %>% addProviderTiles(providers$Stadia.StamenToner)
+
+

Note that some tile set providers require you to register; see the project page for more information. You can pass access tokens/keys, and other options, to the tile provider by populating the options argument with the providerTileOptions() function.

+

As of October 2023, Stamen map tiles are now hosted by Stadia Maps. Replace all references +to providers$Stamen.____ with +providers$Stadia.Stamen____ to use the new tiles. Published +maps now require an +account; once created, login and register your domain(s) where the +maps will be published.

Custom Tile URL Template @@ -165,16 +174,18 @@

WMS TilesIowa Environmental Mesonet:

-
-leaflet() %>% addTiles() %>% setView(-93.65, 42.0285, zoom = 4) %>%
+
+leaflet() %>%
+  addTiles() %>%
+  setView(-93.65, 42.0285, zoom = 4) %>%
   addWMSTiles(
     "http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi",
     layers = "nexrad-n0r-900913",
     options = WMSTileOptions(format = "image/png", transparent = TRUE),
     attribution = "Weather data © 2012 IEM Nexrad"
   )
-
- +
+

Combining Tile Layers @@ -183,13 +194,15 @@

Combining Tile Layersoptions argument.

-
-m %>% addProviderTiles(providers$MtbMap) %>%
-  addProviderTiles(providers$Stadia.StamenTonerLines,
-    options = providerTileOptions(opacity = 0.35)) %>%
-  addProviderTiles(providers$Stadia.StamenTonerLabels)
-
- +
+m %>%
+  addProviderTiles(
+    providers$Esri.WorldImagery,
+    options = providerTileOptions(opacity = 0.5)
+  ) %>%
+  addProviderTiles(providers$CartoDB.VoyagerOnlyLabels)
+
+

diff --git a/dev/articles/basemaps_files/htmltools-fill-0.5.8/fill.css b/dev/articles/basemaps_files/htmltools-fill-0.5.8.1/fill.css similarity index 100% rename from dev/articles/basemaps_files/htmltools-fill-0.5.8/fill.css rename to dev/articles/basemaps_files/htmltools-fill-0.5.8.1/fill.css diff --git a/dev/articles/choropleths.html b/dev/articles/choropleths.html index 98dfd36bb..a6de01730 100644 --- a/dev/articles/choropleths.html +++ b/dev/articles/choropleths.html @@ -91,7 +91,7 @@

- + @@ -111,8 +111,8 @@ choropleth tutorial from the Leaflet.js website.

The final result will look like this (scroll to the end to see the completed code):

-
-
+
+

Data source

We’ll start by loading the data from JSON. While the Leaflet.js @@ -155,8 +155,8 @@

Basic states mapaddPolygons() with no additional arguments.

-
- +
+

Adding some color @@ -187,8 +187,8 @@

Adding some color= "white", dashArray = "3", fillOpacity = 0.7)

-
- +
+
-
-

(The Leaflet.js tutorial also adds an event handler that zooms into a +

+

(The Leaflet.js tutorial also adds an event handler that zooms into a state when it’s clicked. This isn’t currently possible with the Leaflet R package, except with either custom JavaScript or using Shiny, both of which are outside the scope of this example.)

@@ -253,8 +253,8 @@

Custom info= "15px", direction = "auto")) m

-
-

This is the final version of our polygon layer, so let’s save the +

+

This is the final version of our polygon layer, so let’s save the result back to the m variable.

@@ -267,8 +267,8 @@

Legend
 m %>% addLegend(pal = pal, values = ~density, opacity = 0.7, title = NULL,
   position = "bottomright")
-
- +
+

Complete code diff --git a/dev/articles/choropleths_files/htmltools-fill-0.5.8/fill.css b/dev/articles/choropleths_files/htmltools-fill-0.5.8.1/fill.css similarity index 100% rename from dev/articles/choropleths_files/htmltools-fill-0.5.8/fill.css rename to dev/articles/choropleths_files/htmltools-fill-0.5.8.1/fill.css diff --git a/dev/articles/colors.html b/dev/articles/colors.html index ac37177db..07cbb2748 100644 --- a/dev/articles/colors.html +++ b/dev/articles/colors.html @@ -91,7 +91,7 @@

- + @@ -207,8 +207,8 @@

Continuous input, conti map %>% addPolygons(stroke = FALSE, smoothFactor = 0.2, fillOpacity = 1, color = ~pal(gdp_md_est))

-
- +
+

Continuous input, discrete colors (colorBin and @@ -226,8 +226,8 @@

Continuous map %>% addPolygons(stroke = FALSE, smoothFactor = 0.2, fillOpacity = 1, color = ~binpal(gdp_md_est))

-
-

colorQuantile() maps numeric input data to a fixed +

+

colorQuantile() maps numeric input data to a fixed number of output colors using quantiles (slicing the input domain into subsets with equal numbers of observations).

@@ -235,8 +235,8 @@ 

Continuous map %>% addPolygons(stroke = FALSE, smoothFactor = 0.2, fillOpacity = 1, color = ~qpal(gdp_md_est))

-
- +
+
@@ -259,8 +259,8 @@

Coloring categorical dataleaflet(countries) %>% addPolygons(stroke = FALSE, smoothFactor = 0.2, fillOpacity = 1, color = ~factpal(category))

-
- +
+