<!--
 * @Author: 纪泽龙 jizelong@qq.com
 * @Date: 2021-08-06 17:32:12
 * @LastEditors: 纪泽龙 jizelong@qq.com
 * @LastEditTime: 2023-05-29 11:03:05
 * @FilePath: /gassafety-web/src/components/PopWindowGis/removeLineInfoWindow.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <div class="wrapper">
    <!-- <template v-if="!marker.moveMarker.endFlag">
      <el-button
        @click.stop="markerPauseMove"
        v-if="marker.moveMarker.animationFlag"
      >
        暂停</el-button
      >
      <el-button @click.stop="markerResumeMove" v-else> 继续</el-button>
    </template>
    <el-button @click.stop="deleteLine"> 删除</el-button> -->
    <template v-if="!map.endFlag">
      <el-button
        v-if="map.animationFlag"
        @click.stop="markerPauseMove"
        icon="el-icon-video-pause"
        circle
      ></el-button>
      <el-button
        v-else
        @click.stop="markerResumeMove"
        icon="el-icon-video-play"
        circle
      ></el-button>
    </template>
    <el-button
      @click.stop="deleteLine"
      type="danger"
      icon="el-icon-delete"
      circle
    ></el-button>
    <!-- {{marker.moveMarker.animationFlag}} -->
  </div>
</template>

<script>
export default {
  props: {
    map: {
      type: Object
    },
    marker: {
      type: Object
    }
  },
  created() {},
  methods: {
    deleteLine() {
      console.log("999999");
      this.map.workerManAttrRemove(this.marker);
      this.marker.infoWindow.close();
    },
    markerPauseMove() {
      this.map.markerPauseMove(this.marker);
    },
    markerResumeMove() {
      this.map.markerResumeMove(this.marker);
    }
  }
};
</script>

<style lang="scss" scoped>
.wrapper {
  // width: 100px;
  // height: 36px;
  // background: #fff;
  .el-button--medium{
    font-size: 20px;
  }
}
</style>
