Skip to content

Commit

Permalink
geolinestrings too
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed Dec 19, 2024
1 parent dfc69d4 commit 52bd3b7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions crates/viewer/re_view_map/src/visualizers/geo_line_strings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ impl VisualizerSystem for GeoLineStringsVisualizer {

// iterate over each chunk and find all relevant component slices
for (_index, lines, colors, radii) in re_query::range_zip_1x2(
all_lines.component_slow::<GeoLineString>(),
all_lines.primitive_array_list::<2, f64>(),
all_colors.primitive::<u32>(),
all_radii.primitive::<f32>(),
) {
Expand All @@ -90,9 +90,8 @@ impl VisualizerSystem for GeoLineStringsVisualizer {
.enumerate()
{
batch_data.lines.push(
line.0
.iter()
.map(|pos| walkers::Position::from_lat_lon(pos.x(), pos.y()))
line.iter()
.map(|pos| walkers::Position::from_lat_lon(pos[0], pos[1]))
.collect(),
);
batch_data.radii.push(Radius((*radius).into()));
Expand Down

0 comments on commit 52bd3b7

Please sign in to comment.