Compare commits

...

2 Commits

Author SHA1 Message Date
chenchenzai 21191413d2 Merge branch 'hi-ucs-dev' of http://192.168.124.50:3000/wuhongjian/hi-ucs into hi-ucs-dev 2022-11-22 17:30:57 +08:00
chenchenzai c05ed0616c 地图弹窗包含视频数据数组清空 2022-11-22 17:30:39 +08:00
2 changed files with 2 additions and 2 deletions

View File

@ -1678,7 +1678,6 @@ export function MapFun(mapObj) {
_removeLayerByLayerName(layerName) _removeLayerByLayerName(layerName)
let selectedLayerList = []; let selectedLayerList = [];
let layers = null; let layers = null;
let clickDataList = [];
// //
layers = createMarkerClusterLayer('', map) layers = createMarkerClusterLayer('', map)
const icon1 = createDefaultFeatureStyle({ const icon1 = createDefaultFeatureStyle({
@ -1734,6 +1733,7 @@ export function MapFun(mapObj) {
// }) // })
// } // }
marker.on('click', e => { marker.on('click', e => {
let clickDataList = [];
//console.log('', e) //console.log('', e)
//console.log('1', e.sourceTarget.resourceData) //console.log('1', e.sourceTarget.resourceData)
clickDataList.push(e.sourceTarget.resourceData); clickDataList.push(e.sourceTarget.resourceData);

View File

@ -83,9 +83,9 @@ function createMarkerClusterLayer(layerClassName, mapObj) {
maxClusterRadius: 80, maxClusterRadius: 80,
}) })
markerClusterLayer.on('clusterclick', function(a) { markerClusterLayer.on('clusterclick', function(a) {
let clusterList = [];
//console.log('cluster ' + a.layer.getAllChildMarkers()); //console.log('cluster ' + a.layer.getAllChildMarkers());
if (a.layer.getAllChildMarkers().length < 50) { if (a.layer.getAllChildMarkers().length < 50) {
let clusterList = [];
for (var i = 0; i < a.layer.getAllChildMarkers().length; i++) { for (var i = 0; i < a.layer.getAllChildMarkers().length; i++) {
//console.log('yyyyyyyyy', a.layer.getAllChildMarkers()[i].resourceData); //console.log('yyyyyyyyy', a.layer.getAllChildMarkers()[i].resourceData);
//console.log('yyyyyyyyy', a.layer.getAllChildMarkers()[i].fData); //console.log('yyyyyyyyy', a.layer.getAllChildMarkers()[i].fData);