Compare commits
No commits in common. "21191413d286d86b47609fde713d225b0e0f46cd" and "6d83cd76e055da4fee626d6b513720588edaae12" have entirely different histories.
21191413d2
...
6d83cd76e0
|
@ -1678,6 +1678,7 @@ 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({
|
||||||
|
@ -1733,7 +1734,6 @@ 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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue