Skip to content

Route overlay from a GPX, packed alongside the map #9

Description

@Chemaclass

From the README roadmap. Show a planned route on the map, packed alongside it.

A route is a single polyline. The packer already knows how to project, simplify
and quantise one, so most of this is plumbing rather than new geometry code:
read a GPX, run it through the same geom path, and emit it as its own layer.

Shape

  • --gpx route.gpx on the packer, emitted as a dedicated layer id above the
    road layers so it draws on top.
  • A palette slot for it. That means a new layer id, which is invariant 2 in
    CLAUDE.md: classify.py's L_* and Palette.mc must move together, and
    preview.py parses the palette at runtime.
  • No new format version if it is just another layer, which is the appeal of
    doing it this way.

Open question

Whether the route belongs in the map pack at all, or in Storage like a
waypoint (#8). Compiled in means repacking to change your route, which is a
poor fit for something you change per outing. Storage means a second data path
on the watch. The second is more useful and more work.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestmap-formatThe MapPack binary format and its three implementationspackerThe Python map packer, tools/mappack

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions