Hi all, <br><br>I'm loading a GML file that contains a density grid of values.<br><br>In firefox it is slow, but the same file in IE takes almost five minutes to load.<br>Does anyone have an idea how to make it faster????<br>
<br>The GML contains 1000 polygons that have 10 classes.<br>
<br>To load the file I'm using the code:<br><br> //////// ADD THE LAYER OF THE QUERY \\\\\\\\<br> var styleMap = new OpenLayers.StyleMap({fillOpacity: 1});<br> var lookup = {<br> 9: {fillColor: "#ffffff", fillOpacity: 0.5},<br>
8: {fillColor: "#ffb4b4", fillOpacity: 0.5},<br> 7: {fillColor: "#ff1e1e", fillOpacity: 0.5},<br> 6: {fillColor: "#ff9b9b", fillOpacity: 0.5},<br> 5: {fillColor: "#ffaaaa", fillOpacity: 0.5},<br>
4: {fillColor: "#ff8282", fillOpacity: 0.5},<br> 3: {fillColor: "#ff6969", fillOpacity: 0.5},<br> 2: {fillColor: "#ff5050", fillOpacity: 0.5},<br> 1: {fillColor: "#ff3737", fillOpacity: 0.5},<br>
0: {fillColor: "#ff0000", fillOpacity: 0.5}<br> };<br> styleMap.addUniqueValueRules("default", "type", lookup);<br> var mylayer = new OpenLayers.Layer.GML("GML", "../KML/simple.xml",{styleMap: styleMap} ); <br>
map.addLayer(mylayer); <br><br>Thanks<br><font color="#888888"><br>Carlos</font>