R/util_map.R
util_map.Rd
Create an empty leaflet map from sf input
util_map(tomap, minimap = "bottomleft")
sf input object
sf
character string indicating location of minimap, use minimap = NULL to suppress
minimap = NULL
A leaflet object with optional minimap and ESRI provider tiles
leaflet
tomap <- tibble::tibble( lon = -82.6365, lat = 27.75822 ) tomap <- sf::st_as_sf(tomap, coords = c('lon', 'lat'), crs = 4326) util_map(tomap) +− Esri.WorldGrayCanvas Esri.NatGeoWorldMap Esri.OceanBasemap Esri.WorldPhysical Esri.WorldShadedRelief Esri.WorldTerrain Esri.WorldImagery Esri.WorldTopoMap Esri.DeLorme Esri.WorldStreetMap EsriLeaflet | Tiles © Esri — Esri, DeLorme, NAVTEQ