R/map_UI.R

Defines functions map_UI

Documented in map_UI

#' The user interface for AtlasMaker.
#'
#' This is the core ui  function for AtlasMaker.
#'
#' @export
#' @importFrom leaflet leafletOutput
#'
#' @param  id identifier for the map. This must match the id used in [map_server()].
#'
#' @return a [leaflet::leafletOutput()] object.
#' @examples
#' map_UI('flowering_plants')
#' map_UI('map1')
#' map_UI('map2')
#'

map_UI <- function(id) {
  ns <- NS(id)
  leaflet::leafletOutput(ns("mymap"), height = 700)
}

Try the AtlasMaker package in your browser

Any scripts or data that you put into this service are public.

AtlasMaker documentation built on July 26, 2023, 5:32 p.m.