Android's share sheet (OsmAnd, Locus, mapy.com, ...) can now send GPX/FIT/GeoJSON/ZIP files to the installed app: the service worker parks them and the page offers to import them into a Tracks & Points folder, waiting through a login if needed. Manifest, app icon, a server-side fallback for /share-target. docs/library-design.adoc proposes replacing the file-based GpxStore with folders and items (stable ids, timestamps, tombstones, a change feed) as the base for syncing with OsmAnd and Locus.
36 lines
1.0 KiB
JSON
36 lines
1.0 KiB
JSON
{
|
|
"name": "MapTool",
|
|
"short_name": "MapTool",
|
|
"description": "Offline maps, tracks and points for the van",
|
|
"start_url": "/",
|
|
"scope": "/",
|
|
"display": "standalone",
|
|
"background_color": "#1a1a1a",
|
|
"theme_color": "#1a1a1a",
|
|
"icons": [
|
|
{ "src": "/icons/icon-192.png", "sizes": "192x192", "type": "image/png" },
|
|
{ "src": "/icons/icon-512.png", "sizes": "512x512", "type": "image/png" },
|
|
{ "src": "/icons/icon-512.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable" }
|
|
],
|
|
"share_target": {
|
|
"action": "/share-target",
|
|
"method": "POST",
|
|
"enctype": "multipart/form-data",
|
|
"params": {
|
|
"files": [
|
|
{
|
|
"name": "file",
|
|
"accept": [
|
|
"application/gpx+xml", ".gpx",
|
|
"application/geo+json", "application/json", ".geojson",
|
|
"application/zip", ".zip",
|
|
".fit", "application/vnd.ant.fit",
|
|
"application/xml", "text/xml",
|
|
"application/octet-stream"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|