deckgl icon indicating copy to clipboard operation
deckgl copied to clipboard

It is possible that Heatmap doesn't work?

Open dsanchezq opened this issue 2 years ago • 2 comments

Hi Crazycapivara,

I have a recent problem that doesn't happen a few months ago: the add_heatmap_layer function seems not to work. I can see the basemap but not the heatmap layer. I even try to do it with the example I found on your site, with sf_bike_parking data, and the same thing happens: I see the base map but not the heatmap.

Do you know how I can solve it?

Thank you very much

dsanchezq avatar Jun 02 '23 15:06 dsanchezq

I am having the same issue nevermind, this seems to work:

deckgl() %>%
  add_basemap() |> 
  add_layer("HeatmapLayer", 
            id = 'heat',
            data = sf_bike_parking,
            getPosition = ~lng + lat,
            getWeight = ~spaces) 

jvandens avatar Sep 05 '23 02:09 jvandens

Thank you so much!!! Its working again

dsanchezq avatar Sep 05 '23 10:09 dsanchezq