project-nomad/admin/inertia/components/maps
Chris Sherwood 54cd133231 Merge PR #802 (kennethbrewer3) - feat(maps): add details on marker
Resolved 2 conflicts arising from #786 + #802 both restructuring map UX.

ScaleUnitToggle.tsx:
  - Combined #786's onMouseEnter prop (essential for hide-coords-over-controls)
    with #802's cursor-pointer styling and `if (scaleUnit !== X)` guards.
  - Kept Tailwind classes (codebase convention) over #802's inline styles.

MapComponent.tsx:
  - Layered #786's cursor/coords/dragging UX on top of #802's componentized
    marker structure (MapMarkerFormPopup, ViewMapMarkerPopup).
  - Dropped #786's inline marker form (markerName/markerColor state +
    handleSaveMarker) — superseded by #802's MapMarkerFormPopup which
    manages its own form state.
  - Used #802's handleMapClick (calls confirmDiscardMarkerChanges) instead
    of #786's simple version.
  - Added '.maplibregl-popup' to both control selectors so #786's
    hide-coords-over-controls UX naturally extends to popups without
    requiring changes to #802's popup components.
  - Kept all of #786's drag/cursor handlers on <Map> (onMouseDown/Up/
    DragStart/End/MouseMove/MouseLeave + cursor='grabbing'/'crosshair').
  - Kept #802's editingMarkerId / hasUnsavedMarkerChanges state for the
    edit flow.
2026-04-30 14:48:13 -07:00
..
CoordinateOverlay.tsx Moved the scale unit control to its own component file for easier maintenance. Enhanced the behavior of the coordinate display on the map to not display when over the on screen controls, and the navigation bar. Added a toggle to turn off the coordinate display if the user doesn't wish to see it. Intentionally left the coordinate display when over a map marker so that the coordinates of the map marker can be estimated. In the future I intend to add the coordinates of a map marker when the map marker is clicked so that behavior may change in the future. 2026-04-25 04:18:49 -04:00
MapComponent.tsx Merge PR #802 (kennethbrewer3) - feat(maps): add details on marker 2026-04-30 14:48:13 -07:00
MapMarkerFormPopup.tsx Addressed further pr comments about the api, onSave async, and adding a comment about rehypeRaw 2026-04-29 02:57:37 -04:00
MarkerPanel.tsx Addressed PR comments about the textarea auto growing, the in flight notes changes asking for confirmation, and updated the hue sort to sort by lightness and then hue so that grayscale values will not collide with red 2026-04-29 02:13:43 -04:00
MarkerPin.tsx feat(maps): add scale bar and location markers (#636) 2026-04-03 14:26:50 -07:00
ScaleUnitToggle.tsx Merge PR #802 (kennethbrewer3) - feat(maps): add details on marker 2026-04-30 14:48:13 -07:00
ViewMapMarkerPopup.tsx Addressed further pr comments about the api, onSave async, and adding a comment about rehypeRaw 2026-04-29 02:57:37 -04:00