geoproject-app/public/site
isUnknown 818506fcfa fix: add polling and reset handling for single mode coordinates
Enhanced coordinate synchronization in single mode to handle Panel
actions like "Supprimer" (reset to saved values).

Issues Fixed:
- Marker not updating when clicking "Supprimer" button in Panel
- Panel "Supprimer" restores saved coordinates but marker didn't move
- No detection of programmatic field value changes

Solution:
- Add MutationObserver to detect attribute changes on input fields
- Add 500ms polling as fallback for value detection
- Add nextTick() for reactive updates to ensure proper timing
- Handle coordinate reset: when invalid, return to default center
- Proper cleanup with onBeforeUnmount for observers and intervals

Behavior:
- User changes field → marker updates immediately
- User drags marker → fields update immediately
- User clicks "Supprimer" → marker returns to saved position
- Fields cleared → marker disappears, map resets to default center

Technical Details:
- MutationObserver watches 'value' attribute on lat/lon inputs
- Polling checks every 500ms for changes missed by events
- Watcher uses nextTick() to ensure DOM updates complete
- All event listeners and observers properly cleaned up on unmount

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-29 14:34:28 +01:00
..
accounts init with kirby, vue and pagedjs interactive 2025-11-24 14:01:48 +01:00
blueprints fix: implement form-based coordinate sync for single mode map 2026-01-29 14:17:01 +01:00
cache init with kirby, vue and pagedjs interactive 2025-11-24 14:01:48 +01:00
plugins fix: add polling and reset handling for single mode coordinates 2026-01-29 14:34:28 +01:00
sessions init with kirby, vue and pagedjs interactive 2025-11-24 14:01:48 +01:00
snippets feat: add custom CSS save system with dual-editor interface 2026-01-09 13:39:25 +01:00
templates feat: add custom CSS save system with dual-editor interface 2026-01-09 13:39:25 +01:00