Return ImageData-like objects for IE support
This commit is contained in:
1 parent
66f23c1aed
commit
bc01fdb59a
2 files changed
+2
-2
No files matched your search
@@ -59,7 +59,7 @@ function growRegion(inputs, data) {
|
||||
}
|
||||
edge = newedge;
|
||||
}
|
||||
return new ImageData(outputData, width, height);
|
||||
return {data: outputData, width: width, height: height};
|
||||
}
|
||||
|
||||
function next4Edges(edge) {
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in new issue
Block a user