Skip to content

Commit

Permalink
map zoom
Browse files Browse the repository at this point in the history
  • Loading branch information
strukturart committed Aug 22, 2024
1 parent 935a3a8 commit 553592c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
4 changes: 3 additions & 1 deletion application/assets/js/maps.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,9 @@ const maps = (() => {
crossOrigin: true,
cacheMaxAge: caching_time,
useOnlyCache: useOnlyCache,
maxZoom: max_zoom,
maxZoom: 20,
maxNativeZoom: max_zoom,

attribution: attribution,
format: "image/png",
transparent: true,
Expand Down
4 changes: 3 additions & 1 deletion docs/assets/js/maps.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,9 @@ const maps = (() => {
crossOrigin: true,
cacheMaxAge: caching_time,
useOnlyCache: useOnlyCache,
maxZoom: max_zoom,
maxZoom: 20,
maxNativeZoom: max_zoom,

attribution: attribution,
format: "image/png",
transparent: true,
Expand Down
16 changes: 16 additions & 0 deletions docs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,13 @@ document.addEventListener("DOMContentLoaded", function () {
'<div class="item" data-type="overpass" data-url="amenity=shelter,shelter_type!=public_transport">Shelter</div>'
);

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

find_gpx();
find_geojson();
load_maps();
Expand Down Expand Up @@ -2919,6 +2926,15 @@ document.addEventListener("DOMContentLoaded", function () {
document.addEventListener("keydown", handleKeyDown);
document.addEventListener("keyup", handleKeyUp);
});
//mozActivity
//open app
try {
navigator.mozSetMessageHandler("activity", function (activityRequest) {
console.log(activityRequest.source);
});
} catch (e) {}

//debugger helper

if (debug) {
window.onerror = function (msg, url, linenumber) {
Expand Down

0 comments on commit 553592c

Please sign in to comment.