2016-05-12 40 views
0

我們正試圖mapbox-GL頁面在這裏:https://www.mapbox.com/blog/data-driven-styling/如何讓mapbox-gl-js webgl/opengl在ubuntu chrome上運行?

我們看到enter image description here

這是Chrome版本:

Google Chrome 50.0.2661.94 (Official Build) (64-bit) 
Revision 0c319c380220abe3daf0277e40a2d0b22a7c4550-refs/branch-heads/[email protected]{#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 :)

回答

0

看來,對於Ubuntu上的Chrome,硬件加速應該是開啓的。

見設置 - 在Chrome>高級

enter image description here

+0

這在所有情況下都不夠:我有一個帶有nouveau驅動程序的Nvidia GPU,並受到[GPU進程無法啓動]的影響(https://bugs.chromium.org/p/鉻/問題/細節?ID = 660493) – kynan

0

您的控制檯有一個錯誤,指出消息:

Failed to initialize WebGL 

這意味着,您的瀏覽器+硬件組合不支持一些所需要的運行特點Mapbox GL JS。

您可以通過更新瀏覽器或圖形卡驅動程序來解決此問題。

+0

謝謝,但它完美的同一臺機器/ OS使用Firefox,因此它似乎意味着,Chrome的50.0.2661.94(正式版本)(64位)在Ubuntu 15.10不支持WebGL,但它有時會工作(我相信)這是一個非常奇怪的。感謝您的回答,儘管:) –