| | |
| | | return lngOrlat |
| | | }).join(';') |
| | | |
| | | console.log(newPolyData, 9599666) |
| | | |
| | | this.$EventBus.$emit('layerWallAdd', { |
| | | layerName: 'polygonWallLayer', |
| | | positions: newPolyData, |
| | |
| | | // 清除定时器 |
| | | if (realPoliceTimer != {}) { |
| | | for (let item in realPoliceTimer) { |
| | | console.log(`定时器realPoliceTimer[${item}]关闭了`) |
| | | clearInterval(realPoliceTimer[item]) |
| | | } |
| | | } |
| | |
| | | */ |
| | | clearLayerIconForMap (layerName) { |
| | | realPoliceTimer[layerName] && clearInterval(realPoliceTimer[layerName]) |
| | | console.log(`定时器realPoliceTimer[${layerName}]关闭了`) |
| | | this.$EventBus.$emit('mapClearLayer', { |
| | | layerName: layerName, |
| | | type: 'VectorLayer' |
| | |
| | | |
| | | // 定时查找实时警力资源 |
| | | searchRealResources (layerName) { |
| | | console.log(`定时器realPoliceTimer[${layerName}]开启了`) |
| | | console.log(`定时器[${layerName}]开启了`) |
| | | let type = '' |
| | | if (layerName == 'activityCarLayers') { |
| | |
| | | // 清除定时器 |
| | | if (realPoliceTimer != {}) { |
| | | for (let item in realPoliceTimer) { |
| | | console.log(`定时器realPoliceTimer[${item}]关闭了`) |
| | | clearInterval(realPoliceTimer[item]) |
| | | } |
| | | } |