merge
parent
42ad993a04
commit
c21fe7a3fd
|
|
@ -80,7 +80,7 @@
|
|||
|
||||
// 图例点击
|
||||
function handlerChangePolygonType(data) {
|
||||
MapboxComponent.value.handlerChangeCounty(currentCounty.value, data);
|
||||
MapboxComponent.value.handlerLoadPolygon(currentCounty.value['code'], data);
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -165,7 +165,7 @@ function handlerLoadPolygon(code="",filter=""){
|
|||
})
|
||||
|
||||
map.on("click","historyLayerFill",(e)=>{
|
||||
console.log('eee123',e.features[0].properties)
|
||||
|
||||
})
|
||||
|
||||
if(map.getLayer('heatLayer')){
|
||||
|
|
@ -176,8 +176,8 @@ function handlerLoadPolygon(code="",filter=""){
|
|||
}
|
||||
|
||||
// 获取和处理图斑点数据
|
||||
const currentCode = ref("")
|
||||
async function handlerDealPoint(code=""){
|
||||
|
||||
let sql_filter;
|
||||
if(code){
|
||||
sql_filter = "\"countyid\"=\'"+code+"\'";
|
||||
|
|
@ -195,7 +195,7 @@ async function handlerDealPoint(code=""){
|
|||
let feature = {
|
||||
geometry:geometry,
|
||||
properties:{
|
||||
mag:parseFloat((Math.random()*5).toFixed(2))
|
||||
mag:1
|
||||
}
|
||||
}
|
||||
heatdata.features.push(feature);
|
||||
|
|
@ -396,6 +396,7 @@ onMounted(()=>{
|
|||
defineExpose({
|
||||
handlerChangeCounty, // 切换县区
|
||||
handlerChangeLayerVisible, // 控制图层显示隐藏
|
||||
handlerLoadPolygon,
|
||||
});
|
||||
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -103,6 +103,7 @@
|
|||
item.isClick = false;
|
||||
});
|
||||
list.value = data;
|
||||
|
||||
}
|
||||
onMounted(() => {
|
||||
getOptions();
|
||||
|
|
|
|||
|
|
@ -74,6 +74,7 @@
|
|||
font-weight: 400;
|
||||
font-size: 13px;
|
||||
color: #7ebbff;
|
||||
cursor:pointer;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue