google-chrome - 如何让 mapbox-gl-js webgl/opengl 在 ubuntu chrome 上工作?

标签 google-chrome ubuntu opengl-es mapbox-gl mapbox-gl-js

我们在这里尝试使用 mapbox-gl 页面:https://www.mapbox.com/blog/data-driven-styling/

我们看到enter image description here

这是 Chrome 版本:

Google Chrome   50.0.2661.94 (Official Build) (64-bit)
Revision    0c319c380220abe3daf0277e40a2d0b22a7c4550-refs/branch-heads/2661@{#645}
OS  Linux 
Blink   537.36 (@0c319c380220abe3daf0277e40a2d0b22a7c4550)
JavaScript  V8 5.0.71.39
Flash   21.0.0.216
User Agent  Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36
Command Line    /usr/bin/google-chrome-stable --window-depth=24 --flag-switches-begin --flag-switches-end
Executable Path /opt/google/chrome/google-chrome

这是 linux ubuntu 版本:
Distributor ID: Ubuntu
Description:    Ubuntu 15.10
Release:    15.10
Codename:   wily

这是一个web-gl问题吗?我们的代码问题? mapbox-gl-js 库问题?

它适用于 Firefox :)

最佳答案

看来,对于 Ubuntu 上的 Chrome,应该打开硬件加速。

在 Chrome 中查看设置 -> 高级

enter image description here

关于google-chrome - 如何让 mapbox-gl-js webgl/opengl 在 ubuntu chrome 上工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37189961/

相关文章:

javascript - 在 Chrome 上禁用 Javascript 的键盘快捷键?

java - Android OpenGLES 在 GLThread 中加载纹理然后告诉 UI 线程运行一个方法

opengl-es - mipmap 纹理显示错误

android - 将真实世界坐标映射到 OpenGL 坐标系

javascript - Chrome.storage.local 得到错误的值

css - 背景图像不会间歇性显示。 Mac 上的谷歌浏览器

google-chrome - 从 Outlook 拖动到 Chrome 会将电子邮件移动到“已删除”文件夹

python - 使用 cat 时权限被拒绝 - 即使作为 root?

mysql - 我应该在 ubuntu Natty Narwhal 中安装哪个版本的 percona db 包?

带有 json 收集数据的 PHP 页面在 ubuntu 上不起作用,在 Windows 服务器上也能同样工作