-
Notifications
You must be signed in to change notification settings - Fork 17
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
Add a check for "Uint8ClampedArray" #1
Comments
Any plans on this yet? I recently tried Mapbox GL with IE 11.0.9600.16428 and found it impossible to ask a user to update. This is because |
@kachkaev Thank you for your patience! This has been slipping on my todo list for a little while. I just pushed a PR to add this check. Looking forward to 🚢 this very soon. |
Hi again guys! When about are you planning to roll out 1.2.0 to mapbox.com? I just opened the example in that faulty IE11 and noticed that the behaviour did not change. |
My apologies @kachkaev, I did not update the version in that example. Fixed in mapbox/mapbox-gl-js@f9db8ab (might take a few minutes to be published on mapbox.com) |
@lucaswoj should not it be 1.2.0 instead of 1.1.1? |
Yes. A couple more publishing steps in mapbox/mapbox-gl-js@feeba68 |
Hmm. Although I see 1.2.0 in the source code of https://www.mapbox.com/mapbox-gl-js/example/check-for-support/, IE11 still fires an exception in the console and shows no alert.
It seems like Could you please check this if you have access to IE 11.0.9600.16428? |
Unfortunately I don't have access to this version.
You are correct. You will need to defer loading GL JS until after Here is an untested prototype of this: if (!mapboxgl.supported()) {
alert('Your browser does not support Mapbox GL');
} else {
var element = document.createElement('script');
element.src = 'https://api.mapbox.com/mapbox-gl-js/v0.21.0/mapbox-gl.js';
document.body.appendChild(element);
element.onload = function() {
var map = new mapboxgl.Map({
container: 'map',
style: 'mapbox://styles/mapbox/streets-v9',
center: [-74.50, 40],
zoom: 9
});
}
} |
Well, it's a shame that the current design does not allow for a clean and robust way of calling Deferring the load of mapbox.js is not something everyone can afford. E.g. this is against a pattern suggested in In my view this situation needs fixing. It wont cause any problems in my current small project since I can just ask a client to open the demo in Chrome. But I'm sure that some of your paid clients who use mapbox at scale will sooner or later get strange error reports from their customers and it will be extremely difficult to fight them. It's hard to estimate how much money can be wasted, especially including the lost opportunity costs. |
The guys at three.js ran into the same problem. |
So something like this should work if it is inserted before GL JS (credit to @mourner who suggested this):
|
exactly - but it makes more sense to put this into the GL JS source code in my opinion |
ref mapbox/mapbox-gl-js#2444
The text was updated successfully, but these errors were encountered: