Show existing LOIs in draw area and drop pin tasks - #3871
Show existing LOIs in draw area and drop pin tasks#3871andreia-ferreira wants to merge 2 commits into
Conversation
…p pin and draw area tasks to see existing features in the map
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #3871 +/- ##
============================================
+ Coverage 68.03% 68.07% +0.04%
- Complexity 1883 1886 +3
============================================
Files 411 411
Lines 10881 10899 +18
Branches 1426 1427 +1
============================================
+ Hits 7403 7420 +17
Misses 2735 2735
- Partials 743 744 +1
🚀 New features to boost your workflow:
|
| override fun renderFeatures(): Flow<Set<Feature>> = | ||
| taskViewModel.draftArea.map { feature: Feature? -> | ||
| if (feature == null) setOf() else setOf(feature) | ||
| combine(getMapViewModel().existingLoiFeatures, taskViewModel.draftArea) { |
There was a problem hiding this comment.
Should we give some toggle button to the users instead of forcefully enabling it for everyone?
Was this not considered due to some reason?
There was a problem hiding this comment.
except for own submissions, polygon visibility is already controlled by the survey's data visibility setting (whether data is visible to all participants or not). An in-app toggle wasn't added since the immediate goal was to prevent data collectors from drawing overlapping geometries because they can't see what's already on the map. But if needed we can always add a toggle later 👍
Fixes #3482
Screen_recording_20260805_193830.webm
@shobhitagarwal1612 PTAL?