Repository navigation
Conversation
Offline vector maps from OpenFreeMap. Download an area once over Wi-Fi and use it offline from the SD card. First version (0.0.1), tested on the LilyGO T-Deck only.
|
Important Review skippedToo many files! This PR contains 132 files, which is 32 over the limit of 100. To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch. Upgrade to a paid plan to raise the limit. This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry.
|
There was a problem hiding this comment.
Could you remove the images from the docs? It's too hard for me to maintain for now.
I hope to auto-generate them in the future with a simulator in GitHub Actions.
There was a problem hiding this comment.
measurements.md and plan.md can be removed
| #include "../platform/Platform.h" | ||
| #include "../render/Raster.h" | ||
|
|
||
| #include <binfont/binfont.h> |
There was a problem hiding this comment.
Can we use binfont-module from the SDK?
| app.0.name=Maps | ||
| app.0.binary=maps | ||
| name=Maps | ||
| description=Offline vector maps from OpenFreeMap |
There was a problem hiding this comment.
Do we know if the app works without PSRAM?
If not, you can set requires.ram=2M or something similar for now.
Changelog
0.2.0
Labels, map rotation and heading-up, plus menu, list, trackball and download fixes.
Labels
follow the street and stay upright; a light halo.
has one). Names in scripts the label font has no letters for (Japanese, Chinese, Arabic and others) always
show their Latin-script name.
Vietnamese letters, so names like Štefánikova, Łódź, İstanbul, Москва or Hà Nội show fully; the device
makes the fonts from it once (about 7 s in the background on first start) and keeps them on the card.
is needed.
Rotation
north; two fingers turn it once twisted past 45° (15° when already turned), so pinching does not turn it
by accident.
moving faster than about 1 m/s, smoothed, held when slower) → not following.
works north up.
Menu and lists
swipe right goes back; lists open without a highlight until a key, the trackball or the encoder moves.
Trackball and touch
(Slow / Normal / Fast).
list scrolls it.
Waypoints
suggested name. All pins are the same size.
Downloads
Cancel, speed and time left.
one downloading finishes).
stays 10 s.
finished one says so.
Fixes
that size. Tiles now download in 64 KB pieces, and the tile cache lends memory when even a piece does not fit.
0.1.0
Idle updates, named regions, waypoints, track recording and GPX files, plus smooth zoom.
Zoom
tapped point), then the sharp map appears. Pinch scales live as before.
Regions and downloads
from Geofabrik's list, shipped with the app. "All of …" downloads a whole region.
tile count, size and zoom shown before you confirm. Only tiles inside the region's outline are fetched.
Regions screen shows the names; R renames (keyboard). Folders keep 8.3 names.
first, with an "Updating 42%" label. Any input pauses it and it continues later, also after a restart.
Only on Wi-Fi, and while charging or above 40 % battery.
handshake each time.
Waypoints
WP 002, …, shown as pins at every zoom level.
distance; Enter or tap goes there, R renames, Del or hold deletes after asking.
waypoints.gpx(GPX 1.1) in the app's folder on the card.Tracks
distance when the controls are shown.
skipped. The track is drawn as a red line.
tracks/YYYYMMDD-HHMM.gpxevery 30 s, so a crash loses at most 30 s. "Recorded tracks" liststhe files with their folder.
GPX files
.gpxfiles into/sdcard/gpx. Menu → GPX files shows or hides them..gpccopy is kept next to each file.A 50,000-point track was tested on the PC, not yet on the device.
Trackball
highlighted, and it hides after 3 s without movement.
Displays
patterns, outlined buildings, no grey. Checked in renders on the PC only.
Requirements
0.0.1 (proof of concept)
The first public version: an offline vector map for Tactility, tested on the LilyGO T-Deck.
Map
waterways, roads with casings, railways, boundaries and airports, anti-aliased.
follow mode (G or ⌖). The app never changes location settings.
About and licences.
pointer for the trackball in mouse mode.
Downloads
and the highest zoom that fits OpenFreeMap's 3,000-tile / 50 MB limit.
written as
.tmpand renamed. Downloads resume after a restart, areas share tiles, and the download stops at50 MB of real data.
in the region "browsed".
Speed
.prt) next to each.pbf: only what the style draws, quantised to 2048 units per tile,deflated. About a fifth of the size, half the render time. Converted in idle time.
tiles, and prefetch only after a second without input.
Known limits
region updates yet.