Rename "tree" stands to "ladder" stands

This commit is contained in:
Chandler Swift 2025-11-09 14:35:57 -06:00
parent f4139723e5
commit d666f15b00
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F
2 changed files with 43 additions and 5 deletions

View file

@ -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"

View file

@ -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 */
</style>
</head>
<body>
@ -367,6 +387,24 @@
}
}
const legend = L.control({position: 'bottomright'});
legend.onAdd = function (map) {
const div = L.DomUtil.create('div', 'legend');
div.innerHTML = `
<i class="road"></i> Road<br>
<i class="trail"></i> Trail<br>
<i class="shooting_lane"></i> Shooting lane<br>
<i class="castle"></i> Castle stand<br>
<i class="ladder"></i> Ladder stand<br>
<i class="barrel"></i> Barrel stand<br>
<i class="shack"></i> Shack<br>
<i class="outhouse"></i> Outhouse<br>
<i class="fruit tree"></i> Fruit tree
`;
return div;
};
legend.addTo(map);
map.fitBounds([
[47.4865,-93.4068],
[47.4992,-93.3746],