fix(gps-tracks): normalise GeoJSON props, add health fields, OSM meta fetch, z-order fix
Some checks failed
CI / lint (push) Failing after 4s
CI / test (push) Failing after 4s
CI / build (push) Has been skipped
CI / lint (pull_request) Failing after 3s
CI / test (pull_request) Failing after 4s
CI / build (pull_request) Has been skipped

Refs: ET-008

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-01 12:42:36 +00:00
parent 37190049db
commit edbe9a3044
5 changed files with 255 additions and 1 deletions

View File

@@ -191,7 +191,11 @@ function _ensureGpsLayers(map) {
function _findGpsInsertPosition(map) {
const style = map.getStyle && map.getStyle();
if (!style || !style.layers) return undefined;
const routeLayer = style.layers.find(l => l.id === 'route-line' || l.id.startsWith('route-'));
const routeLayer = style.layers.find(l =>
l.id === 'route-line' ||
l.id.startsWith('route-') ||
l.id.startsWith('gpx-layer-')
);
return routeLayer ? routeLayer.id : undefined;
}