Compare commits
2 Commits
e818e901ac
...
381eb8ac1e
Author | SHA1 | Date |
---|---|---|
chenchenzai | 381eb8ac1e | |
chenchenzai | 57b89687d1 |
|
@ -83,11 +83,12 @@ function createMarkerClusterLayer(layerClassName, mapObj) {
|
||||||
maxClusterRadius: 80,
|
maxClusterRadius: 80,
|
||||||
})
|
})
|
||||||
markerClusterLayer.on('clusterclick', function(a) {
|
markerClusterLayer.on('clusterclick', function(a) {
|
||||||
//console.log('cluster ' + a.layer.getAllChildMarkers().length);
|
//console.log('cluster ' + a.layer.getAllChildMarkers());
|
||||||
if (a.layer.getAllChildMarkers().length < 50) {
|
if (a.layer.getAllChildMarkers().length < 50) {
|
||||||
let clusterList = [];
|
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);
|
||||||
clusterList.push(a.layer.getAllChildMarkers()[i].resourceData);
|
clusterList.push(a.layer.getAllChildMarkers()[i].resourceData);
|
||||||
}
|
}
|
||||||
//console.log('clusterList ' + a.layer.getAllChildMarkers(array, true));
|
//console.log('clusterList ' + a.layer.getAllChildMarkers(array, true));
|
||||||
|
|
|
@ -67,6 +67,7 @@ import { message } from 'ant-design-vue'
|
||||||
handler(newVal, oldVal) {
|
handler(newVal, oldVal) {
|
||||||
console.log('oldVal:', oldVal)
|
console.log('oldVal:', oldVal)
|
||||||
console.log('newVal:', newVal)
|
console.log('newVal:', newVal)
|
||||||
|
//this.realplay(newVal,0);
|
||||||
},
|
},
|
||||||
// 立即处理 进入页面就触发
|
// 立即处理 进入页面就触发
|
||||||
immediate: true
|
immediate: true
|
||||||
|
|
|
@ -551,7 +551,7 @@ import { ElMessage } from 'element-plus'
|
||||||
let params = {
|
let params = {
|
||||||
regionId: "70be8c5b664f4bcf869d82f2e8335051",
|
regionId: "70be8c5b664f4bcf869d82f2e8335051",
|
||||||
pageNum: "1",
|
pageNum: "1",
|
||||||
pageSize: 30000,
|
pageSize: 40000,
|
||||||
type: 0,
|
type: 0,
|
||||||
borderPolygonList: []
|
borderPolygonList: []
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue