Skip to contents

Create an empty leaflet map from sf input

Usage

util_map(tomap, minimap = "bottomleft")

Arguments

tomap

sf input object

minimap

character string indicating location of minimap, use minimap = NULL to suppress

Value

A leaflet object with optional minimap and ESRI provider tiles

Examples

tomap <- tibble::tibble(
  lon = -82.6365,
  lat = 27.75822
  )
tomap <- sf::st_as_sf(tomap, coords = c('lon', 'lat'), crs = 4326)
util_map(tomap)