关闭D3投影中的剪辑 [英] Turn off clipping in a d3 projection

查看:107
本文介绍了关闭D3投影中的剪辑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个不需要剪裁的投影.反子午线或小圆圈剪裁都无法使用

I have a projection that does not need clipping. Neither anti-meridian or small circle clipping is there a way to not use either

推荐答案

原来有这种解决方案.将剪辑角度设置为181度.

Turns out there is this solution. Set the clip angle to 181 degrees.

projection(globeProjection.clipAngle(181))

不知道这是否在进行大量计算,是否有可能做得更好

Don't know if this is doing a bunch of calculation and if it is possible to do better

这篇关于关闭D3投影中的剪辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆