Export geojson object on a map.
gp_map( x, browse_map = TRUE, dest_path = tempdir(), height = NULL, width = NULL )
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 |
dest_path | character: write output to |
height | character: css compatible option for map height. |
width | character: css compatible option for map width. |
path character of path that html file was written to.
if (FALSE) { gp_map(paste0("http://opendata.canterburymaps.govt.nz/datasets/", "fb00b553120b4f2fac49aa76bc8d82aa_26.geojson"), browse_map = FALSE) }