<template>
  <div class="right-menu">
    <div class="menu-container">
      <div style="position: relative; margin-top: 60px; display: inline-block; vertical-align: top">
        <div ref="scrollListRef" :class="!menuState.showMenu ? 'menu-list' : 'menu-list menu-list-right'">
          <div
            v-for="(item, index) in menuState.menuData"
            :key="index"
            :class="menuState.activeIndex === index ? 'menu-item menu-active' : 'menu-item'"
            style="pointer-events: auto"
            @click="clickMenu(index)"
          >
            <div :class="item.meta?.icon + ' ' + item.meta?.icon + '_checked'"></div>
            <div class="gradient-text text">{{ item.name }}</div>
          </div>
        </div>
        <div
          v-show="menuState.menuData.length > 0"
          :class="menuState.showMenu ? 'right-btn' : 'left-btn'"
          style="pointer-events: auto"
          @click="clickContractMenu"
        ></div>
        <div v-show="menuState.menuData.length > 9" class="btn-box" style="pointer-events: auto">
          <div class="up-btn" @click="clickBtn('up')"></div>
          <div class="down-btn" @click="clickBtn('down')"></div>
        </div>
      </div>
      <div v-show="menuState.showMenu && menuState.menuData.length > 0" style="display: inline-block; pointer-events: auto; position: relative">
        <div class="fold-btn" @click="clickContractMenu">
          <i class="fold-icon" />
          折叠菜单
        </div>
        <!--图层分析-->
        <LayerAnalysis v-if="handleIf('图层分析')" v-show="menuState.showMenu && menuState.menuData[menuState.activeIndex]?.name === '图层分析'" />
        <!--空间分析-->
        <SpatialAnalysis
          v-if="handleIf('空间分析')"
          v-show="menuState.showMenu && menuState.menuData[menuState.activeIndex]?.name === '空间分析'"
          :update-location="location"
          @handle-menu="handleMenu"
        />
        <!--江湖河库-->
        <Reservoir v-if="handleIf('江湖河库')" v-show="menuState.showMenu && menuState.menuData[menuState.activeIndex]?.name === '江湖河库'" />
        <!--路网视频-->
        <RoadNetworkVideo v-if="handleIf('路网视频')" v-show="menuState.showMenu && menuState.menuData[menuState.activeIndex]?.name === '路网视频'" />
        <!--防溺水视频-->
        <PreventDrowning v-if="handleIf('防溺水')" v-show="menuState.showMenu && menuState.menuData[menuState.activeIndex]?.name === '防溺水'" />
        <!--水库监测-->
        <ReservoirMonitor v-if="handleIf('水库监测')" v-show="menuState.showMenu && menuState.menuData[menuState.activeIndex]?.name === '水库监测'" />
        <!--河道监测-->
        <RiverMonitor v-if="handleIf('河道监测')" v-show="menuState.showMenu && menuState.menuData[menuState.activeIndex]?.name === '河道监测'" />
        <!--省政务无人机-->
        <UAV
          v-if="handleIf('省政务无人机')"
          v-show="menuState.showMenu && menuState.menuData[menuState.activeIndex]?.name === '省政务无人机'"
          @handle-menu="handleMenu"
        />
        <!--实时标绘-->
        <OnlinePlotting v-if="handleIf('实时标绘')" v-show="menuState.showMenu && menuState.menuData[menuState.activeIndex]?.name === '实时标绘'" />
        <!--定点分析-->
        <FixedPointAnalysis
          v-if="handleIf('定点分析')"
          v-show="menuState.showMenu && menuState.menuData[menuState.activeIndex]?.name === '定点分析'"
          :location="location2"
        />
        <!--雨情监测-->
        <RainMonitor v-if="handleIf('雨情监测')" v-show="menuState.showMenu && menuState.menuData[menuState.activeIndex]?.name === '雨情监测'" />
        <!--铁塔运行监测-->
        <TowerStatus
          v-if="handleIf('铁塔运行监测')"
          v-show="menuState.showMenu && menuState.menuData[menuState.activeIndex]?.name === '铁塔运行监测'"
        />
        <!--预警信号-->
        <WarningInfo
          v-if="handleIf('预警信号')"
          v-show="menuState.showMenu && menuState.menuData[menuState.activeIndex]?.name === '预警信号'"
          @handle-menu="handleMenu"
        />
        <!--森林防火-->
        <Fireproofing
          v-if="handleIf('森林防火')"
          v-show="menuState.showMenu && menuState.menuData[menuState.activeIndex]?.name === '森林防火'"
          @handle-menu="handleMenu"
        />
        <!--森防视频-->
        <ForestDefenseVideo
          v-if="handleIf('森防视频')"
          v-show="menuState.showMenu && menuState.menuData[menuState.activeIndex]?.name === '森防视频'"
          @handle-menu="handleMenu"
        />
        <!--防灾救援-->
        <Mitigation
          v-if="handleIf('防灾救援')"
          v-show="menuState.showMenu && menuState.menuData[menuState.activeIndex]?.name === '防灾救援'"
          @handle-menu="handleMenu"
        />
        <!--交通视频-->
        <TrafficVideo
          v-if="handleIf('交通视频')"
          v-show="menuState.showMenu && menuState.menuData[menuState.activeIndex]?.name === '交通视频'"
          @handle-menu="handleMenu"
        />
        <!--交通局视频-->
        <tranBureauVideo
          v-if="handleIf('交通局视频')"
          v-show="menuState.showMenu && menuState.menuData[menuState.activeIndex]?.name === '交通局视频'"
          @handle-menu="handleMenu"
        />
        <!--易涝隐患点-->
        <PotentialFloodHazard
          v-if="handleIf('易涝隐患点')"
          v-show="menuState.showMenu && menuState.menuData[menuState.activeIndex]?.name === '易涝隐患点'"
          @handle-menu="handleMenu"
        />
        <!--通讯保障-->
        <CommunicationSupport
          v-if="handleIf('通讯保障')"
          v-show="menuState.showMenu && menuState.menuData[menuState.activeIndex]?.name === '通讯保障'"
          @handle-menu="handleMenu"
        />
        <!--手机工作平台-->
        <MobilePlatform
          v-if="handleIf('手机工作台')"
          v-show="menuState.showMenu && menuState.menuData[menuState.activeIndex]?.name === '手机工作台'"
          @handle-menu="handleMenu"
        />
        <!--重点车辆-->
        <KeyVehicles
          v-if="handleIf('重点车辆')"
          v-show="menuState.showMenu && menuState.menuData[menuState.activeIndex]?.name === '重点车辆'"
          @handle-menu="handleMenu"
        />
        <!--卫星电话-->
        <SatellitePhone
          v-if="handleIf('卫星电话')"
          v-show="menuState.showMenu && menuState.menuData[menuState.activeIndex]?.name === '卫星电话'"
          @handle-menu="handleMenu"
        />
        <!--机动无人机-->
        <MobileUnmannedVehicle
          v-if="handleIf('机动无人机')"
          v-show="menuState.showMenu && menuState.menuData[menuState.activeIndex]?.name === '机动无人机'"
          @handle-menu="handleMenu"
        />
        <!--移动指挥车-->
        <MobileCommandVehicle
          v-if="handleIf('移动指挥车')"
          v-show="menuState.showMenu && menuState.menuData[menuState.activeIndex]?.name === '移动指挥车'"
          @handle-menu="handleMenu"
        />
        <!--直升机-->
        <Helicopter
          v-if="handleIf('直升机')"
          v-show="menuState.showMenu && menuState.menuData[menuState.activeIndex]?.name === '直升机'"
          @handle-menu="handleMenu"
        />
        <!--台风视频-->
        <TyphoonVideo
          v-if="handleIf('台风视频')"
          v-show="menuState.showMenu && menuState.menuData[menuState.activeIndex]?.name === '台风视频'"
          @handle-menu="handleMenu"
        />
        <RescueTeam v-if="handleIf('救援队伍')" v-show="menuState.showMenu && menuState.menuData[menuState.activeIndex]?.name === '救援队伍'" />
        <WindMonitor v-if="handleIf('大风监测')" v-show="menuState.showMenu && menuState.menuData[menuState.activeIndex]?.name === '大风监测'" />
        <!--图像资源下视频通用组件-->
        <CommonVideo
          v-if="
            !!menuState.menuData[menuState.activeIndex]?.isVideo &&
            !['路网视频', '防灾救援', '台风视频', '森防视频', '交通局视频', '江湖河库', '防溺水'].includes(
              menuState.menuData[menuState.activeIndex]?.name
            )
          "
          :id="menuState.menuData[menuState.activeIndex]?.component"
          :title="menuState.menuData[menuState.activeIndex]?.name"
        />
        <DisasterInfoOfficer
          v-if="handleIf('灾害信息员')"
          v-show="menuState.showMenu && menuState.menuData[menuState.activeIndex]?.name === '灾害信息员'"
        />
      </div>
    </div>
  </div>
</template>

<script lang="ts" setup name="rightMenu">
import RiverMonitor from './RiverMonitor.vue';
import ReservoirMonitor from './ReservoirMonitor.vue';
import RoadNetworkVideo from './RoadNetworkVideo.vue';
import Reservoir from './Reservoir.vue';
import SpatialAnalysis from './SpatialAnalysis.vue';
import LayerAnalysis from './LayerAnalysis.vue';
import OnlinePlotting from './OnlinePlotting/index.vue';
import FixedPointAnalysis from './FixedPointAnalysis.vue';
import UAV from './UAV/index.vue';
import WarningInfo from './WarningInfo.vue';
import RainMonitor from './RainMonitor/index.vue';
import PreventDrowning from './PreventDrowning.vue';
import Fireproofing from './Fireproofing.vue';
import ForestDefenseVideo from './ForestDefenseVideo/index.vue';
import Mitigation from './Mitigation.vue';
import tranBureauVideo from './tranBureauVideo.vue';
import PotentialFloodHazard from './PotentialFloodHazard.vue';
import TowerStatus from './TowerStatus.vue';
import CommunicationSupport from './CommunicationSupport.vue';
import MobilePlatform from './MobilePlatform.vue';
import KeyVehicles from './KeyVehicles.vue';
import SatellitePhone from './SatellitePhone.vue';
import MobileUnmannedVehicle from './MobileUnmannedVehicle.vue';
import MobileCommandVehicle from './MobileCommandVehicle.vue';
import Helicopter from './Helicopter.vue';
import TyphoonVideo from './TyphoonVideo.vue';
import RescueTeam from './RescueTeam.vue';
import TrafficVideo from './TrafficVideo.vue';
import WindMonitor from './WindMonitor/index.vue';
import CommonVideo from './CommonVideo.vue';
import DisasterInfoOfficer from './DisasterInfoOfficer.vue';
import useMapStore from '@/store/modules/map';

const emits = defineEmits(['update:drawing']);
const scrollListRef = ref();
const mapStore = useMapStore();
const { menuState } = storeToRefs(mapStore);

// 点击收缩展开
const clickContractMenu = () => {
  menuState.value.showMenu = !menuState.value.showMenu;
};
// 菜单上下移动
const clickBtn = (direction: string) => {
  const len = menuState.value.menuData.length;
  if (direction === 'up' && scrollListRef.value.scrollTop - 168 >= 0) {
    scrollListRef.value.scrollTop -= 168;
  } else if (direction === 'down' && scrollListRef.value.scrollTop + 168 <= 168 * len) {
    scrollListRef.value.scrollTop += 168;
  }
};
const showIndexMenu = (name) => {
  let index = menuState.value.menuData.findIndex((item) => {
    return item.name === name;
  });
  if (index > -1) {
    clickMenu(index);
  }
};
// 点击菜单
const clickMenu = (index) => {
  menuState.value.showMenu = true;
  menuState.value.activeIndex = index;
};
let location = ref([]);
let location2 = ref([]);
// 显示菜单
const handleMenu = (name, data) => {
  let index = menuState.value.menuData.findIndex((item) => {
    return item.name === name;
  });
  if (name === '空间分析') {
    menuState.value.showMenu = true;
    menuState.value.activeIndex = index;
    nextTick(() => {
      location.value = data;
    });
  } else if (index > -1) {
    clickMenu(index);
  }
};
// 新增菜单 type 1 新增 2 删除
const updateMenu = (type, menu, newLocation?: any) => {
  if (type === '1') {
    if (['图层分析', '定点分析'].includes(menu.name)) {
      let index = menuState.value.menuData.findIndex((item) => {
        return item.name === menu.name;
      });
      if (index === -1) {
        menuState.value.menuData.push(menu);
      }
      if (menu.name === '定点分析') {
        location2.value = newLocation;
      }
    } else {
      menuState.value.menuData.push(menu);
    }
    clickMenu(menuState.value.menuData.length - 1);
  } else if (type === '2') {
    let index = menuState.value.menuData.findIndex((item) => item.name === menu.name);
    if (index > -1) {
      menuState.value.menuData.splice(index, 1);
      menuState.value.activeIndex = 0;
    }
    if (menu.name === '空间分析') {
      location.value = [];
    }
  } else if (type === '4') {
    let index = menuState.value.menuData.findIndex((item) => item.name === menu.name);
    if (index > -1) {
      menuState.value.menuData.splice(index, 1);
      menuState.value.activeIndex = 0;
    }
    location2.value = newLocation;
  }
};
const handleIf = (name) => {
  let flag = false;
  let index = menuState.value.menuData.findIndex((item) => {
    return item.name === name;
  });
  if (index > -1) {
    flag = true;
  }
  return flag;
};
const getMenuState = () => {
  return menuState;
};
defineExpose({ handleMenu, showIndexMenu, clickContractMenu, updateMenu, getMenuState });
</script>

<style lang="scss" scoped>
.right-menu {
  position: absolute;
  top: 100px;
  right: 0;
  z-index: 20;
  pointer-events: none;
}
.expand-btn {
  width: 70px;
  height: 240px;
  font-size: 32px;
  background: #d7d7d7;
  padding: 10px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.menu-container {
  .menu-list-right {
    margin-right: -39px;
  }
  .menu-list {
    position: relative;
    max-height: 505px;
    overflow: hidden;
    .menu-item {
      width: 252px;
      height: 47px;
      font-size: 17px;
      padding: 0px 2px 0px 14px;
      cursor: pointer;
      display: flex;
      align-items: center;
      background: url('@/assets/images/map/rightMenu/box.png') no-repeat;
      margin-top: 10px;
      &:first-child {
        margin-top: 0;
      }
      .text {
        font-size: 18px;
      }
      &:hover {
        background: url('@/assets/images/map/rightMenu/box_checked.png') no-repeat;
      }
    }
    .menu-active {
      background: url('@/assets/images/map/rightMenu/box_checked.png') no-repeat;
    }
  }
  .left-btn,
  .right-btn {
    position: absolute;
    top: 50%;
    right: 205px;
    transform: translateY(-50%);
    z-index: 2;
  }
  .right-btn {
    width: 63px;
    height: 55px;
    cursor: pointer;
    background: url('@/assets/images/map/rightMenu/right.png') no-repeat;
    background-size: 100% 100%;
    cursor: pointer;
  }
  .left-btn {
    right: 0;
    width: 63px;
    height: 55px;
    background: url('@/assets/images/map/rightMenu/left.png') no-repeat;
    background-size: 100% 100%;
    cursor: pointer;
  }
  .btn-box {
    width: 100%;
    display: flex;
    margin-left: 45px;
    .up-btn {
      width: 38px;
      height: 45px;
      background: url('@/assets/images/map/rightMenu/up.png') no-repeat;
      background-size: 100% 100%;
      cursor: pointer;
    }
    .down-btn {
      height: 38px;
      width: 45px;
      background: url('@/assets/images/map/rightMenu/down.png') no-repeat;
      background-size: 100% 100%;
      cursor: pointer;
    }
  }
}
.fold-btn {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 10;
  width: 103px;
  height: 26px;
  background: url('@/assets/images/map/rightMenu/btn3.png') no-repeat;
  background-size: 100% 100%;
  font-size: 15px;
  color: #ffffff;
  display: flex;
  align-items: center;
  padding-left: 12px;
  cursor: pointer;
  .fold-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url('@/assets/images/map/rightMenu/fold.png') no-repeat;
    background-size: 100% 100%;
    margin-right: 6px;
  }
}
.icon1 {
  width: 32px;
  height: 30px;
  background: url('@/assets/images/map/rightMenu/icon2.png') no-repeat;
  background-size: 100% 100%;
  cursor: pointer;
}
.icon1_checked {
  background: url('@/assets/images/map/rightMenu/icon2_checked.png') no-repeat;
  background-size: 100% 100%;
}
.icon2 {
  width: 30px;
  height: 30px;
  background: url('@/assets/images/map/rightMenu/icon2.png') no-repeat;
  background-size: 100% 100%;
  cursor: pointer;
}
.icon2_checked {
  background: url('@/assets/images/map/rightMenu/icon2_checked.png') no-repeat;
  background-size: 100% 100%;
}
.icon3 {
  width: 92px;
  height: 92px;
  background: url('@/assets/images/map/rightMenu/icon3.png') no-repeat;
  cursor: pointer;
}
.icon3_checked {
  background: url('@/assets/images/map/rightMenu/icon3_checked.png') no-repeat;
}
.icon4 {
  width: 30px;
  height: 28px;
  background: url('@/assets/images/map/rightMenu/icon4.png') no-repeat;
  cursor: pointer;
}
.icon4_checked {
  background: url('@/assets/images/map/rightMenu/icon4_checked.png') no-repeat;
}
.icon5 {
  width: 30px;
  height: 27px;
  background: url('@/assets/images/map/rightMenu/icon5.png') no-repeat;
  cursor: pointer;
}
.icon5_checked {
  background: url('@/assets/images/map/rightMenu/icon5_checked.png') no-repeat;
}
.icon6 {
  width: 27px;
  height: 26px;
  background: url('@/assets/images/map/rightMenu/icon6.png') no-repeat;
  background-size: 100% 100%;
  cursor: pointer;
}
.icon6_checked {
  background: url('@/assets/images/map/rightMenu/icon6_checked.png') no-repeat;
  background-size: 100% 100%;
}
//
.icon7 {
  width: 32px;
  height: 30.5px;
  background: url('@/assets/images/map/rightMenu/icon7.png') no-repeat;
  background-size: 100% 100%;
  cursor: pointer;
}
.icon7_checked {
  background: url('@/assets/images/map/rightMenu/icon7_checked.png') no-repeat;
  background-size: 100% 100%;
}
.icon8 {
  width: 32px;
  height: 30px;
  background: url('@/assets/images/map/rightMenu/icon8.png') no-repeat;
  background-size: 100% 100%;
  cursor: pointer;
}
.icon8_checked {
  background: url('@/assets/images/map/rightMenu/icon8_checked.png') no-repeat;
  background-size: 100% 100%;
}
.icon9 {
  width: 29.5px;
  height: 28.5px;
  background: url('@/assets/images/map/rightMenu/icon9.png') no-repeat;
  background-size: 100% 100%;
  cursor: pointer;
}
.icon9_checked {
  background: url('@/assets/images/map/rightMenu/icon9_checked.png') no-repeat;
  background-size: 100% 100%;
}
.icon10 {
  width: 28.5px;
  height: 28.5px;
  background: url('@/assets/images/map/rightMenu/icon10.png') no-repeat;
  background-size: 100% 100%;
  cursor: pointer;
}
.icon10_checked {
  background: url('@/assets/images/map/rightMenu/icon10_checked.png') no-repeat;
  background-size: 100% 100%;
}
.icon11 {
  width: 30px;
  height: 28.5px;
  background: url('@/assets/images/map/rightMenu/icon11.png') no-repeat;
  background-size: 100% 100%;
  cursor: pointer;
}
.icon11_checked {
  background: url('@/assets/images/map/rightMenu/icon11_checked.png') no-repeat;
  background-size: 100% 100%;
}
.icon12 {
  width: 30px;
  height: 29px;
  background: url('@/assets/images/map/rightMenu/icon12.png') no-repeat;
  background-size: 100% 100%;
  cursor: pointer;
}
.icon12_checked {
  background: url('@/assets/images/map/rightMenu/icon12_checked.png') no-repeat;
  background-size: 100% 100%;
}
.icon13 {
  width: 30px;
  height: 30px;
  background: url('@/assets/images/map/rightMenu/icon13.png') no-repeat;
  background-size: 100% 100%;
  cursor: pointer;
}
.icon13_checked {
  background: url('@/assets/images/map/rightMenu/icon13_checked.png') no-repeat;
  background-size: 100% 100%;
}
.icon14 {
  width: 30px;
  height: 30px;
  background: url('@/assets/images/map/rightMenu/icon14.png') no-repeat;
  background-size: 100% 100%;
  cursor: pointer;
}
.icon14_checked {
  background: url('@/assets/images/map/rightMenu/icon14_checked.png') no-repeat;
  background-size: 100% 100%;
}
.icon15 {
  width: 30px;
  height: 32px;
  background: url('@/assets/images/map/rightMenu/icon15.png') no-repeat;
  background-size: 100% 100%;
  cursor: pointer;
}
.icon15_checked {
  background: url('@/assets/images/map/rightMenu/icon15_checked.png') no-repeat;
  background-size: 100% 100%;
}
.icon16 {
  width: 30px;
  height: 27px;
  background: url('@/assets/images/map/rightMenu/icon16.png') no-repeat;
  background-size: 100% 100%;
  cursor: pointer;
}
.icon16_checked {
  background: url('@/assets/images/map/rightMenu/icon16_checked.png') no-repeat;
  background-size: 100% 100%;
}
.icon17 {
  width: 30px;
  height: 28px;
  background: url('@/assets/images/map/rightMenu/icon17.png') no-repeat;
  background-size: 100% 100%;
  cursor: pointer;
}
.icon17_checked {
  background: url('@/assets/images/map/rightMenu/icon17_checked.png') no-repeat;
  background-size: 100% 100%;
}
.icon18 {
  width: 30px;
  height: 32px;
  background: url('@/assets/images/map/rightMenu/icon18.png') no-repeat;
  background-size: 100% 100%;
  cursor: pointer;
}
.icon18_checked {
  background: url('@/assets/images/map/rightMenu/icon18_checked.png') no-repeat;
  background-size: 100% 100%;
}
.icon19 {
  width: 30px;
  height: 31px;
  background: url('@/assets/images/map/rightMenu/icon19.png') no-repeat;
  background-size: 100% 100%;
  cursor: pointer;
}
.icon19_checked {
  background: url('@/assets/images/map/rightMenu/icon19_checked.png') no-repeat;
  background-size: 100% 100%;
}
.icon20 {
  width: 30px;
  height: 30px;
  background: url('@/assets/images/map/rightMenu/icon20.png') no-repeat;
  background-size: 100% 100%;
  cursor: pointer;
}
.icon20_checked {
  background: url('@/assets/images/map/rightMenu/icon20_checked.png') no-repeat;
  background-size: 100% 100%;
}
.icon21 {
  width: 30px;
  height: 32px;
  background: url('@/assets/images/map/rightMenu/icon21.png') no-repeat;
  background-size: 100% 100%;
  cursor: pointer;
}
.icon21_checked {
  background: url('@/assets/images/map/rightMenu/icon21_checked.png') no-repeat;
  background-size: 100% 100%;
}
.icon22 {
  width: 30px;
  height: 28px;
  background: url('@/assets/images/map/rightMenu/icon22.png') no-repeat;
  background-size: 100% 100%;
  cursor: pointer;
}
.icon22_checked {
  background: url('@/assets/images/map/rightMenu/icon22_checked.png') no-repeat;
  background-size: 100% 100%;
}
.icon23 {
  width: 30px;
  height: 30px;
  background: url('@/assets/images/map/rightMenu/icon23.png') no-repeat;
  background-size: 100% 100%;
  cursor: pointer;
}
.icon23_checked {
  background: url('@/assets/images/map/rightMenu/icon23_checked.png') no-repeat;
  background-size: 100% 100%;
}
.icon24 {
  width: 30px;
  height: 25px;
  background: url('@/assets/images/map/rightMenu/icon24.png') no-repeat;
  background-size: 100% 100%;
  cursor: pointer;
}
.icon24_checked {
  background: url('@/assets/images/map/rightMenu/icon24_checked.png') no-repeat;
  background-size: 100% 100%;
}
.icon25 {
  width: 30px;
  height: 34px;
  background: url('@/assets/images/map/rightMenu/icon25.png') no-repeat;
  background-size: 100% 100%;
  cursor: pointer;
}
.icon25_checked {
  background: url('@/assets/images/map/rightMenu/icon25_checked.png') no-repeat;
  background-size: 100% 100%;
}
.icon26 {
  width: 28px;
  height: 29px;
  background: url('@/assets/images/map/rightMenu/icon26.png') no-repeat;
  background-size: 100% 100%;
  cursor: pointer;
}
.icon26_checked {
  background: url('@/assets/images/map/rightMenu/icon26_checked.png') no-repeat;
  background-size: 100% 100%;
}
</style>
