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 @@ -
library(mapview)
mapview(breweries)
mapview(franconia)
mapview(breweries, zcol = c("brewery", "village", "founded"))
mapview(breweries, zcol = "founded", legend = TRUE)
mapview(breweries)
Here we also adjust line color and width (using lwd
)
mapview(franconia, color = "cyan", col.regions = "white", lwd = 3)
mapview(breweries, map.types = c("Esri.WorldShadedRelief", "OpenStreetMap.DE"), color = "grey40")
mapview(list(franconia, breweries),
layer.name = c("Franconian districts", "Franconian breweries"))
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 @@
mapview(breweries, cex = "number.of.types")
mapview(breweries, alpha = 0)
mapview(franconia, alpha.regions = 0.2, aplha = 1)
library(plainview)
@@ -348,13 +348,13 @@ Multiple layers zcol = list(NULL, "district"),
legend = list(TRUE, FALSE),
homebutton = list(FALSE, TRUE)) + poppendorf[[5]]
See chapter 3. mapview options
for instructions on how
to set some of these styling parameters permanently.
mapview(breweries, zcol = "founded", legend = TRUE)
These options will now be available until the current session is closed. i.e. you quit R
- -To change these options permanently, i.e. across sessions, you could
place a call to mapviewOptions
in your
.Rprofile
so that they will be set everytime you start
@@ -319,8 +319,8 @@
mapviewOptions(default = TRUE)
mapview(franconia)
This can also be used with leaflet maps
leaflet() %>%
addTiles() %>%
addCircleMarkers(data = breweries,
popup = popupTable(breweries))
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 @@
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 @@
sync(list(m1, m2, m3), ncol = 1)
latticeView(m1, m3)
viewRGB(poppendorf, 5, 4, 3)
arguments offset.x
, offset.y
together with
position
give control about image placement. See
?addLogo
for details
The standard styling arguments for leaflet::add*
functions can be used just like in the original add*
function
franconia %>%
st_union %>%
mapview
-
-native.crs
for a USA composite map
@@ -211,8 +211,8 @@ native.crs
albersusa::usa_composite("laea") %>%
mapview(native.crs = TRUE, zcol = "pop_2014", legend = TRUE)
native.crs
@@ -220,8 +220,8 @@ native.crs
albersusa::usa_composite("laea") %>%
mapview(zcol = "pop_2014", legend = TRUE)