mapview (version 1.2.0)

popupTable: Create HTML strings for popup tables

Description

Create HTML strings for popup tables used as input for mapview. This optionally allows the user to include only a subset of feature attributes.

Usage

popupTable(x, zcol, use_cpp = TRUE)

Arguments

x
A Spatial* object.
zcol
numeric or character vector indicating the columns included in the output popup table. If missing, all columns are displayed.
use_cpp
logical determining whether or not to enable Rcpp functionality.

Value

A list of HTML strings required to create feature popup table(s).

See Also

popupGraph and popupImage.

Examples

Run this code
## Not run: 
# library(sp)
# 
# data(meuse)
# coordinates(meuse) <- ~ x + y
# proj4string(meuse) <- CRS("+init=epsg:28992")
# 
# ## include columns 1 and 2 only
# mapview(meuse, popup = popupTable(meuse, zcol = 1:2))
# ## End(Not run)

Run the code above in your browser using DataLab