Add POI to layer toggles

This commit is contained in:
Pyro Nicampt committed 2024-12-28 22:12:02 -06:00
1 parent 62a1072a65
commit cd77240401
3 files changed
+28 -2

No files matched your search

+1 -1
View File
@@ -557,7 +557,7 @@ function addPoi(poi, level = 0){
poiIcon.setAttribute('href', '#mrk_landmark'); poiIcon.setAttribute('href', '#mrk_landmark');
poiDisplay.setAttribute('fill', '#af5757'); poiDisplay.setAttribute('fill', '#af5757');
poiTooltip.innerHTML = poi.name ?? 'Unknown Landmark'; poiTooltip.innerHTML = poi.name ?? 'Unknown Landmark';
poiLayers.service.prepend(poiElement); poiLayers.landmarks.prepend(poiElement);
poiElement.classList.add('minZoomCull_1'); poiElement.classList.add('minZoomCull_1');
break; break;
case 'shop': case 'shop':
+26
View File
@@ -30,6 +30,32 @@ let settingEntries = [
} }
], ],
}, },
{
label: 'Points of Interest',
id: 'toggle_poi',
state: true,
func: state => {
document.getElementById('poi_container').style.display = state ? 'unset' : 'none';
},
children: [
{
label: 'Services',
id: 'toggle_services',
state: true,
func: state =>{
document.getElementById('poi_service').style.display = state ? 'unset' : 'none';
},
},
{
label: 'Landmarks',
id: 'toggle_landmarks',
state: true,
func: state =>{
document.getElementById('poi_landmarks').style.display = state ? 'unset' : 'none';
},
},
]
},
{ {
label: 'Track Color', label: 'Track Color',
id: 'radio_trackColor', id: 'radio_trackColor',
+1 -1
View File
@@ -81,7 +81,7 @@ a:visited{
font-size: 15px; font-size: 15px;
display: flex; display: flex;
flex-flow: column wrap; flex-flow: column wrap;
max-height: 350px; max-height: 310px;
} }
#footer{ #footer{