Export geojson object on a map.

gp_map(
  x,
  browse_map = TRUE,
  dest_path = tempdir(),
  height = NULL,
  width = NULL
)

Arguments

x

character or sf object: URL or sf object to view on map

browse_map

logical: should the outcome be viewed in a browser? defaults to TRUE

dest_path

character: write output to tempdir (default).

height

character: css compatible option for map height.

width

character: css compatible option for map width.

Value

path character of path that html file was written to.

Examples

if (FALSE) { gp_map(paste0("http://opendata.canterburymaps.govt.nz/datasets/", "fb00b553120b4f2fac49aa76bc8d82aa_26.geojson"), browse_map = FALSE) }