deck.gl icon indicating copy to clipboard operation
deck.gl copied to clipboard

[Bug] CARTO fetchMap: HeatmapLayers doesn't work

Open padawannn opened this issue 1 year ago • 0 comments

Description

HeatmapLayers are not rendered. It's because the layer is receiving a geojson as data. To solve it we need to add the dataTransform property. For example:

dataTransform: (d) => d.features.map(d => ({...d.properties, geom: d.geometry}))

On the other hand, we're not passing the getWeight property

Flavors

  • [ ] Script tag
  • [ ] React
  • [ ] Python/Jupyter notebook
  • [ ] MapboxOverlay
  • [ ] GoogleMapsOverlay
  • [ ] CartoLayer
  • [ ] ArcGIS

Expected Behavior

No response

Steps to Reproduce

Create and publish a map with a Heatmap layer in Builder. After that test it in the carto-map test app

Environment

Logs

No response

padawannn avatar Jan 04 '24 13:01 padawannn