Commit 1561d94f authored by xinzhedeai's avatar xinzhedeai

fix:label 被tileset模型遮挡问题

parent 1a641b3f
...@@ -384,6 +384,12 @@ export default { ...@@ -384,6 +384,12 @@ export default {
fillColor: labelColor, fillColor: labelColor,
depthTestAgainstTerrain: false, depthTestAgainstTerrain: false,
pixelOffset: new Cesium.Cartesian2(0, -35), pixelOffset: new Cesium.Cartesian2(0, -35),
disableDepthTestDistance: Number.POSITIVE_INFINITY, // 确保label始终显示在最前面
heightReference: Cesium.HeightReference.CLAMP_TO_3D_TILE, // 与billboard保持一致
verticalOrigin: Cesium.VerticalOrigin.TOP, // 确保正确的垂直对齐
horizontalOrigin: Cesium.HorizontalOrigin.CENTER, // 确保正确的水平对齐
eyeOffset: new Cesium.Cartesian3(0, 0, 0), // 调整眼睛偏移量
scaleByDistance: new Cesium.NearFarScalar(1000, 1, 500000, 0.5), // 控制不同距离下的缩放比例
}, },
billboard: { billboard: {
image: iconPath, image: iconPath,
......
...@@ -36,7 +36,7 @@ module.exports = { ...@@ -36,7 +36,7 @@ module.exports = {
proxy: { proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy // detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: { [process.env.VUE_APP_BASE_API]: {
// target: `http://192.168.2.16:8082`,//涛本地 // target: `http://192.168.2.16:8081`,//涛本地 ruoyi
target: `http://192.168.2.37:8080`,//鲁本地 target: `http://192.168.2.37:8080`,//鲁本地
// target: `https://gqyjpt.weihai.cn`,//高区孵化平台 // target: `https://gqyjpt.weihai.cn`,//高区孵化平台
// target: `http://192.168.2.16:8080`,//涛本地 // target: `http://192.168.2.16:8080`,//涛本地
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment