Skip to content

Feat: Add media support to dive route markers and enhance preview UI#170

Merged
kargig merged 1 commit intomainfrom
dive_route_media
Jan 21, 2026
Merged

Feat: Add media support to dive route markers and enhance preview UI#170
kargig merged 1 commit intomainfrom
dive_route_media

Conversation

@kargig
Copy link
Owner

@kargig kargig commented Jan 21, 2026

Implement the ability to attach photos, videos, or YouTube links to custom route markers. This includes a complete UI for selection, robust data persistence, and specialized handling for different media types.

Key changes:

  • Implement MarkerModal media tab for selecting site or external media.
  • Ensure all media properties are persisted in GeoJSON and restored correctly during route edits.
  • Implement robust video previews using <video> elements with forced frame rendering (0.1s seek) and hover-to-play functionality.
  • Fix NotAllowedError in browsers by safely catching video play promises on hover.
  • Add specialized YouTube handling using generated thumbnails to fix CORB/ORB errors and improve loading performance.
  • Enhance the marker editor UI with permanent descriptive overlays on media items for easier identification.
  • Update RouteDetail marker popups to render images, video players, or YouTube embeds based on the attached media type.

Implement the ability to attach photos, videos, or YouTube links to
custom route markers. This includes a complete UI for selection,
robust data persistence, and specialized handling for different
media types.

Key changes:
- Implement `MarkerModal` media tab for selecting site or external media.
- Ensure all media properties are persisted in GeoJSON and restored
  correctly during route edits.
- Implement robust video previews using `<video>` elements with
  forced frame rendering (0.1s seek) and hover-to-play functionality.
- Fix `NotAllowedError` in browsers by safely catching video play
  promises on hover.
- Add specialized YouTube handling using generated thumbnails to
  fix CORB/ORB errors and improve loading performance.
- Enhance the marker editor UI with permanent descriptive overlays
  on media items for easier identification.
- Update `RouteDetail` marker popups to render images, video players,
  or YouTube embeds based on the attached media type.
@kargig kargig merged commit 488685d into main Jan 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant