Skip to contents

Add a marker to map

Usage

add_marker(.map, marker)

Arguments

marker

Examples

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)