Return ImageData-like objects for IE support

This commit is contained in:
Tim Schaub
2016-03-01 13:28:20 -07:00
parent 66f23c1aed
commit bc01fdb59a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ function growRegion(inputs, data) {
} }
edge = newedge; edge = newedge;
} }
return new ImageData(outputData, width, height); return {data: outputData, width: width, height: height};
} }
function next4Edges(edge) { function next4Edges(edge) {
+1 -1
View File
@@ -99,7 +99,7 @@ function shade(inputs, data) {
} }
} }
return new ImageData(shadeData, width, height); return {data: shadeData, width: width, height: height};
} }
var elevation = new ol.source.XYZ({ var elevation = new ol.source.XYZ({