R/map_point.R

#' Loads the information of the parcel and displays it on a map of the parcel using its coordinates
#'
#' @param banRmatrix banR object
#' @param information character vector
#'
#' @import leaflet
#' @import dplyr
#'
#' @return dataframe
#' @export
#'
#' @examples \dontrun{
#' map_point(2.2945, 48.8584, 'Here is the <b>Tour Eiffel</b>, Paris')
#' }
#'
#'
map_point <- function(banRmatrix,information){

m = leaflet::leaflet() %>% leaflet::addTiles()
## a map with the default OSM tile layer

m %>% leaflet::addPopups(banRmatrix$longitude, banRmatrix$latitude, information)
## Longitude puis latitude
}
Raphael-Selignan/artemis documentation built on May 28, 2019, 2:27 p.m.