Return ImageData-like objects for IE support
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
@@ -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({
|
||||||
|
|||||||
Reference in New Issue
Block a user