Skip to content

Refactor split task by drawing to use TerraDraw#7139

Merged
ramyaragupathy merged 1 commit intodevelopfrom
fix/7135-draw-area-to-split
Jan 30, 2026
Merged

Refactor split task by drawing to use TerraDraw#7139
ramyaragupathy merged 1 commit intodevelopfrom
fix/7135-draw-area-to-split

Conversation

@suzit-10
Copy link
Copy Markdown
Contributor

What type of PR is this? (check all applicable)

  • 🍕 Feature
  • 🐛 Bug Fix
  • 📝 Documentation
  • 🧑‍💻 Refactor
  • ✅ Test
  • 🤖 Build or CI
  • ❓ Other (please specify)

Related Issue

Fixes #7135

Describe this PR

This PR implements the split-by-drawing feature using TerraDraw, replacing the previous Mapbox GL Draw implementation.

Changes:

  • Migrated the Split by drawing functionality from Mapbox Draw to TerraDraw.
  • Refactored splitDrawing to use useCallback and handle drawing completion events via the TerraDraw instance.
  • Minor code formatting updates for button class names.

Replaced direct Mapbox Draw interactions with TerraDraw instance methods in `splitDrawing`
@sonarqubecloud
Copy link
Copy Markdown

@ramyaragupathy ramyaragupathy merged commit 6ddec60 into develop Jan 30, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] 'Draw area to split' during project creation not working

2 participants