|
@ -168,7 +168,7 @@ export default { |
|
|
); |
|
|
); |
|
|
}); |
|
|
}); |
|
|
} else { |
|
|
} else { |
|
|
Vue.prototype.mapIns.removeLayerByName('lineLayer'); |
|
|
Vue.prototype.mapIns.removeLayerByName('lineLayer'); |
|
|
} |
|
|
} |
|
|
// |
|
|
// |
|
|
// this.$refs.MapContainerRef.showRoadConditions(findIndex === -1); |
|
|
// this.$refs.MapContainerRef.showRoadConditions(findIndex === -1); |
|
@ -223,12 +223,16 @@ export default { |
|
|
points.push({ |
|
|
points.push({ |
|
|
type: 'event', |
|
|
type: 'event', |
|
|
longitude: parseFloat(e.longitude), |
|
|
longitude: parseFloat(e.longitude), |
|
|
latitude: parseFloat(e.latitude), |
|
|
latitude: parseFloat(e.latitude), |
|
|
iconUrl: iconUrl, |
|
|
iconUrl: iconUrl, |
|
|
offset: [0,-48], |
|
|
offset: [0,-48], |
|
|
size: [42,100], |
|
|
size: [42,100], |
|
|
GGoffsetX: 0, |
|
|
GGoffsetX: 0, |
|
|
GGoffsetY: 20, |
|
|
GGoffsetY: -5, |
|
|
|
|
|
GGimgOffset:[0,0], |
|
|
|
|
|
GGimgsize:[42,103], |
|
|
|
|
|
GGstakeOffsetY:45, |
|
|
|
|
|
stakeOffsetY:25, |
|
|
otherInfo: { |
|
|
otherInfo: { |
|
|
ext: null, |
|
|
ext: null, |
|
|
name: e.deviceName, |
|
|
name: e.deviceName, |
|
@ -289,7 +293,7 @@ export default { |
|
|
e = null; |
|
|
e = null; |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
handledDialogCamera(bool) { |
|
|
handledDialogCamera(bool) { |
|
@ -326,14 +330,22 @@ export default { |
|
|
iconUrl = (e.useState ? iconb : iconb_f); |
|
|
iconUrl = (e.useState ? iconb : iconb_f); |
|
|
} else if(e.childType==='2-2' || e.childType==='2-4'){ |
|
|
} else if(e.childType==='2-2' || e.childType==='2-4'){ |
|
|
iconUrl = (e.useState ? iconc : iconc_f); |
|
|
iconUrl = (e.useState ? iconc : iconc_f); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
points.push({ |
|
|
points.push({ |
|
|
type: 'event', |
|
|
type: 'event', |
|
|
longitude: parseFloat(e.longitude), |
|
|
longitude: parseFloat(e.longitude), |
|
|
latitude: parseFloat(e.latitude), |
|
|
latitude: parseFloat(e.latitude), |
|
|
// iconUrl: e.useState ? icon : icon_f, |
|
|
// iconUrl: e.useState ? icon : icon_f, |
|
|
iconUrl: iconUrl, |
|
|
iconUrl: iconUrl, |
|
|
|
|
|
offset: [0,-48], |
|
|
|
|
|
size: [42,100], |
|
|
|
|
|
GGoffsetX: 0, |
|
|
|
|
|
GGoffsetY: -5, |
|
|
|
|
|
GGimgOffset:[0,0], |
|
|
|
|
|
GGimgsize:[42,103], |
|
|
|
|
|
GGstakeOffsetY:45, |
|
|
|
|
|
stakeOffsetY:25, |
|
|
otherInfo: { |
|
|
otherInfo: { |
|
|
ext: null, |
|
|
ext: null, |
|
|
name: e.deviceName, |
|
|
name: e.deviceName, |
|
@ -433,7 +445,7 @@ export default { |
|
|
if (this.mapContainer === 'BMapContainer') { |
|
|
if (this.mapContainer === 'BMapContainer') { |
|
|
const icon = require(`@screen/images/layerb/事件专题/${eventName}_active.svg`); |
|
|
const icon = require(`@screen/images/layerb/事件专题/${eventName}_active.svg`); |
|
|
const center = [parseFloat(longitude), parseFloat(dimension)] |
|
|
const center = [parseFloat(longitude), parseFloat(dimension)] |
|
|
|
|
|
|
|
|
mapInfo.addPointByArr( |
|
|
mapInfo.addPointByArr( |
|
|
{ |
|
|
{ |
|
|
pointList: [ |
|
|
pointList: [ |
|
@ -442,6 +454,14 @@ export default { |
|
|
longitude: center[0], //点坐标经度 【必传字段】 |
|
|
longitude: center[0], //点坐标经度 【必传字段】 |
|
|
latitude: center[1], //点坐标纬度 【必传字段】 |
|
|
latitude: center[1], //点坐标纬度 【必传字段】 |
|
|
iconUrl: icon, // 图标 【必传字段】 |
|
|
iconUrl: icon, // 图标 【必传字段】 |
|
|
|
|
|
offset: [0,-48], |
|
|
|
|
|
size: [42,100], |
|
|
|
|
|
GGoffsetX: 0, |
|
|
|
|
|
GGoffsetY: -5, |
|
|
|
|
|
GGimgOffset:[0,0], |
|
|
|
|
|
GGimgsize:[42,103], |
|
|
|
|
|
GGstakeOffsetY:45, |
|
|
|
|
|
stakeOffsetY:25, |
|
|
otherInfo: { |
|
|
otherInfo: { |
|
|
name: '123' |
|
|
name: '123' |
|
|
} |
|
|
} |
|
|