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.
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.
<SPAN class="keyword token">var</SPAN> i<SPAN class="punctuation token">,</SPAN>values<SPAN class="operator token">=</SPAN> data<SPAN class="punctuation token">.</SPAN>values<SPAN class="punctuation token">,</SPAN> len <SPAN class="operator token">=</SPAN> data<SPAN class="punctuation token">.</SPAN>values<SPAN class="punctuation token">.</SPAN>length<SPAN class="punctuation token">;</SPAN> <SPAN class="keyword token">for</SPAN><SPAN class="punctuation token">(</SPAN> i<SPAN class="operator token">=</SPAN><SPAN class="number token">0</SPAN><SPAN class="punctuation token">;</SPAN> i <SPAN class="operator token"><</SPAN> len<SPAN class="punctuation token">;</SPAN> i<SPAN class="operator token">++</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">{</SPAN> <SPAN class="keyword token">var</SPAN> value <SPAN class="operator token">=</SPAN> values<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">*</SPAN> exaggeration<SPAN class="punctuation token">;</SPAN> values<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value<SPAN class="punctuation token">;</SPAN> <SPAN class="punctuation token">}</SPAN> <SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
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.
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
Thanks for answer. Working good now.
Tile 1,0,0 layer 1/0 error
Tile 1,0,1 layer 1/0 error
.
i have got same errors
I can reproduce the error here, In IE the console shows error messages for the Tiles
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.