|
@@ -1,23 +1,29 @@
|
|
<template>
|
|
<template>
|
|
<div v-bind:id="mapDivId" ref="map" style="width: 100%; height: 100%;background: none;">
|
|
<div v-bind:id="mapDivId" ref="map" style="width: 100%; height: 100%;background: none;">
|
|
- <div id="toolbar" v-if="isdynamicPlotting" class="panel panel-primary"
|
|
|
|
- style="position:absolute;z-index: 9999;top:4rem;left: 1rem; border-radius: 4px; width: fit-content;height:635px;overflow-y:scroll;background:#040b1f">
|
|
|
|
- <div class="panel-heading" id="panelheading">
|
|
|
|
- <h5 style=" color: #2bacf7;font-size: 1rem;padding:.5rem;">鼠标标绘</h5>
|
|
|
|
- </div>
|
|
|
|
- <div class="panel-body content" id="panelbodycontent" style="margin-bottom: .5rem;padding-right: .5rem;">
|
|
|
|
- <div align="right" class="button-group">
|
|
|
|
- <el-button type="success" @click="PlottingDrawCancel">取消标绘</el-button>
|
|
|
|
-
|
|
|
|
- <el-button type="success" @click="clearLayers">清空标绘</el-button>
|
|
|
|
|
|
+ <transition-group
|
|
|
|
+ appear
|
|
|
|
+ name="animate__animated animate__bounce"
|
|
|
|
+ enter-active-class="animate__backInLeft"
|
|
|
|
+ leave-active-class="animate__backOutLeft"
|
|
|
|
+ >
|
|
|
|
+ <div id="toolbar" v-if="isdynamicPlotting" class="panel panel-primary" v-show="mapToolShowBH" key="mapFlash"
|
|
|
|
+ style="position:absolute;z-index: 9999;top:4rem;left: 1rem; border-radius: 4px; width: fit-content;height:635px;overflow-y:scroll;background:#040b1f">
|
|
|
|
+ <div class="panel-heading" id="panelheading">
|
|
|
|
+ <h5 style=" color: #2bacf7;font-size: 1rem;padding:.5rem;">鼠标标绘</h5>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- <div id="plottingPanel">
|
|
|
|
- <div id="plotPanel" style="width: 15rem;height:50%;overflow-y:scroll;">
|
|
|
|
|
|
+ <div class="panel-body content" id="panelbodycontent" style="margin-bottom: .5rem;padding-right: .5rem;">
|
|
|
|
+ <div align="right" class="button-group">
|
|
|
|
+ <el-button type="success" @click="PlottingDrawCancel">取消标绘</el-button>
|
|
|
|
+
|
|
|
|
+ <el-button type="success" @click="clearLayers">清空标绘</el-button>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div id="plottingPanel">
|
|
|
|
+ <div id="plotPanel" style="width: 15rem;height:50%;overflow-y:scroll;">
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
-
|
|
|
|
|
|
+ </transition-group>
|
|
<div id="toolbar-heat" v-if="isheatPlotting" class="panel panel-primary"
|
|
<div id="toolbar-heat" v-if="isheatPlotting" class="panel panel-primary"
|
|
style="position:absolute;z-index: 9999; padding: 1rem; bottom:3rem;right: 1rem; border-radius: 4px; width: fit-content;height:fit-content;overflow-y:scroll;background:#040b1f">
|
|
style="position:absolute;z-index: 9999; padding: 1rem; bottom:3rem;right: 1rem; border-radius: 4px; width: fit-content;height:fit-content;overflow-y:scroll;background:#040b1f">
|
|
<div class="panel-body content">
|
|
<div class="panel-body content">
|
|
@@ -318,7 +324,8 @@ export default {
|
|
isSideBySide: false,
|
|
isSideBySide: false,
|
|
showLatLng: null,
|
|
showLatLng: null,
|
|
showAreaLatLng: null,
|
|
showAreaLatLng: null,
|
|
- showLineLatLng: null
|
|
|
|
|
|
+ showLineLatLng: null,
|
|
|
|
+ mapToolShowBH:false,
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
/** ----------------------------------火势蔓延 开始------------------------------------- */
|
|
/** ----------------------------------火势蔓延 开始------------------------------------- */
|
|
@@ -628,20 +635,20 @@ export default {
|
|
if (isAggregation) {
|
|
if (isAggregation) {
|
|
if (this.isAggregationMyGroup != undefined && this.isAggregationMyGroup != false) {
|
|
if (this.isAggregationMyGroup != undefined && this.isAggregationMyGroup != false) {
|
|
this.isAggregationMyGroup.clearLayers()
|
|
this.isAggregationMyGroup.clearLayers()
|
|
- this.map.removeLayer(this.isAggregationLayers)
|
|
|
|
- this.isAggregationLayers = []
|
|
|
|
- this.radiusLayers = []
|
|
|
|
- this.isAggregationLayers = window.L.markerClusterGroup({
|
|
|
|
- //设置为true时显示聚类所占据的范围
|
|
|
|
- showCoverageOnHover: true,
|
|
|
|
- //设置为true时会向低一级聚类缩放
|
|
|
|
- zoomToBoundsOnClick: true,
|
|
|
|
- //增加点位时增加聚合动画(否则会出问题)
|
|
|
|
- animateAddingMarkers: true,
|
|
|
|
- //最大缩放级别点击聚合图标展开图标
|
|
|
|
- spiderfyOnMaxZoom: true
|
|
|
|
- })
|
|
|
|
}
|
|
}
|
|
|
|
+ this.map.removeLayer(this.isAggregationLayers)
|
|
|
|
+ this.isAggregationLayers = []
|
|
|
|
+ this.radiusLayers = []
|
|
|
|
+ this.isAggregationLayers = window.L.markerClusterGroup({
|
|
|
|
+ //设置为true时显示聚类所占据的范围
|
|
|
|
+ showCoverageOnHover: true,
|
|
|
|
+ //设置为true时会向低一级聚类缩放
|
|
|
|
+ zoomToBoundsOnClick: true,
|
|
|
|
+ //增加点位时增加聚合动画(否则会出问题)
|
|
|
|
+ animateAddingMarkers: true,
|
|
|
|
+ //最大缩放级别点击聚合图标展开图标
|
|
|
|
+ spiderfyOnMaxZoom: true
|
|
|
|
+ })
|
|
} else {
|
|
} else {
|
|
if (this.myGroup != undefined && this.myGroup != false) {
|
|
if (this.myGroup != undefined && this.myGroup != false) {
|
|
this.myGroup.clearLayers()
|
|
this.myGroup.clearLayers()
|