dianlixunjian
徐景良 2024-11-25 11:42:44 +08:00
parent ae1fe142ab
commit 2d6a2168fa
1 changed files with 7 additions and 7 deletions

View File

@ -174,11 +174,11 @@ function handlerLoadPolygon(code="",filter="",type=""){
'type': 'line',
'source': {
type: 'vector',
tiles: [VITE_GLOB_API_URL_VAR.value+'/api/DroneCaseInfoSingle/QueryVectorTileByTable?z={z}&x={x}&y={y}&table=view_drone_shp_data&'+sql_filter+'&field=\"gid\",\"handle_status_id\",\"is_illegal\",\"measure_name\",\"typename\",\"Id\",'],
tiles: [VITE_GLOB_API_URL_VAR.value+'/api/DroneCaseInfoSingle/QueryVectorTileByTable?z={z}&x={x}&y={y}&table=view_drone_wfyd_map&'+sql_filter+'&field=\"gid\",\"handle_status_id\",\"is_illegal\",\"measure_name\",\"typename\",\"Id\",'],
minzoom: 1,
maxzoom: 20
},
"source-layer": "view_drone_shp_data",
"source-layer": "view_drone_wfyd_map",
'layout': {
'line-join': 'round',
'line-cap': 'round',
@ -210,12 +210,12 @@ function handlerLoadPolygon(code="",filter="",type=""){
'type': 'fill',
'source': {
type: 'vector',
tiles: [VITE_GLOB_API_URL_VAR.value+'/api/DroneCaseInfoSingle/QueryVectorTileByTable?z={z}&x={x}&y={y}&table=view_drone_shp_data'+sql_filter+'&field=\"gid\",\"handle_status_id\",\"is_illegal\",\"measure_name\",\"typename\",\"Id\",'],
tiles: [VITE_GLOB_API_URL_VAR.value+'/api/DroneCaseInfoSingle/QueryVectorTileByTable?z={z}&x={x}&y={y}&table=view_drone_wfyd_map'+sql_filter+'&field=\"gid\",\"handle_status_id\",\"is_illegal\",\"measure_name\",\"typename\",\"Id\",'],
//
minzoom: 1,
maxzoom: 20
},
"source-layer": "view_drone_shp_data",
"source-layer": "view_drone_wfyd_map",
'filter':map_filter,
'layout':{
'visibility':polygonVisibility.value,
@ -254,7 +254,7 @@ async function handlerDealPoint(code=""){
}else{
sql_filter=""
}
let points = await getPolygonCenter({tablename:"view_drone_shp_data",filter:sql_filter,createtime:dayjs().subtract(30, 'day').format('YYYY-MM-DD')})
let points = await getPolygonCenter({tablename:"view_drone_wfyd_map",filter:sql_filter,createtime:dayjs().subtract(30, 'day').format('YYYY-MM-DD')})
let heatdata = {
type: "FeatureCollection",
@ -434,8 +434,8 @@ function handlerLoadHeatLayer(heatdata){
// ,
'heatmap-radius': [
'interpolate',['linear'],['zoom'],
9,4.5,
10,15,
9,5.5,
10,13,
12,24,
14,32,
],