首页 / 浏览问题 / 三维GIS / 问题详情
超图FAQ:SuperMap iClient3D for WebGL中,如何优化entity线的锯齿效果?
64,468EXP 2025年06月23日

SuperMap iClient3D for WebGL中,如何优化entity线的锯齿效果?

1个回答

【解决办法】获取当前屏幕窗口分辨率,赋予WebGL画布,参考代码: var xres = parseInt(window.screen.width * window.devicePixelRatio); var yres = parseInt(window.screen.height * window.devicePixelRatio); let viewer = new SuperMap3D.Viewer('Container', { navigation: false, contextOptions: { contextType: Number(EngineType), // Webgl2:2 ; WebGPU:3 maxDrawingBufferWidth: xres, maxDrawingBufferHeight: yres, }, }); viewer.resolutionScale = window.devicePixelRatio;
64,468EXP 2025年06月23日
...