R/marker.R
add_marker.Rd
Add a marker to map
add_marker(.map, marker)
library(maplibre) marker = Marker( lngLat = c(9.5,51.31667), popup = list(text = "This is a marker",options = list(closeButton = F)), color= "darkred" ) maplibre(mapOptions(center = c(9.5,51.31667)),zoom = 4) |> add_marker(marker)