Skip to content

GeoLineStrings colors and radii only use the first value #12160

@OisinMoran

Description

@OisinMoran

Describe the bug

The docs (and function signature) for GeoLineStrings indicate that it can take in multiple colors and radii, but only the first is ever used.

Image

To Reproduce
Steps to reproduce the behavior:

Working code for GeoPoints

colors = [[255, 0, 0],[0, 255, 0],[0, 0, 255],[255, 0, 255]]
radii = [
        rr.Radius.ui_points(10.0),
        rr.Radius.ui_points(20.0),
        rr.Radius.ui_points(30.0),
        rr.Radius.ui_points(40.0)
]
rr.log(
        "world/map/test",
        rr.GeoPoints(lat_lon=[[0,0],[0,1],[1,1],[1,0]], colors=colors, radii=radii)
)
Image

Non-working code for GeoLineStrings

colors = [[255, 0, 0],[0, 255, 0],[0, 0, 255],[255, 0, 255]]
radii = [
        rr.Radius.ui_points(10.0),
        rr.Radius.ui_points(20.0),
        rr.Radius.ui_points(30.0),
        rr.Radius.ui_points(40.0)
]
rr.log(
        "world/map/test",
        rr. GeoLineStrings(lat_lon=[[0,0],[0,1],[1,1],[1,0]], colors=colors, radii=radii)
)
Image

Expected behavior

The line would interpolate between radii and colors of each point. If that is too tricky or not worth the effort, maybe just a pointer in the docs that while these args do accept arrays, they will only use the first item (for now at least).

Desktop (please complete the following information):

  • OS: macOS Sequioa 15.6

Rerun version

rerun-cli 0.27.3 (base lance map_view nasm native_viewer oss_server re_server release_full release_no_web_viewer web_viewer) [rustc 1.88.0 (6b00bc388 2025-06-23), LLVM 20.1.5] aarch64-apple-darwin prepare-release-0.27.3 3bddb14, built 2025-12-08T15:26:25.859291Z
Video features: av1 default ffmpeg nasm serde

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    📖 documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions