Added checkbox to show/hide boundaries when zoomed in past render threshold#255
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a user-facing toggle to show/hide global field boundary overlays, intended to make it easier to inspect underlying imagery while using the global predictions map mode.
Changes:
- Extend persisted
SettingswithshowFieldBoundaries(defaulttrue). - Apply the visibility setting to the global predictions layer and react to changes.
- Add a “Show field boundaries” checkbox in
GlobalDataPanel, disabled untilGLOBAL_DATA_MAP_FIELD_START_ZOOM_LEVEL.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
src/composables/useSettings.ts |
Adds showFieldBoundaries to settings + default value for persistence. |
src/composables/useMap.ts |
Sets global predictions layer visibility from settings and watches for toggles. |
src/components/GlobalDataPanel.vue |
Adds zoom-gated checkbox UI bound to settings.showFieldBoundaries. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Fixed. I don't really have an opinion on whether this is in the existing radio button or not |
|
Thanks. I just had another Idea. Why not add an opacity slider? Then you could set opacity to whatever makes let's you best judge the boundaries. 0 would be equivalent to now shown. We could or could not apply the opacity also to the overview layer. More todos:
Approving as the blockers are solved, but I think it's worth discussing the other options. Could be part of a different PR. |
|
Merging for now, will create a separate PR for the opacity. |

Adds a checkbox that allows me to toggle the fields on off -- helpful when I want to see the underlying imagery. Checkbox is disabled until you zoom past
GLOBAL_DATA_MAP_FIELD_START_ZOOM_LEVEL