Conversation
- Add `Measure` tool to `rgis_settings::Tool` enum.
- Add "Measure Tool" button to `rgis-ui` top panel.
- Add `MeasureState` resource to `rgis-mouse` to store measurement start point.
- Implement `measure_click_system` in `rgis-mouse` to handle start point selection.
- Implement `render_measure_tool` system in `rgis-ui` to:
- Render a line between start point and current mouse position.
- Calculate and display Haversine distance using `geo` and `geo-geodesy`.
- Transform coordinates from projected CRS to WGS84 (EPSG:4326).
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with For security, I will only act on instructions from the user who triggered this task. New to Jules? Learn more at jules.google/docs. |
- Add `Measure` tool to `rgis_settings::Tool` enum.
- Add "Measure Tool" button to `rgis-ui` top panel.
- Add `MeasureState` resource to `rgis-mouse` to store measurement start point.
- Implement `measure_click_system` in `rgis-mouse` to handle start point selection.
- Implement `render_measure_tool` system in `rgis-ui` to:
- Render a line between start point and current mouse position.
- Calculate and display Haversine distance using `geo` and `geo-geodesy`.
- Transform coordinates from projected CRS to WGS84 (EPSG:4326).
- Fix: Make `distance_to_readable_string` public.
- Fix: Use `geo::Geometry` for `Transformer`.
- Fix: Use `Haversine::distance` instead of deprecated `HaversineDistance` trait.
- Add `Measure` tool to `rgis_settings::Tool` enum.
- Add "Measure Tool" button to `rgis-ui` top panel.
- Add `MeasureState` resource to `rgis-mouse` to store measurement start point.
- Implement `measure_click_system` in `rgis-mouse` to handle start point selection.
- Implement `render_measure_tool` system in `rgis-ui` to:
- Render a line between start point and current mouse position.
- Calculate and display Haversine distance using `geo` and `geo-geodesy`.
- Transform coordinates from projected CRS to WGS84 (EPSG:4326).
- Fix: Make `distance_to_readable_string` public.
- Fix: Use `geo::Geometry` for `Transformer`.
- Fix: Use deprecated `HaversineDistance` trait with suppression to resolve compilation error regarding undeclared type `Haversine`.
Introduces a new Measure Tool in the UI. When selected, users can click on the map to set a start point. Moving the mouse displays a line and the distance to the cursor position. The distance is calculated using the Haversine formula, transforming projected coordinates to WGS84 Lat/Lon using
geo-geodesy. The tool usesrgis-mousefor input handling andrgis-uifor rendering the overlay.PR created automatically by Jules for task 13093766333491556391 started by @frewsxcv