Skip to content

Commit

Permalink
overpass public_transport
Browse files Browse the repository at this point in the history
  • Loading branch information
strukturart committed Jan 5, 2024
1 parent 9914c12 commit f8b0537
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
2 changes: 2 additions & 0 deletions application/assets/js/overpass.js
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down
7 changes: 7 additions & 0 deletions application/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,13 @@ document.addEventListener("DOMContentLoaded", function () {
'<div class="item" data-type="overpass" data-url="water" data-map="water">Drinking water <i>Layer</i></div>'
);

document
.querySelector("div#overpass")
.insertAdjacentHTML(
"afterend",
'<div class="item" data-type="overpass" data-url="public_transport" data-map="public_transport">public transport <i>Layer</i></div>'
);

find_gpx();
find_geojson();
load_maps();
Expand Down
2 changes: 1 addition & 1 deletion application/manifest.webapp
Original file line number Diff line number Diff line change
@@ -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.",
Expand Down
2 changes: 1 addition & 1 deletion application/manifest.webmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
],

"b2g_features": {
"version": "2.0.84",
"version": "2.0.85",
"id": "o.map",
"core": true,
"categories": ["utilities"],
Expand Down

0 comments on commit f8b0537

Please sign in to comment.