<template>
  <div id="single-sun-analysis-detail">
    <div class="main_content">
      <div class="single_content">
        <button @click="returnTop" class="single_button">返回</button>
      </div>
    </div>
  </div>
</template>

<script>
import {getDefinedLayer, setMapSumAna} from "@/units/map/AddLayer";

export default {
  name: "SingleSunAnalysisDetail",
  methods:{
    returnTop(){
      setMapSumAna(false);
      getDefinedLayer(true);
      this.$emit('setToolDetailType','singleSunAnalysis');
    }
  }
}
</script>

<style scoped lang="scss">
#single-sun-analysis-detail{
  position: absolute;
  z-index: 1;
  width: 350px;
  top: 300px;
  right: 155px;
  color:#FFF;
  padding-bottom: 10px;
  background-color:rgba(0, 31, 112, 0.9);
  .main_content{
    display:flex;
    flex-direction: column;
    .single_content{
      height:50px;
      display: flex;
      justify-content: center;
      align-items: center;
      .single_button{
        color:#fff;
        width: 93%;
        height: 35px;
        padding: 5px;
        cursor: pointer;
        text-align: center;
        background-color: #0079c1;
        border: 1px solid #0079c1;
      }
    }
  }
}
</style>
