-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Object function ArrayBuffer() { [native code] } has no method 'isView' #6669
Comments
I need to say, that I have fallback for unsupported browsers as mapbox.js. var supported;
try {
var canvas = document.createElement('canvas');
supported = !! window.WebGLRenderingContext && (canvas.getContext('webgl') || canvas.getContext('experimental-webgl'));
} catch(e) { supported = false; }
try {
// let is by no means required, but will help us rule out some old browsers: http://caniuse.com/#feat=let
eval('let foo = 123;');
} catch (e) { supported = false; }
if (supported === false) {
console.log("WebGL is not supported");
} Therefore this browser will not use mapbox-gl and ArrayBuffer.isView. |
What does |
It returns true |
Okay -- want to submit a PR to https://github.com/mapbox/mapbox-gl-supported that adds a test for |
Hello! I have Android 4.x with Cordova app, which uses Chrome 30 as webview, and mapbox cannot be displayed because of error:
Uncaught TypeError: Object function ArrayBuffer() { [native code] } has no method 'isView'
It didn't work on some previous versions of mapbox-gl too.
I've tried to use older version (0.36), but I have other errors like below:
How to make it work? Thanks a lot.
Mapbox latest (v45)
Android 4.4.2, Chrome 30.0.0 (Native browser)
Device Honor 3c Lite
The text was updated successfully, but these errors were encountered: