Description
mapview is an R package for making interactive maps of spatial data quickly. You pass it spatial objects such as points, lines, polygons or rasters, and it picks a matching map type and draws them over a set of background maps. It is built for fast exploration, so you can check both the shapes in your data and their attribute values, rather than for polished presentation maps. Under the hood it works as a data-driven layer over the leaflet package, and it can use mapdeck for rendering when your data is large. The package includes viewExtent for bounding boxes, viewRGB for true- and false-colour raster images, and mapshot for saving maps as HTML or PNG files. Several older helpers, such as addLogo and latticeView, are now deprecated and have moved to companion packages.…
Highlights
- Interactive maps of points, lines, polygons and rasters
- Picks a suitable map type for each data type
- Background maps rendered with leaflet
- Optional mapdeck rendering for large data
- Save maps as HTML or PNG with mapshot
Ratings & Reviews
No ratings yet
Be the first to rate Mapview.
People also visit
Mapview FAQ
What kind of data can mapview show?
Spatial objects in R, including points, lines, polygons and raster data. It chooses the matching map type for each one automatically.
Is mapview meant for final presentation maps?
No. The package is aimed at quick, interactive exploration of geometries and their attributes. mapshot can save a map as HTML or PNG when you need an output file.
Can it handle large data sets?
Yes, within limits. It uses advanced rendering that allows much larger data than leaflet alone, and you can switch to mapdeck with mapviewOptions(platform = 'mapdeck').
Where did some of the helper functions go?
Functions such as addHomeButton, addLogo and addFeatures are deprecated in favour of the leafem package. latticeView and sync moved to leafsync, and slideView moved to slideview.
What are the best Mapview alternatives?
Popular alternatives to Mapview include Mapdeck, Leaflet.extras and Rcityviews. See all Mapview alternatives


