| + {mapview} | R Documentation |
mapview + mapview adds data from the second map to the first
mapview + data adds spatial data (raster*, sf*, sp*) to a mapview map
mapview + NULL returns the LHS map
[...]
## S4 method for signature 'mapview,mapview' e1 + e2 ## S4 method for signature 'mapview,ANY' e1 + e2 ## S4 method for signature 'mapview,'NULL'' e1 + e2 ## S4 method for signature 'mapview,character' e1 + e2
e1 |
a leaflet or mapview map to which e2 should be added. |
e2 |
a (spatial) object to be added or a mapview object from which the objects should be added to e1. |
m1 <- mapView(franconia, col.regions = "red")
m2 <- mapView(breweries)
### add two mapview objects
m1 + m2
'+'(m2, m1)
### add layers to a mapview object
if (interactive()) {
library(plainview)
m1 + breweries + plainview::poppendorf[[4]]
}