Only test ol.format.MVT if ArrayBuffer.isView is supported

This commit is contained in:
Frederic Junod
2016-10-19 08:55:59 +02:00
parent de5b16c0d3
commit 61fcc4a326
2 changed files with 2 additions and 1 deletions

View File

@@ -466,6 +466,7 @@
var features = {
ArrayBuffer: typeof ArrayBuffer === 'function',
'ArrayBuffer.isView': typeof ArrayBuffer === 'function' && ArrayBuffer.isView,
Uint8ClampedArray: ('Uint8ClampedArray' in global)
};