SymbolixAU / mapdeck

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

onClick events don't return layerId #372

Closed hdmm3 closed 11 months ago

hdmm3 commented 1 year ago

Describe the bug It is not possible to identify which layer is triggering an onClick event, since the JSON event returned by md_layer_click is assigning a non-existent value to layerId.

Expected behaviour The picking info object returns a layer object instead of returning directly a layer_id . The layerId should be obtained from info.layer.id instead of info.layer_id

dcooley commented 1 year ago

thanks - have just updated master branch.