Hello. I want to add exaggerated elevation layer. But doesn't working on internet explorer.
ArcGIS API for JavaScript Sandbox
Please check this page on chrome and explorer. Exaggeration does working on chrome but on IE doesn't working.
Thanks inadvance.
Solved! Go to Solution.
Looks like a problem with the sample using a method (forEach) that isn't supported in IE. Can you try switching out the forEach loop in the sample with this and see if it resolves the problem in IE.
var i,values= data.values, len = data.values.length;
for( i=0; i < len; i++){
var value = values[i] * exaggeration;
values[i] = value;
}
I can reproduce the error here, In IE the console shows error messages for the Tiles
Tile 1,0,0 layer 1/0 error
Tile 1,0,1 layer 1/0 error
.
.
.
i have got same errors
Looks like a problem with the sample using a method (forEach) that isn't supported in IE. Can you try switching out the forEach loop in the sample with this and see if it resolves the problem in IE.
var i,values= data.values, len = data.values.length;
for( i=0; i < len; i++){
var value = values[i] * exaggeration;
values[i] = value;
}
Thanks for answer. Working good now.
At this time exaggeration doesn't working in Chrome.
Below code from your samples page working with Chrome only
data.values.forEach(function(value, index, values) {
// each value represents an elevation sample for the
// given pixel position in the tile. Multiply this
// by the exaggeration value
values[index] = value * exaggeration;
});
Below code from Kelly working with IExplorer only
var i,values= data.values, len = data.values.length;
for( i=0; i < len; i++){
var value = values * exaggeration;
values = value;
}
What can we do for solve this problem in both of browsers
Thanks
Just tested it out this morning and the sample works for me on the latest Chrome with the modified loop for IE. Tested using the sandbox version of the code and replacing the loop code with the IE friendly version.