From f8b053713e8b6b6ff05a17c555afed5b90e3a035 Mon Sep 17 00:00:00 2001 From: strukturart Date: Fri, 5 Jan 2024 12:28:03 +0100 Subject: [PATCH] overpass public_transport --- application/assets/js/overpass.js | 2 ++ application/index.js | 7 +++++++ application/manifest.webapp | 2 +- application/manifest.webmanifest | 2 +- 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/application/assets/js/overpass.js b/application/assets/js/overpass.js index f797b7a4..ac1518a4 100644 --- a/application/assets/js/overpass.js +++ b/application/assets/js/overpass.js @@ -49,8 +49,10 @@ const overpass = (() => { fetch(resultUrl) .then((response) => response.json()) .then(function (data) { + console.log(data); let no_data = false; data.elements.forEach((element) => { + console.log(element); if (element.type == "node") { no_data = true; let k = L.marker([element.lat, element.lon]) diff --git a/application/index.js b/application/index.js index 59e232af..b2eb22a2 100644 --- a/application/index.js +++ b/application/index.js @@ -386,6 +386,13 @@ document.addEventListener("DOMContentLoaded", function () { '
Drinking water Layer
' ); + document + .querySelector("div#overpass") + .insertAdjacentHTML( + "afterend", + '
public transport Layer
' + ); + find_gpx(); find_geojson(); load_maps(); diff --git a/application/manifest.webapp b/application/manifest.webapp index 741283b3..cc7ddc12 100644 --- a/application/manifest.webapp +++ b/application/manifest.webapp @@ -1,5 +1,5 @@ { - "version": "1.9.774", + "version": "1.9.775", "version_name": "hotline", "name": "o.map", "description": "O.map, your ultimate navigation companion for KaiOS-powered devices. O.map is a lightweight and feature-rich map application designed specifically for KaiOS, enabling you to explore and navigate the world with ease. Whether you're a local resident, a tourist, or an adventurer, O.map is here to enhance your journey and keep you on the right track.", diff --git a/application/manifest.webmanifest b/application/manifest.webmanifest index 1bb6b135..f921784a 100644 --- a/application/manifest.webmanifest +++ b/application/manifest.webmanifest @@ -21,7 +21,7 @@ ], "b2g_features": { - "version": "2.0.84", + "version": "2.0.85", "id": "o.map", "core": true, "categories": ["utilities"],