diff --git a/articles/mapview_01-basics.html b/articles/mapview_01-basics.html index 1e4c3e6b..5e72c2c3 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_b73fe9-1/data_stars_kiliNDVI_14b0da3.txt b/articles/mapview_01-basics_files/kiliNDVI_1_b3c9e5-1/data_stars_kiliNDVI_16981e0.txt similarity index 100% rename from articles/mapview_01-basics_files/kiliNDVI_1_b73fe9-1/data_stars_kiliNDVI_14b0da3.txt rename to articles/mapview_01-basics_files/kiliNDVI_1_b3c9e5-1/data_stars_kiliNDVI_16981e0.txt diff --git a/articles/mapview_01-basics_files/kiliNDVI_2_cdb576-1/data_stars_kiliNDVI_2d94012.txt b/articles/mapview_01-basics_files/kiliNDVI_2_2b40f5-1/data_stars_kiliNDVI_243b8ea.txt similarity index 100% rename from articles/mapview_01-basics_files/kiliNDVI_2_cdb576-1/data_stars_kiliNDVI_2d94012.txt rename to articles/mapview_01-basics_files/kiliNDVI_2_2b40f5-1/data_stars_kiliNDVI_243b8ea.txt diff --git a/articles/mapview_01-basics_files/kiliNDVI_3_1fb6ae-1/data_stars_kiliNDVI_3db65c4.txt b/articles/mapview_01-basics_files/kiliNDVI_3_5049f1-1/data_stars_kiliNDVI_38bc50e.txt similarity index 100% rename from articles/mapview_01-basics_files/kiliNDVI_3_1fb6ae-1/data_stars_kiliNDVI_3db65c4.txt rename to articles/mapview_01-basics_files/kiliNDVI_3_5049f1-1/data_stars_kiliNDVI_38bc50e.txt diff --git a/articles/mapview_01-basics_files/poppendorf[[5]]_efd25a-1/data_stars_poppendorf5d14c8a.txt b/articles/mapview_01-basics_files/poppendorf[[5]]_6cd25a-1/data_stars_poppendorf5654e2d.txt similarity index 100% rename from articles/mapview_01-basics_files/poppendorf[[5]]_efd25a-1/data_stars_poppendorf5d14c8a.txt rename to articles/mapview_01-basics_files/poppendorf[[5]]_6cd25a-1/data_stars_poppendorf5654e2d.txt diff --git a/articles/mapview_02-advanced.html b/articles/mapview_02-advanced.html index d205a0b4..8cfdfd5d 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]]_0c8fa2-1/data_stars_kiliNDVI194b65f.txt b/articles/mapview_02-advanced_files/kiliNDVI[[1]]_f7958c-1/data_stars_kiliNDVI1d4e726.txt similarity index 100% rename from articles/mapview_02-advanced_files/kiliNDVI[[1]]_0c8fa2-1/data_stars_kiliNDVI194b65f.txt rename to articles/mapview_02-advanced_files/kiliNDVI[[1]]_f7958c-1/data_stars_kiliNDVI1d4e726.txt diff --git a/articles/mapview_02-advanced_files/poppendorf[[5]]_51ec3b-1/data_stars_poppendorf5b4f7e0.txt b/articles/mapview_02-advanced_files/poppendorf[[5]]_d907e6-1/data_stars_poppendorf5965f27.txt similarity index 100% rename from articles/mapview_02-advanced_files/poppendorf[[5]]_51ec3b-1/data_stars_poppendorf5b4f7e0.txt rename to articles/mapview_02-advanced_files/poppendorf[[5]]_d907e6-1/data_stars_poppendorf5965f27.txt diff --git a/articles/mapview_02-advanced_files/poppendorf[[5]]_f38651-1/data_stars_poppendorf5dc70ea.txt b/articles/mapview_02-advanced_files/poppendorf[[5]]_e85ad1-1/data_stars_poppendorf59a2b46.txt similarity index 100% rename from articles/mapview_02-advanced_files/poppendorf[[5]]_f38651-1/data_stars_poppendorf5dc70ea.txt rename to articles/mapview_02-advanced_files/poppendorf[[5]]_e85ad1-1/data_stars_poppendorf59a2b46.txt diff --git a/articles/mapview_03-options.html b/articles/mapview_03-options.html index 013c5b00..f693671c 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 d94c8c8e..f5847362 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 bab3f7cb..a9b02a82 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 6ec2f481..402c64c9 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/RtmpGb5KIg/remotes88ef5516e6ac/hrbrmstr-albersusa-07aa87f/DESCRIPTION’ ... OK +## * checking for file ‘/tmp/RtmpMYGYw7/remotes88ad25cf645f/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 79f7ce4d..4c5020f7 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-07-21T04:28Z +last_built: 2023-07-22T04:27Z diff --git a/reference/viewExtent.html b/reference/viewExtent.html index eca9905d..fe08a062 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) +
+