diff --git a/src/views/components/SyMixMap.vue b/src/views/components/SyMixMap.vue index 15ca14e..c5204f2 100644 --- a/src/views/components/SyMixMap.vue +++ b/src/views/components/SyMixMap.vue @@ -182,6 +182,13 @@ export default { layer = new sycim.EntityLayer('layer'); viewer.addLayer(layer); plot = new sycim.Plot(viewer); + viewer.setOptions({ + globe: { + depthTestAgainstTerrain: true + } + }); + viewer.scene.fxaa=false + viewer.scene.postProcessStages.fxaa.enabled = false; // 三维模型才需要 // viewer.on( // sycim.SceneEventType.CAMERA_CHANGED, @@ -325,7 +332,7 @@ export default { canEdit: true, horizontalOrigin: sycim.HorizontalOrigin.CENTER, verticalOrigin: sycim.VerticalOrigin.BOTTOM, - //disableDepthTestDistance: 5000, + disableDepthTestDistance: Number.POSITIVE_INFINITY, }) }else if(type === 'polyline'){ graphicItem = new sycim.Polyline(graphic.positions); @@ -383,7 +390,8 @@ export default { graphicItem.setStyle({ canEdit: false, horizontalOrigin: sycim.HorizontalOrigin.CENTER, - verticalOrigin: sycim.VerticalOrigin.BOTTOM + verticalOrigin: sycim.VerticalOrigin.BOTTOM, + disableDepthTestDistance: Number.POSITIVE_INFINITY //disableDepthTestDistance: 5000, }) } else if (type === 'polyline') {