Compare commits
No commits in common. "915176e1df882fa99788b309444f8a21cb0dff72" and "119c61d55e56444095ed9438906f85ef175a4433" have entirely different histories.
915176e1df
...
119c61d55e
|
@ -146,7 +146,6 @@ export function MapFun(mapObj) {
|
|||
* @param {*} feature
|
||||
*/
|
||||
const _openPopupEventDetailNew = function(feature) {
|
||||
debugger
|
||||
if (feature.type == 'cameraTree') {
|
||||
const elementHtml = createCameraDetailsPop(feature)
|
||||
const arr = [0, 0.0, '', '0', '0.0']
|
||||
|
@ -2025,25 +2024,6 @@ export function MapFun(mapObj) {
|
|||
polygon.addTo(map)
|
||||
PolygonArr.push(polygon)
|
||||
}
|
||||
|
||||
const _addAreaToMapNew = function(latLng, data) {
|
||||
//console.log('llllll', latLng)
|
||||
//debugger
|
||||
const polygon = L.polygon(latLng, { color: 'red' })
|
||||
// map.fitBounds(polyline.getBounds())
|
||||
polygon.addTo(map)
|
||||
PolygonArr.push(polygon)
|
||||
polygon.on('click', async e => {
|
||||
console.log('pppooooo', e, data);
|
||||
let feature = {
|
||||
data: data,
|
||||
type: "site",
|
||||
latLng: latLng[0]
|
||||
};
|
||||
const elementHtml = createImportantAreaPopNew(feature)
|
||||
L.popup({ className: 'site-popup', keepInView: false }).setLatLng(feature.latLng).setContent(elementHtml).openOn(map)
|
||||
})
|
||||
}
|
||||
return {
|
||||
// 按图层配置名称删除
|
||||
removeLayerByLayerName: _removeLayerByLayerName,
|
||||
|
@ -2120,6 +2100,5 @@ export function MapFun(mapObj) {
|
|||
addPathToMap: _addPathToMap,
|
||||
addPointTestOnMap: _addPointTestOnMap,
|
||||
addAreaToMap: _addAreaToMap,
|
||||
addAreaToMapNew: _addAreaToMapNew,
|
||||
}
|
||||
}
|
|
@ -244,6 +244,7 @@ function createImportantAreaPop(feature) {
|
|||
// 重点区域弹窗
|
||||
function createImportantAreaPopNew(feature) {
|
||||
bus.$emit('areaCauseAnalysis', feature.data)
|
||||
|
||||
const popupDom = new Dom({
|
||||
template: '<Important-Area-pop-new :feature="feature"></Important-Area-pop-new>',
|
||||
data() {
|
||||
|
|
|
@ -204,6 +204,7 @@ import { createImportantAreaPopNew } from '../../../../supermap/createMarkerPopu
|
|||
},
|
||||
// 行点击
|
||||
analyse(row) {
|
||||
debugger
|
||||
// bus.$emit("openCauseAnalysis", row);
|
||||
this.$parent.hiMapFun.removerPolygon()
|
||||
this.$parent.removeRoadCauseAnalysis()
|
||||
|
@ -231,7 +232,7 @@ import { createImportantAreaPopNew } from '../../../../supermap/createMarkerPopu
|
|||
//跳转到响应的位置。
|
||||
let lonLat=arr[0];
|
||||
this.$parent.hiMap.mapObj.map.flyTo({ lat: lonLat[1], lng:lonLat[0] },14);
|
||||
this.$parent.hiMapFun.addAreaToMapNew(areaLatLng,row)
|
||||
this.$parent.hiMapFun.addAreaToMap(areaLatLng)
|
||||
}
|
||||
// else {
|
||||
// selectByAreaName({areaName:row.areaName}).then((res) => {
|
||||
|
|
Loading…
Reference in New Issue