Skip to content

Conversation

JimMargolis
Copy link
Collaborator

@JimMargolis JimMargolis commented Dec 6, 2024

Adds a prototype WaypointDataSource for Mapbox 10 (v10.19.0). Closes GIOS-1061.

The goal here was to:

  1. Figure out how to use CustomGeometrySource
  2. Figure out a performant way to fetch and display waypoints

Notes:

  • Adds the MarkerDecoration enum from the Gaia GPS TrailTracker project so that we can simulate loading a variety of waypoint images.
  • Adds WaypointManager and WaypointDataSource classes. WaypointManager simulates fetching the waypoints from CoreData. WaypointDataSource supplies the waypoints layer to the MapView.
  • Adds a Math class with helper methods like getting a bounding box from a Tile ID (copied over from AnnasMath in the TrailTracker project).

Future Work:

  • Adding an individual waypoint and prototyping the tap drawer can be done in separate PRs on top of this branch.
  • Clustering logic for when the map is zoomed out in an area with many waypoints still needs to be implemented. See WaypointDataSource.swift:84 in TrailTracker for our current implementation.
ScreenRecording_12-06-2024.11-16-42_1.MP4

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