ThinkGeo.com    |     Documentation    |     Premium Support

Bugs found using Internet Explorer 6.0 (Dynamic layer with custom raster data)

Hi,


In response to the custom raster data thread,


Let me explain how i am using Mapsuite. This issue is not seen on IE7 and firefox but still needed to be fixed since many of the potential clients are using IE6.


Currently, I am loading 2 layers; static layer (world shape file included with Mapsuite) and another dynamic layer (custom raster data from external source).  The static layer always got loaded first and then the custom raster data. The static layer is needed so that if invalid coordinates are passed to the external source then i will stop the dynamic layer from drawing and display the world shape layer.


Example, if East > 180 or North > 90, etc, then do not try to generate bitmap data instead display the world shape file behind the dynamic layer.


This is all good until i tried to zoom into the area where the East > 180. A blank apaque layer get displayed as the dynamic layer (nothing is drawn) so this blocked the world static layer behind. This is strange because I can see through it using IE7 and firefox 3. 


So if i turn off the dynamic layer in the layer-switcher (IE6), the world shape file is visible again. How should i resolve this problem ? 


I should be doing things right as it's working in the later browsers. 


Is there a way to turn off the dynamic layer (Meaning that layer is totally removed instead of an invisible layer) as a temporaily solution in the " protected override void DrawCore" function ?


Thanks! 


 


 


 


 



I'm not sure I understand the issue fully but you can clear all the Dynamic layers by using the following code which will remove all of them.



Map1.DynamicLayers.Clear()



Can you attach a screenshot of what is happening?  That might help me better understand the issue.


Thanks!



The dynamic layers are rendered as png layers, however only ie7 and above support png transparency, that is why in IE 6 it is opaque and in IE7 it works ok.



Clava thanks for the input.  I’m not sure there is much we can do then if IE6 doesn’t support png transparency.  Any ideas?

I found a workaround by laying the world shape layer on top which is not a good solution. 
  
 That means now i have 1 static world layer and 1 dynamic world layer. 
  
 Anyone knows a better idea ? 
  
 Thanks!

Well, 
 You guys are using OpenLayers to actually render the maps on the client, so I guess they are taking care of all the javascript to render the image on the client.   
 I know you can dynamically apply a directx filter in Internet Explorer that would support PNG transparency, so I will look into it and see if I can get it to work.  
 I did it once with a previous version of your product to overlay markers on the map in an IE6 browser, and was having the same problem with the tranperancy and the markers had an opaque background, added the directx filter for IE browsers and it worked like a charm.  Well let me see what I can do…

Hey Batman, 
 What version of OpenLayers are you guys including with your API? 
 Just reviewed the code for version 2.7 and it looks like they have the DirectX filter applied to the layers I am going to test their API on IE6 browser and see if show the transparency, if not will try and modify the js to add the filtering.

Clava, 
  
 Currently we are using 2.6 but we are looking to upgrade it to 2.7 soon. 
  
 Thanks!