From a743ed10946fbb82681cfbad1c298f133d21f482 Mon Sep 17 00:00:00 2001 From: Tim Appelhans Date: Mon, 25 Sep 2023 04:29:47 +0000 Subject: [PATCH] Deploy from Github Actions build 6294792897 [ci skip] Build URL: https://github.com/r-spatial/mapview/actions/runs/6294792897 Commit: 8a3fd980c9ca3630429728d251bc492569e1bad4 --- articles/mapview_01-basics.html | 34 +++--- .../data_stars_kiliNDVI_1df4563.txt} | 0 .../data_stars_kiliNDVI_2e3f8db.txt} | 0 .../data_stars_kiliNDVI_37ce6b0.txt} | 0 .../data_stars_poppendorf5981eac.txt} | 0 articles/mapview_02-advanced.html | 60 +++++----- .../data_stars_kiliNDVI1467b85.txt} | 0 .../data_stars_poppendorf549a0f5.txt} | 0 .../data_stars_poppendorf5386a74.txt} | 0 articles/mapview_03-options.html | 14 +-- .../data_stars_poppendorf53d0eb4.txt} | 0 articles/mapview_04-popups.html | 24 ++-- articles/mapview_05-extras.html | 108 +++++++++--------- articles/mapview_06-add.html | 24 ++-- articles/mapview_07-pipe.html | 30 ++--- pkgdown.yml | 2 +- reference/viewExtent.html | 12 +- 17 files changed, 154 insertions(+), 154 deletions(-) rename articles/mapview_01-basics_files/{kiliNDVI_1_2be0cd-1/data_stars_kiliNDVI_1eb9407.txt => kiliNDVI_1_b2d149-1/data_stars_kiliNDVI_1df4563.txt} (100%) rename articles/mapview_01-basics_files/{kiliNDVI_2_e6f8b0-1/data_stars_kiliNDVI_2d697f0.txt => kiliNDVI_2_27ea10-1/data_stars_kiliNDVI_2e3f8db.txt} (100%) rename articles/mapview_01-basics_files/{kiliNDVI_3_94cade-1/data_stars_kiliNDVI_3f042d8.txt => kiliNDVI_3_60493b-1/data_stars_kiliNDVI_37ce6b0.txt} (100%) rename articles/mapview_01-basics_files/{poppendorf[[5]]_89e5cb-1/data_stars_poppendorf53426cd.txt => poppendorf[[5]]_3c651b-1/data_stars_poppendorf5981eac.txt} (100%) rename articles/mapview_02-advanced_files/{kiliNDVI[[1]]_4a8c3e-1/data_stars_kiliNDVI1d94075.txt => kiliNDVI[[1]]_d309a1-1/data_stars_kiliNDVI1467b85.txt} (100%) rename articles/mapview_02-advanced_files/{poppendorf[[5]]_5c89b3-1/data_stars_poppendorf502ae13.txt => poppendorf[[5]]_b6927c-1/data_stars_poppendorf549a0f5.txt} (100%) rename articles/mapview_02-advanced_files/{poppendorf[[5]]_c46371-1/data_stars_poppendorf5fb4ae8.txt => poppendorf[[5]]_f42a9d-1/data_stars_poppendorf5386a74.txt} (100%) rename articles/mapview_03-options_files/{poppendorf[[5]]_13fc08-1/data_stars_poppendorf572b940.txt => poppendorf[[5]]_31b8f2-1/data_stars_poppendorf53d0eb4.txt} (100%) diff --git a/articles/mapview_01-basics.html b/articles/mapview_01-basics.html index b84684d55..be1e635c1 100644 --- a/articles/mapview_01-basics.html +++ b/articles/mapview_01-basics.html @@ -99,7 +99,7 @@ -
+
-
-
+
+
 mapview(franconia)
-
-
+
+

Controlling attribute columns

@@ -169,8 +169,8 @@

Controlling attribute columns
 mapview(breweries, zcol = c("brewery", "village", "founded"))

-
-
+
+

Including legends @@ -182,8 +182,8 @@

Including legends
 mapview(breweries, zcol = "founded", legend = TRUE)

-
-
+
+

Automatic background map detection @@ -194,13 +194,13 @@

Automatic background map detectionCartoDB.Darkmatter is used.

 mapview(breweries)
-
-


+
+


Here we also adjust line color and width (using lwd)

 mapview(franconia, color = "cyan", col.regions = "white", lwd = 3)
-
-
+
+

@@ -214,8 +214,8 @@

Raster Layerlibrary(plainview) mapview(poppendorf[[5]], legend = TRUE)

-
-
+
+

RasterStack/Brick @@ -231,8 +231,8 @@

RasterStack/Brick ## view the first 3 layers mapview(kiliNDVI[[1:3]])

-
- +
+ diff --git a/articles/mapview_01-basics_files/kiliNDVI_1_2be0cd-1/data_stars_kiliNDVI_1eb9407.txt b/articles/mapview_01-basics_files/kiliNDVI_1_b2d149-1/data_stars_kiliNDVI_1df4563.txt similarity index 100% rename from articles/mapview_01-basics_files/kiliNDVI_1_2be0cd-1/data_stars_kiliNDVI_1eb9407.txt rename to articles/mapview_01-basics_files/kiliNDVI_1_b2d149-1/data_stars_kiliNDVI_1df4563.txt diff --git a/articles/mapview_01-basics_files/kiliNDVI_2_e6f8b0-1/data_stars_kiliNDVI_2d697f0.txt b/articles/mapview_01-basics_files/kiliNDVI_2_27ea10-1/data_stars_kiliNDVI_2e3f8db.txt similarity index 100% rename from articles/mapview_01-basics_files/kiliNDVI_2_e6f8b0-1/data_stars_kiliNDVI_2d697f0.txt rename to articles/mapview_01-basics_files/kiliNDVI_2_27ea10-1/data_stars_kiliNDVI_2e3f8db.txt diff --git a/articles/mapview_01-basics_files/kiliNDVI_3_94cade-1/data_stars_kiliNDVI_3f042d8.txt b/articles/mapview_01-basics_files/kiliNDVI_3_60493b-1/data_stars_kiliNDVI_37ce6b0.txt similarity index 100% rename from articles/mapview_01-basics_files/kiliNDVI_3_94cade-1/data_stars_kiliNDVI_3f042d8.txt rename to articles/mapview_01-basics_files/kiliNDVI_3_60493b-1/data_stars_kiliNDVI_37ce6b0.txt diff --git a/articles/mapview_01-basics_files/poppendorf[[5]]_89e5cb-1/data_stars_poppendorf53426cd.txt b/articles/mapview_01-basics_files/poppendorf[[5]]_3c651b-1/data_stars_poppendorf5981eac.txt similarity index 100% rename from articles/mapview_01-basics_files/poppendorf[[5]]_89e5cb-1/data_stars_poppendorf53426cd.txt rename to articles/mapview_01-basics_files/poppendorf[[5]]_3c651b-1/data_stars_poppendorf5981eac.txt diff --git a/articles/mapview_02-advanced.html b/articles/mapview_02-advanced.html index ffc56d25e..dda9599b1 100644 --- a/articles/mapview_02-advanced.html +++ b/articles/mapview_02-advanced.html @@ -96,10 +96,10 @@ - + -
+
-
-


+
+


 mapview(breweries, zcol = "founded", at = seq(1400, 2200, 200), legend = TRUE)
-
-
+
+

Changing map.types @@ -250,8 +250,8 @@

Changing map.types
 mapview(breweries, map.types = c("Esri.WorldShadedRelief", "OpenStreetMap.DE"), color = "grey40")

-
-
+
+

Individual layer.name(s) @@ -261,8 +261,8 @@

Individual layer.name(s)
 mapview(list(franconia, breweries),
         layer.name = c("Franconian districts", "Franconian breweries"))

-
-
+
+

Using burst @@ -270,15 +270,15 @@

Using burst
 mapview(breweries, burst = TRUE)

-
-


+
+


Note how all layers are shown by default. There is a hidden argument hide which can be used to hide all layers but the first.

 mapview(breweries, burst = TRUE, hide = TRUE)
-
-


+
+


When burst used together with zcol, it will produce one layer for all unique values of zcol.

@@ -290,8 +290,8 @@ 

Using burstmapview(zcol = "district", burst = TRUE)

## Warning: attribute variables are assumed to be spatially constant throughout
 ## all geometries
-
-


+
+


Note that for a column with many values there will likely not be enough space for the layers control - we are working on a solution for this issue.

@@ -304,8 +304,8 @@

Setting point size cex
 mapview(breweries, cex = "number.of.types")
-
-
+
+

Adjusting opacity @@ -314,12 +314,12 @@

Adjusting opacity
 mapview(breweries, alpha = 0)

-
-


+
+


 mapview(franconia, alpha.regions = 0.2, aplha = 1)
-
-
+
+

Multiple layers @@ -333,13 +333,13 @@

Multiple layers # mapview + object mapview(list(franconia, breweries)) + poppendorf[[5]]

-
-


+
+


 # mapview + mapview
 mapview(franconia, zcol = "district") + mapview(breweries, zcol = "founded")
-
-


+
+


 library(plainview)
 
@@ -348,13 +348,13 @@ 

Multiple layers zcol = list(NULL, "district"), legend = list(TRUE, FALSE), homebutton = list(FALSE, TRUE)) + poppendorf[[5]]

-
-


+
+


 m1 = mapview(franconia, zcol = "district", col.regions = c("snow", "grey", "red"))
 m1 + breweries
-
-
+
+

See chapter 3. mapview options for instructions on how to set some of these styling parameters permanently.

diff --git a/articles/mapview_02-advanced_files/kiliNDVI[[1]]_4a8c3e-1/data_stars_kiliNDVI1d94075.txt b/articles/mapview_02-advanced_files/kiliNDVI[[1]]_d309a1-1/data_stars_kiliNDVI1467b85.txt similarity index 100% rename from articles/mapview_02-advanced_files/kiliNDVI[[1]]_4a8c3e-1/data_stars_kiliNDVI1d94075.txt rename to articles/mapview_02-advanced_files/kiliNDVI[[1]]_d309a1-1/data_stars_kiliNDVI1467b85.txt diff --git a/articles/mapview_02-advanced_files/poppendorf[[5]]_5c89b3-1/data_stars_poppendorf502ae13.txt b/articles/mapview_02-advanced_files/poppendorf[[5]]_b6927c-1/data_stars_poppendorf549a0f5.txt similarity index 100% rename from articles/mapview_02-advanced_files/poppendorf[[5]]_5c89b3-1/data_stars_poppendorf502ae13.txt rename to articles/mapview_02-advanced_files/poppendorf[[5]]_b6927c-1/data_stars_poppendorf549a0f5.txt diff --git a/articles/mapview_02-advanced_files/poppendorf[[5]]_c46371-1/data_stars_poppendorf5fb4ae8.txt b/articles/mapview_02-advanced_files/poppendorf[[5]]_f42a9d-1/data_stars_poppendorf5386a74.txt similarity index 100% rename from articles/mapview_02-advanced_files/poppendorf[[5]]_c46371-1/data_stars_poppendorf5fb4ae8.txt rename to articles/mapview_02-advanced_files/poppendorf[[5]]_f42a9d-1/data_stars_poppendorf5386a74.txt diff --git a/articles/mapview_03-options.html b/articles/mapview_03-options.html index b20f38f94..0424089ca 100644 --- a/articles/mapview_03-options.html +++ b/articles/mapview_03-options.html @@ -99,7 +99,7 @@ -
+
-
-


+
+


This can also be used with leaflet maps

 leaflet() %>%
   addTiles() %>%
   addCircleMarkers(data = breweries,
                    popup = popupTable(breweries))
-
-
+
+

Graph popups @@ -189,8 +189,8 @@

Graph popupsmapview(meuse, zcol = "cadmium", popup = popupGraph(p))

-
-
+
+

Interactive popups @@ -208,8 +208,8 @@

Interactive popups= popupGraph(mapview(brew1, map.types = "Esri.WorldImagery")@map, type = "html"))

-
-
+
+

Image popups @@ -227,8 +227,8 @@

Image popupsmapview(pnt, map.types = "Esri.WorldImagery", popup = popupImage(img, src = "remote"))

-
-


+
+


IMPORTANT NOTICE for those who want to save maps locally (see chapter mapview save maps for details): With the current implementation of popupImage (local only) and @@ -248,8 +248,8 @@

Image popups
 mapview(pnt, popup = leafpop:::popupIframe("https://www.youtube.com/embed/iApz08Bh53w?autoplay=1", width = 300, height = 225))
-
-

As with htmlwidgets in popups, this may quickly +

+

As with htmlwidgets in popups, this may quickly produce html files and hence become rather unresponsive.

diff --git a/articles/mapview_05-extras.html b/articles/mapview_05-extras.html index 47d28817e..6ad759401 100644 --- a/articles/mapview_05-extras.html +++ b/articles/mapview_05-extras.html @@ -154,8 +154,8 @@

viewExtentlibrary(leafsync) viewExtent(poppendorf, color = "red") + viewExtent(breweries) -
-
+
+

sync & latticeView @@ -175,20 +175,20 @@

sync & latticeViewsync(m1, m2, m3, m4)

-
- +
+
-
- +
+
-
- +
+
-
- +
+


@@ -226,20 +226,20 @@

sync & latticeView= list(c(1, 4), c(2, 3)))
-
- +
+
-
- +
+
-
- +
+
-
- +
+


@@ -268,16 +268,16 @@

sync & latticeView
 sync(list(m1, m2, m3), ncol = 1)
-
- +
+
-
- +
+
-
- +
+


@@ -307,12 +307,12 @@

sync & latticeView
 latticeView(m1, m3)
-
- +
+
-
- +
+


+
+


 viewRGB(poppendorf, 5, 4, 3)
-
- +
+ diff --git a/articles/mapview_06-add.html b/articles/mapview_06-add.html index 1c6694e4d..a6e42010f 100644 --- a/articles/mapview_06-add.html +++ b/articles/mapview_06-add.html @@ -144,8 +144,8 @@

addMouseCoordinateslibrary(leafem) leaflet() %>% addTiles() %>% leafem::addMouseCoordinates() -
-
+
+
-
-


+
+


arguments offset.x, offset.y together with position give control about image placement. See ?addLogo for details

@@ -170,8 +170,8 @@

addFeaturesaddTiles() %>% leafem::addFeatures(franconia, weight = 1, fillColor = "grey", color = "black", opacity = 1, fillOpacity = 0.6) -
-


+
+


diff --git a/articles/mapview_07-pipe.html b/articles/mapview_07-pipe.html index 5be990293..61d9549cb 100644 --- a/articles/mapview_07-pipe.html +++ b/articles/mapview_07-pipe.html @@ -116,7 +116,7 @@

7. ceci constitue la fin du pipe

## rgdal (NA -> 1.6-7) [CRAN] ## rgeos (NA -> 0.6-4) [CRAN] ## ── R CMD build ───────────────────────────────────────────────────────────────── -## * checking for file ‘/tmp/RtmpvYUc6h/remotes7f3149b497c1/hrbrmstr-albersusa-07aa87f/DESCRIPTION’ ... OK +## * checking for file ‘/tmp/RtmpPIJNyz/remotes7f1b61521c3f/hrbrmstr-albersusa-07aa87f/DESCRIPTION’ ... OK ## * preparing ‘albersusa’: ## * checking DESCRIPTION meta-information ... OK ## * checking for LF line-endings in source and make files and shell scripts @@ -151,8 +151,8 @@

franconia %>% st_union %>% mapview -
-


+
+


union by district @@ -171,8 +171,8 @@

counties by areafranconia %>% mutate(area = as.numeric(st_area(.))) %>% mapview(zcol = "area", legend = TRUE)

-
-


+
+


breweries colored by district @@ -181,8 +181,8 @@

breweries colored by districtbreweries %>% st_intersection(franconia) %>% mapview(zcol = "district")

-
-


+
+


number of breweries by county @@ -191,8 +191,8 @@

number of breweries by countyfranconia %>% mutate(count = lengths(st_contains(., breweries))) %>% mapview(zcol = "count")

-
-


+
+


brewery density by county @@ -202,8 +202,8 @@

brewery density by county mutate(count = lengths(st_contains(., breweries)), density = count / as.numeric(st_area(.))) %>% mapview(zcol = "density")

-
-


+
+


using native.crs for a USA composite map @@ -211,8 +211,8 @@

using native.crs
 albersusa::usa_composite("laea") %>%
   mapview(native.crs = TRUE, zcol = "pop_2014", legend = TRUE)
-
-


+
+


without native.crs @@ -220,8 +220,8 @@

without native.crs
 albersusa::usa_composite("laea") %>%
   mapview(zcol = "pop_2014", legend = TRUE)

-
- +
+ diff --git a/pkgdown.yml b/pkgdown.yml index f122aa971..d3d3806f5 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -9,5 +9,5 @@ articles: mapview_05-extras: mapview_05-extras.html mapview_06-add: mapview_06-add.html mapview_07-pipe: mapview_07-pipe.html -last_built: 2023-09-24T04:26Z +last_built: 2023-09-25T04:27Z diff --git a/reference/viewExtent.html b/reference/viewExtent.html index f538f72e7..3603cd57d 100644 --- a/reference/viewExtent.html +++ b/reference/viewExtent.html @@ -140,12 +140,12 @@

Examples

viewExtent(breweries) viewExtent(franconia) + breweries mapview(franconia) %>% leafem::addExtent(franconia, fillColor = "yellow") -
-leaflet() %>% addProviderTiles("OpenStreetMap") %>% leafem::addExtent(breweries) -
-leaflet() %>% addProviderTiles("OpenStreetMap") %>% leafem::addExtent(breweries) -
- +
+leaflet() %>% addProviderTiles("OpenStreetMap") %>% leafem::addExtent(breweries) +
+leaflet() %>% addProviderTiles("OpenStreetMap") %>% leafem::addExtent(breweries) +
+