diff --git a/articles/mapview_01-basics.html b/articles/mapview_01-basics.html index 8987fdb1..3092f9fa 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_5de3c1-1/data_stars_kiliNDVI_1c2f49e.txt b/articles/mapview_01-basics_files/kiliNDVI_1_b0d7ef-1/data_stars_kiliNDVI_1468dcf.txt similarity index 100% rename from articles/mapview_01-basics_files/kiliNDVI_1_5de3c1-1/data_stars_kiliNDVI_1c2f49e.txt rename to articles/mapview_01-basics_files/kiliNDVI_1_b0d7ef-1/data_stars_kiliNDVI_1468dcf.txt diff --git a/articles/mapview_01-basics_files/kiliNDVI_2_6708d1-1/data_stars_kiliNDVI_2475af3.txt b/articles/mapview_01-basics_files/kiliNDVI_2_2a59e6-1/data_stars_kiliNDVI_21ae054.txt similarity index 100% rename from articles/mapview_01-basics_files/kiliNDVI_2_6708d1-1/data_stars_kiliNDVI_2475af3.txt rename to articles/mapview_01-basics_files/kiliNDVI_2_2a59e6-1/data_stars_kiliNDVI_21ae054.txt diff --git a/articles/mapview_01-basics_files/kiliNDVI_3_9523a4-1/data_stars_kiliNDVI_3385c01.txt b/articles/mapview_01-basics_files/kiliNDVI_3_806a9c-1/data_stars_kiliNDVI_3e5860d.txt similarity index 100% rename from articles/mapview_01-basics_files/kiliNDVI_3_9523a4-1/data_stars_kiliNDVI_3385c01.txt rename to articles/mapview_01-basics_files/kiliNDVI_3_806a9c-1/data_stars_kiliNDVI_3e5860d.txt diff --git a/articles/mapview_01-basics_files/poppendorf[[5]]_26fbac-1/data_stars_poppendorf51056f7.txt b/articles/mapview_01-basics_files/poppendorf[[5]]_f6d7c0-1/data_stars_poppendorf5dfb5c0.txt similarity index 100% rename from articles/mapview_01-basics_files/poppendorf[[5]]_26fbac-1/data_stars_poppendorf51056f7.txt rename to articles/mapview_01-basics_files/poppendorf[[5]]_f6d7c0-1/data_stars_poppendorf5dfb5c0.txt diff --git a/articles/mapview_02-advanced.html b/articles/mapview_02-advanced.html index 513e26e1..b89d9e9f 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]]_fe2b6a-1/data_stars_kiliNDVI14f6c87.txt b/articles/mapview_02-advanced_files/kiliNDVI[[1]]_7c4ef2-1/data_stars_kiliNDVI13df528.txt similarity index 100% rename from articles/mapview_02-advanced_files/kiliNDVI[[1]]_fe2b6a-1/data_stars_kiliNDVI14f6c87.txt rename to articles/mapview_02-advanced_files/kiliNDVI[[1]]_7c4ef2-1/data_stars_kiliNDVI13df528.txt diff --git a/articles/mapview_02-advanced_files/poppendorf[[5]]_27b08d-1/data_stars_poppendorf5a74350.txt b/articles/mapview_02-advanced_files/poppendorf[[5]]_a7b2d9-1/data_stars_poppendorf5fb2759.txt similarity index 100% rename from articles/mapview_02-advanced_files/poppendorf[[5]]_27b08d-1/data_stars_poppendorf5a74350.txt rename to articles/mapview_02-advanced_files/poppendorf[[5]]_a7b2d9-1/data_stars_poppendorf5fb2759.txt diff --git a/articles/mapview_02-advanced_files/poppendorf[[5]]_837ebd-1/data_stars_poppendorf53caf06.txt b/articles/mapview_02-advanced_files/poppendorf[[5]]_da9b65-1/data_stars_poppendorf584673b.txt similarity index 100% rename from articles/mapview_02-advanced_files/poppendorf[[5]]_837ebd-1/data_stars_poppendorf53caf06.txt rename to articles/mapview_02-advanced_files/poppendorf[[5]]_da9b65-1/data_stars_poppendorf584673b.txt diff --git a/articles/mapview_03-options.html b/articles/mapview_03-options.html index 0fb5b581..d41e2547 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 b0419ec0..8f0c85b9 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 5a82d2b1..f81e9c92 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 987890df..d9ca6ec6 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-3) [CRAN] ## ── R CMD build ───────────────────────────────────────────────────────────────── -## * checking for file ‘/tmp/Rtmpp2av8Z/remotes68ff755b984/hrbrmstr-albersusa-07aa87f/DESCRIPTION’ ... OK +## * checking for file ‘/tmp/Rtmpb7oBFC/remotes6938700f1981/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 3b881b03..9ac02ad8 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-07T04:30Z +last_built: 2023-07-08T04:34Z diff --git a/reference/viewExtent.html b/reference/viewExtent.html index 1828aebd..82be93d4 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) +
+