gp_sf: Explore an sf R object on a leaflet map.

View source: R/sf.R

gp_sfR Documentation

Explore an sf R object on a leaflet map.

Description

The function (for now) takes one parameter to bounce back to the backend. For now just a dropdown list. The slider only works with circles.

Usage

gp_sf(
  sf = geoplumber::traffic,
  props_list = list(road = geoplumber::traffic$road)
)

Arguments

sf

a valid sf object that can be converted to geojson

props_list

one named list of menuitmes to explore sf object with.

Examples

## Not run: 
gp_sf()

## End(Not run)

ATFutures/geoplumber documentation built on July 4, 2023, 12:18 a.m.