SymbolixAU / mapdeck

R interface to Deck.gl and Mapbox
https://symbolixau.github.io/mapdeck/articles/mapdeck.html
363 stars 40 forks source link

add_text: --> Error: Must supply `x`, `y` and `text` attributes #369

Closed tombrussel closed 11 months ago

tombrussel commented 1 year ago

Describe the bug Running the example code for add_text from here results in the error message "Error: Must supply x, y and text attributes"

To Reproduce

mapdeck(token = key, style = mapdeck_style('dark')) %>%
  add_text(
    data = capitals
    , lon = 'lon'
    , lat = 'lat'
    , fill_colour = 'country'
    , text = 'capital'
    , layer_id = 'text'
    , size = 16
  )

Expected behaviour The expected behavior is the map in the source weblink provided above.

Screenshots

Versions mapdeck 0.3.4 sf 1.0.9

Formatting use markdown to format code chunks

dcooley commented 1 year ago

This is working on the latest dev versions

remotes::install_github("SymbolixAU/spatialwidget")
remotes::install_github("SymbolixAU/mapdeck")