Skip to contents

Inspects the geometry type of data (POINT, LINESTRING, POLYGON, etc.) and routes to add_points(), add_lines(), or add_polygons().

Usage

add_sf(map, data = NULL, ...)

Arguments

map

A glmap widget or glmap_proxy.

data

An sf, sfc, or data.frame object (defaults to map data).

...

Arguments passed on to add_points(), add_lines(), or add_polygons().