Skip to content

how to use add_layer properly to add an icon? #114

@Jorge-hercas

Description

@Jorge-hercas

hi and thanks for reading me. Im working on a map with some points marked and I want to show by default an icon using add_layer, is that possible? I use the following code and is not actually working:

library(mapboxer)

tibble(
  lat = 19,
  lng = -99) |> 
  as_mapbox_source() |> 
  mapboxer() |> 
  add_layer(
    list(id = "circl1e",
         type = "symbol",
         source = "tibble",
         layout = list(
           icon = "globe")))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions