Skip to content

Commit

Permalink
POI
Browse files Browse the repository at this point in the history
  • Loading branch information
strukturart committed Jun 21, 2024
1 parent 40b3668 commit 49c085d
Show file tree
Hide file tree
Showing 10 changed files with 78 additions and 14 deletions.
1 change: 0 additions & 1 deletion application/assets/js/maps.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ const maps = (() => {
let overlayer = "";

let addMap = function (url, attribution, max_zoom, type, marker) {
console.log(general.active_layer);
if (attribution == null) attribution = "";
if (max_zoom == null) max_zoom = 17;
//remove layer
Expand Down
2 changes: 1 addition & 1 deletion application/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ <h2>MAPS</h2>
<h2>LAYERS</h2>
<div id="layers"></div>

<h2>OVERPASS</h2>
<h2>POI</h2>
<div id="overpass"></div>
</div>

Expand Down
39 changes: 36 additions & 3 deletions application/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,14 +370,48 @@ document.addEventListener("DOMContentLoaded", function () {
.querySelector("div#overpass")
.insertAdjacentHTML(
"afterend",
'<div class="item" data-type="overpass" data-url="water" data-map="water">Drinking water <i>Layer</i></div>'
'<div class="item" data-marker="public_transport" data-type="overpass" data-url="public_transport=stop_position" data-map="public_transport">Public transport</div>'
);

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

document
.querySelector("div#overpass")
.insertAdjacentHTML(
"afterend",
'<div class="item" data-type="overpass" data-url="water">Drinking water</div>'
);

document
.querySelector("div#overpass")
.insertAdjacentHTML(
"afterend",
'<div class="item" data-type="overpass" data-url="tourism=camp_site">Camping</div>'
);

document
.querySelector("div#overpass")
.insertAdjacentHTML(
"afterend",
'<div class="item" data-type="overpass" data-url="tourism=hotel">Hotel</div>'
);
document
.querySelector("div#overpass")
.insertAdjacentHTML(
"afterend",
'<div class="item" data-type="overpass" data-url="amenity=restaurant">Restaurant</div>'
);

document
.querySelector("div#overpass")
.insertAdjacentHTML(
"afterend",
'<div class="item" data-type="overpass" data-url="amenity=bar">Bar</div>'
);

find_gpx();
Expand Down Expand Up @@ -1939,7 +1973,6 @@ document.addEventListener("DOMContentLoaded", function () {

let b = document.activeElement.closest("div.menu-box");
let items_list = b.querySelectorAll(".item");
console.log(items_list.length);

if (move == "+1") {
if (tabIndex < items_list.length - 1) {
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.792",
"version": "1.9.793",
"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.96",
"version": "2.0.97",
"id": "o.map",
"core": true,
"categories": ["utilities"],
Expand Down
1 change: 0 additions & 1 deletion docs/assets/js/maps.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ const maps = (() => {
let overlayer = "";

let addMap = function (url, attribution, max_zoom, type, marker) {
console.log(general.active_layer);
if (attribution == null) attribution = "";
if (max_zoom == null) max_zoom = 17;
//remove layer
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ <h2>MAPS</h2>
<h2>LAYERS</h2>
<div id="layers"></div>

<h2>OVERPASS</h2>
<h2>POI</h2>
<div id="overpass"></div>
</div>

Expand Down
39 changes: 36 additions & 3 deletions docs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,14 +370,48 @@ document.addEventListener("DOMContentLoaded", function () {
.querySelector("div#overpass")
.insertAdjacentHTML(
"afterend",
'<div class="item" data-type="overpass" data-url="water" data-map="water">Drinking water <i>Layer</i></div>'
'<div class="item" data-marker="public_transport" data-type="overpass" data-url="public_transport=stop_position" data-map="public_transport">Public transport</div>'
);

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

document
.querySelector("div#overpass")
.insertAdjacentHTML(
"afterend",
'<div class="item" data-type="overpass" data-url="water">Drinking water</div>'
);

document
.querySelector("div#overpass")
.insertAdjacentHTML(
"afterend",
'<div class="item" data-type="overpass" data-url="tourism=camp_site">Camping</div>'
);

document
.querySelector("div#overpass")
.insertAdjacentHTML(
"afterend",
'<div class="item" data-type="overpass" data-url="tourism=hotel">Hotel</div>'
);
document
.querySelector("div#overpass")
.insertAdjacentHTML(
"afterend",
'<div class="item" data-type="overpass" data-url="amenity=restaurant">Restaurant</div>'
);

document
.querySelector("div#overpass")
.insertAdjacentHTML(
"afterend",
'<div class="item" data-type="overpass" data-url="amenity=bar">Bar</div>'
);

find_gpx();
Expand Down Expand Up @@ -1939,7 +1973,6 @@ document.addEventListener("DOMContentLoaded", function () {

let b = document.activeElement.closest("div.menu-box");
let items_list = b.querySelectorAll(".item");
console.log(items_list.length);

if (move == "+1") {
if (tabIndex < items_list.length - 1) {
Expand Down
2 changes: 1 addition & 1 deletion docs/manifest.webapp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.9.792",
"version": "1.9.793",
"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 docs/manifest.webmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
],

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

0 comments on commit 49c085d

Please sign in to comment.