Add POI to layer toggles
This commit is contained in:
1 parent
62a1072a65
commit
cd77240401
3 files changed
+28
-2
No files matched your search
@@ -557,7 +557,7 @@ function addPoi(poi, level = 0){
|
||||
poiIcon.setAttribute('href', '#mrk_landmark');
|
||||
poiDisplay.setAttribute('fill', '#af5757');
|
||||
poiTooltip.innerHTML = poi.name ?? 'Unknown Landmark';
|
||||
poiLayers.service.prepend(poiElement);
|
||||
poiLayers.landmarks.prepend(poiElement);
|
||||
poiElement.classList.add('minZoomCull_1');
|
||||
break;
|
||||
case 'shop':
|
||||
|
||||
@@ -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',
|
||||
id: 'radio_trackColor',
|
||||
|
||||
Reference in new issue
Block a user