diff --git a/articles/mapview_01-basics.html b/articles/mapview_01-basics.html index cbcb9ab7..a70e6d22 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_69a35e-1/data_stars_kiliNDVI_106dae1.txt b/articles/mapview_01-basics_files/kiliNDVI_1_8e064c-1/data_stars_kiliNDVI_18bd30e.txt similarity index 100% rename from articles/mapview_01-basics_files/kiliNDVI_1_69a35e-1/data_stars_kiliNDVI_106dae1.txt rename to articles/mapview_01-basics_files/kiliNDVI_1_8e064c-1/data_stars_kiliNDVI_18bd30e.txt diff --git a/articles/mapview_01-basics_files/kiliNDVI_2_4bf7d1-1/data_stars_kiliNDVI_295defa.txt b/articles/mapview_01-basics_files/kiliNDVI_2_ac1bd0-1/data_stars_kiliNDVI_29fd473.txt similarity index 100% rename from articles/mapview_01-basics_files/kiliNDVI_2_4bf7d1-1/data_stars_kiliNDVI_295defa.txt rename to articles/mapview_01-basics_files/kiliNDVI_2_ac1bd0-1/data_stars_kiliNDVI_29fd473.txt diff --git a/articles/mapview_01-basics_files/kiliNDVI_3_12f8cb-1/data_stars_kiliNDVI_3503921.txt b/articles/mapview_01-basics_files/kiliNDVI_3_096c85-1/data_stars_kiliNDVI_331a670.txt similarity index 100% rename from articles/mapview_01-basics_files/kiliNDVI_3_12f8cb-1/data_stars_kiliNDVI_3503921.txt rename to articles/mapview_01-basics_files/kiliNDVI_3_096c85-1/data_stars_kiliNDVI_331a670.txt diff --git a/articles/mapview_01-basics_files/poppendorf[[5]]_e56782-1/data_stars_poppendorf582dae9.txt b/articles/mapview_01-basics_files/poppendorf[[5]]_2f186b-1/data_stars_poppendorf55a697b.txt similarity index 100% rename from articles/mapview_01-basics_files/poppendorf[[5]]_e56782-1/data_stars_poppendorf582dae9.txt rename to articles/mapview_01-basics_files/poppendorf[[5]]_2f186b-1/data_stars_poppendorf55a697b.txt diff --git a/articles/mapview_02-advanced.html b/articles/mapview_02-advanced.html index a1cdcb60..cb6edb2d 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]]_c3501e-1/data_stars_kiliNDVI1c24310.txt b/articles/mapview_02-advanced_files/kiliNDVI[[1]]_472958-1/data_stars_kiliNDVI1ba7e54.txt similarity index 100% rename from articles/mapview_02-advanced_files/kiliNDVI[[1]]_c3501e-1/data_stars_kiliNDVI1c24310.txt rename to articles/mapview_02-advanced_files/kiliNDVI[[1]]_472958-1/data_stars_kiliNDVI1ba7e54.txt diff --git a/articles/mapview_02-advanced_files/poppendorf[[5]]_0961d7-1/data_stars_poppendorf5a5c719.txt b/articles/mapview_02-advanced_files/poppendorf[[5]]_125763-1/data_stars_poppendorf5152a40.txt similarity index 100% rename from articles/mapview_02-advanced_files/poppendorf[[5]]_0961d7-1/data_stars_poppendorf5a5c719.txt rename to articles/mapview_02-advanced_files/poppendorf[[5]]_125763-1/data_stars_poppendorf5152a40.txt diff --git a/articles/mapview_02-advanced_files/poppendorf[[5]]_1f937c-1/data_stars_poppendorf57b52e0.txt b/articles/mapview_02-advanced_files/poppendorf[[5]]_b80c49-1/data_stars_poppendorf5682ebf.txt similarity index 100% rename from articles/mapview_02-advanced_files/poppendorf[[5]]_1f937c-1/data_stars_poppendorf57b52e0.txt rename to articles/mapview_02-advanced_files/poppendorf[[5]]_b80c49-1/data_stars_poppendorf5682ebf.txt diff --git a/articles/mapview_03-options.html b/articles/mapview_03-options.html index d22cbbf1..13daf4f2 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 6104e628..927f7670 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 b162b09e..7051814e 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 f51f208e..cbf25ae6 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/Rtmp9UW9g4/remotes826c7cb09e74/hrbrmstr-albersusa-07aa87f/DESCRIPTION’ ... OK +## * checking for file ‘/tmp/Rtmp5xW31r/remotes818c5dc57ea5/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 9f9097fa..42668c5b 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-10-02T04:30Z +last_built: 2023-10-03T04:28Z diff --git a/reference/viewExtent.html b/reference/viewExtent.html index 14156aff..44630bcf 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) +
+