R/fond_carte.R

Defines functions fond_carte

Documented in fond_carte

#' fond_carte
#'
#'renvoie un fond de carte centré sur la France
#' @return objet de classes "htmlwidget" , "leaflet"
#' @import htmltools
#' @examples fond_carte()
#' @export
fond_carte <- function()
  {
  leaflet::leaflet(df)%>%
    leaflet::fitBounds(-1.9,44,4,52)%>%
    leaflet::addTiles()%>%
    leaflet::addMarkers(~Long, ~Lat, label = ~htmlEscape(df$Name),popup = ~htmlEscape(df$Metiers))
}
l-k-11235/projetMetiers documentation built on Dec. 8, 2019, 10:04 p.m.