The converted coordinates appear to be abnormal and cannot be used in three.js #3839
Unanswered
nightISend
asked this question in
Q&A
Replies: 1 comment 1 reply
-
It's difficult to help without seeing the full code. Can you please share a running example so we can help debug? For example, it's unclear what you mean by "convert". Do you mean passing it through the projection? Also, it's unclear how that is passed into ThreeJS. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
const projection =d3
.geoMercator()//设置投影方法,球形墨卡托投影
.scale(84)//缩放
.center([108.5525,34.3227])//中心
.translate([0,0])//移动
This is a set of coordinates
[103.953779, 28.600906] before convert
[-6.74207711777089, 9.841509178425873]after converted
and three.js report
THREE.WebGLAttributes: Unsupported buffer data format: -6.74207711777089, 9.841509178425873,
why?
Beta Was this translation helpful? Give feedback.
All reactions