5/// Single source of truth for the Plan View map editing layers. Used by the
6/// layer switcher (PlanView), the plan tree view group headers, and the map
9 readonly property int layerMission: 1
10 readonly property int layerFence: 2
11 readonly property int layerRally: 3
13 readonly property var layerInfos: [
14 { layer: layerMission, nodeType: "missionGroup", icon: "/res/waypoint.svg", name: qsTr("Mission") },
15 { layer: layerFence, nodeType: "fenceGroup", icon: "/res/GeoFence.svg", name: qsTr("GeoFence") },
16 { layer: layerRally, nodeType: "rallyGroup", icon: "/res/RallyPoint.svg", name: qsTr("Rally Points") }
19 function infoForNodeType(nodeType) {
20 return layerInfos.find(l => l.nodeType === nodeType) ?? null