From d666f15b00089448485d3fff2dcea9648ca19565 Mon Sep 17 00:00:00 2001 From: Chandler Swift Date: Sun, 9 Nov 2025 14:35:57 -0600 Subject: [PATCH] Rename "tree" stands to "ladder" stands --- data/data.json | 10 +++++----- map.html | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 5 deletions(-) diff --git a/data/data.json b/data/data.json index 2a2bcb7..d784997 100644 --- a/data/data.json +++ b/data/data.json @@ -49,7 +49,7 @@ { "name": "Ladder", "image": "ladder.jpg", - "type": "tree", + "type": "ladder", "view": [ "ladder1.jpg", "ladder2.jpg", @@ -109,7 +109,7 @@ { "name": "Mile-high stand (TODO: rename)", "image": "irontree.jpg", - "type": "tree", + "type": "ladder", "view": [ "irontree1.jpg", "irontree2.jpg" @@ -141,7 +141,7 @@ { "name": "Hummock", "image": "hummock.jpg", - "type": "tree", + "type": "ladder", "active": false, "view": [ "hummock1.jpg", @@ -156,7 +156,7 @@ { "name": "Sofa", "image": "sofa.jpg", - "type": "tree", + "type": "ladder", "view": [ "sofa1.jpg", "sofa2.jpg", @@ -172,7 +172,7 @@ { "name": "Ridge", "image": "ridge.jpg", - "type": "tree", + "type": "ladder", "view": [ "ridge1.jpg", "ridge2.jpg" diff --git a/map.html b/map.html index 0b2cc10..52bde47 100644 --- a/map.html +++ b/map.html @@ -124,6 +124,26 @@ user-select: none; } /* END lightbox */ + + /* BEGIN legend */ + .legend { + padding: 6px 8px; + font: 14px/16px Arial, Helvetica, sans-serif; + background: white; + background: rgba(255,255,255,0.8); + box-shadow: 0 0 15px rgba(0,0,0,0.2); + border-radius: 5px; + line-height: 18px; + color: #555; + } + .legend i { + width: 18px; + height: 18px; + float: left; + margin-right: 8px; + opacity: 0.7; + } + /* END legend */ @@ -367,6 +387,24 @@ } } + const legend = L.control({position: 'bottomright'}); + legend.onAdd = function (map) { + const div = L.DomUtil.create('div', 'legend'); + div.innerHTML = ` + Road
+ Trail
+ Shooting lane
+ Castle stand
+ Ladder stand
+ Barrel stand
+ Shack
+ Outhouse
+ Fruit tree + `; + return div; + }; + legend.addTo(map); + map.fitBounds([ [47.4865,-93.4068], [47.4992,-93.3746],