Skip to content

[Bug] ColumnLayer does not work as expected with radiusUnits: 'pixels' #9960

@blip-oscar

Description

@blip-oscar

Description

The ColumnLayer columns with pixel radius are larger than expected and does not stay the same size while zooming.

Flavors

  • Script tag
  • React
  • Python/Jupyter notebook
  • MapboxOverlay
  • GoogleMapsOverlay
  • CARTO
  • ArcGIS

Expected Behavior

Expected behavior is to follow the unit spec for pixels.

Steps to Reproduce

Use the ColumnLayer codepen and change the radiusUnits to 'pixels'.

Suggested solution:

Add the following lines to column-layer-vertex.glsl.ts at line 67 (just after the UNIT_METERS check)
else if (column.radiusUnits == UNIT_PIXELS) { offset = project_pixel_size(offset); }

Environment

  • Framework version: deck.gl@9.2.2
  • Browser: Edge 144.0.3719.82
  • OS: Windows 11

Note: same result on Android 16

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions