Commit Graph

27 Commits

Author SHA1 Message Date
Kenneth Brewer 38c4dc3fd4 Added font awesome icons to the map markers 2026-05-06 03:53:52 -04:00
Kenneth Brewer 3b068eceb0 merged in map markers in tree and renamed the ScaleUnitToggle to ScaleUnitSelector 2026-05-06 01:59:34 -04:00
Kenneth Brewer f5b881ac95 merged in map-marker-customizations 2026-05-06 01:10:40 -04:00
Kenneth Brewer eca3184927 merged in map-marker-point-inaccurate and map-url-params 2026-05-06 01:01:35 -04:00
Kenneth Brewer a452366078 merged in dev and fixed conflicts 2026-05-05 17:13:39 -04:00
Chris Sherwood 63282565a9 fix(Maps): render notes in marker popup when populated
Closes #796.

The maps API has accepted and persisted `notes` on map markers since
PR #770, but the marker popup component still rendered name only and
ignored the field. Now the popup shows a notes block beneath the name
when it's populated, with whitespace preserved and long text wrapped.

Threaded `notes` through the read path:
- `api.listMapMarkers` / `api.createMapMarker` response types
- `MapMarker` interface in `useMapMarkers` and the data.map projection
- `MapComponent`'s selectedMarker popup

The create/update UI is unchanged — users still set notes via the API
or DB directly, matching the issue's stated scope. A marker entry with
empty/whitespace-only notes renders the same as before.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-05 10:38:56 -07:00
Kenneth Brewer a2f3a84446
feat(maps): show map coordinates on mouse move (#786)
* feat: Updated the map to show the coordinates as the user moves the cursor over the map. Changed the cursor to a crosshairs to make it easier to place map markers.

* 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.
---------

Co-authored-by: Kenneth Brewer <kennethbrewer3@protonmail.com>
2026-05-03 14:11:03 -07:00
Kenneth Brewer 1af0faf279 Set up map markers to now be able to toggle the visiblity, provide a custom color, and a custom icon. 2026-05-01 22:13:06 -04:00
Kenneth Brewer b4d23bf91b Added a temporary marker when the user flies to a location. It will disappear when the add map marker button is clicked. 2026-04-30 03:21:40 -04:00
Kenneth Brewer d9a6d58d93 Added search box. Allows the user to fly to the location or fly to and add a marker. There are some bugs that need to be fixed. 2026-04-29 13:48:15 -04:00
Kenneth Brewer 3ee89bc440 merged in add-details-on-marker and fixed conflicts 2026-04-29 12:23:57 -04:00
Kenneth Brewer 8b3eda9eec fixed merge conflicts 2026-04-29 12:01:26 -04:00
Kenneth Brewer c865b5e2a2 merged show map coordinates 2026-04-29 11:15:09 -04:00
Kenneth Brewer b0e62ebae1 removed redundant code 2026-04-29 11:11:09 -04:00
Kenneth Brewer ff764e2b2d Addressed further pr comments about the api, onSave async, and adding a comment about rehypeRaw 2026-04-29 10:22:18 -04:00
Kenneth Brewer 2f00db362d Addressed further pr comments about the api, onSave async, and adding a comment about rehypeRaw 2026-04-29 02:57:37 -04:00
Kenneth Brewer aad4d2af7c 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
Kenneth Brewer a09d945b41 changed the color sort to use hue so that when custom colors are introduced it will sort in a way that is logically consistent. 2026-04-28 10:03:38 -04:00
Kenneth Brewer 596d9f7172 Updated the map markers so they can be edited as well as to permit markdown in the notes field. 2026-04-27 16:02:21 -04:00
Kenneth Brewer 5a55c8e632 Initial commit for being able to add notes on map markers and display them 2026-04-26 23:08:55 -04:00
Kenneth Brewer 1d7c40c37b 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
Kenneth Brewer 732296d179 feat: Updated the map to show the coordinates as the user moves the cursor over the map. Changed the cursor to a crosshairs to make it easier to place map markers. 2026-04-25 03:41:02 -04:00
chriscrosstalk a813468949 feat(maps): add imperial/metric toggle for scale bar (#641)
Defaults to metric for global audience. Persists choice in localStorage.
Segmented button styled to match MapLibre controls.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 14:26:50 -07:00
chriscrosstalk 0183b42d71 feat(maps): add scale bar and location markers (#636)
Add distance scale bar and user-placed location pins to the offline maps viewer.

- Scale bar (bottom-left) shows distance reference that updates with zoom level
- Click anywhere on map to place a named pin with color selection (6 colors)
- Collapsible "Saved Locations" panel lists all pins with fly-to navigation
- Full dark mode support for popups and panel via CSS overrides
- New `map_markers` table with future-proofed columns for routing (marker_type,
  route_id, route_order, notes) to avoid a migration when routes are added later
- CRUD endpoints: GET/POST /api/maps/markers, PATCH/DELETE /api/maps/markers/:id
- VineJS validation on create/update
- MapMarker Lucid model

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 14:26:50 -07:00
Jake Turner 9220b4b83d fix(maps): respect request protocol for reverse proxy HTTPS support 2026-03-20 11:46:10 -07:00
Jake Turner 52e90041f4 feat(Maps): maps use full page by default 2026-02-04 21:54:36 -08:00
Jake Turner 12a6f2230d
feat: [wip] new maps system 2025-11-30 22:29:16 -08:00