简体   繁体   English

3D线条无法渲染出WebGL Globe(潜在的CSS冲突?)

[英]3D lines not rendering out of WebGL Globe (potential CSS conflict?)

I am trying to add a WebGL Globe visualization into a custom SaaS application (Splunk) and instead of getting lines out of the globe, I only see dots. 我正在尝试将WebGL Globe可视化添加到自定义SaaS应用程序(Splunk)中,而不是让线条脱离全球,我只看到点。

在此输入图像描述

I suspect the application has its own CSS or something that is overriding and hiding or preventing the lines from coming out. 我怀疑应用程序有自己的CSS或覆盖或隐藏或防止线路出现的东西。 But I have no idea where to start debugging and what "troublesome" CSS properties I should be looking for. 但我不知道从哪里开始调试以及我应该寻找什么“麻烦”的CSS属性。

I'm not sure if this helps, but here are 2 screenshot of the CSS properties of the 2 elements: the <div> and the <canvas> that is inside the <div> : 我不确定这是否有帮助,但这里有2个元素的CSS属性的2个屏幕截图: <div><div><canvas> <div>

https://www.dropbox.com/s/x7qqkhimkh34h8q/Screenshot%202014-09-26%2000.40.35.png?dl=0 https://www.dropbox.com/s/h79190dgf2k99w6/Screenshot%202014-09-26%2000.40.44.png?dl=0 https://www.dropbox.com/s/x7qqkhimkh34h8q/Screenshot%202014-09-26%2000.40.35.png?dl=0 https://www.dropbox.com/s/h79190dgf2k99w6/Screenshot%202014-09 -26%2000.40.44.png?DL = 0

My sample JSON data is from this tutorial and it is valid. 我的示例JSON数据来自本教程 ,它是有效的。 I even tried a very simple dataset of 我甚至尝试过一个非常简单的数据集

[['series1', [0, 0, 1]]]

and even that didn't work (there was just one dot). 甚至那不起作用(只有一个点)。

Your magnitudes in your JSON file are really small which leads to the dots not looking like lines. 您在JSON文件中的大小非常小,导致点看起来不像线条。 try increasing the magnitude to something closer to approximately 0.5 or so. 尝试将幅度增加到接近约0.5左右的值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM