首页 / 浏览问题 / WebGIS / 问题详情
超图FAQ:L.supermap.ServerStyle中怎么隐藏边线样式?lineWidth设为0不生效?
64,468EXP 2025年06月09日
L.supermap.ServerStyle中怎么隐藏边线样式?lineWidth设为0不生效?

1个回答

【解决办法】通过赋予alpha值的方式来实现,实现参考代码:var alpha = new L.supermap.ServerStyle(255, 255, 255); alpha.alpha = 0; style1 = new L.supermap.ServerStyle({ fillForeColor: new L.supermap.ServerColor(248, 203, 249), lineColor: alpha, lineWidth: 0.1 });
64,468EXP 2025年06月09日
热门文章
关注我们
...