[OpenLayers-Users] RV: IE9 WMS layer problem

David Alda Fernandez de Lezea dalda at hazi.es
Mon Oct 21 00:53:37 PDT 2013


Hi again,

I've done some research and it seems that there's a problem regarding IE9 and iframes. Most solutions say that you should set the attribute allowtransparency=true while creating the iframe and then modify the iframe's body by setting it's style's background color to "transparent", but the thing is that the iframe doesn't seem to have a body so I can't access it and change it's background color. Does anybody know what could be happening? What I'm doing wrong?

This is my code.

var iframes = document.getElementsByTagName('iframe'); 
for(var i=0; i<iframes.length; i++){
	iframes[i].allowTransparency = true;
	iframes[i].document.body.style.backgroundColor = "transparent";
}

Thanks in advance.

Regards,


 
David Alda Fernández de Lezea
 
UNIDAD DE EMPRENDIMIENTO Y DESARROLLO RURAL
Area de Sistemas de Información Geográfica, Planificación Territorial y Forestal
 
Granja Modelo s/n
01192 Arkaute Araba
T 627923170 F 945 003 290
dalda at hazi.es | www.hazi.es
 


 
*********************  LEGE OHARRA   *******************   AVISO LEGAL   *******************   DISCLAIMER   ******************
Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera debekatua dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta kontserbatu gabe.
Este mensaje es personal y confidencial y su uso no autorizado está prohibido legalmente. Si usted no es el destinatario, proceda a borrarlo, sin reenviarlo ni conservarlo.
This message is personal and confidential, unauthorised use is legally prohibited. If you are not the intended recipient, delete it without resending or backing it.

-----Mensaje original-----
De: openlayers-users-bounces at lists.osgeo.org [mailto:openlayers-users-bounces at lists.osgeo.org] En nombre de David Alda Fernandez de Lezea
Enviado el: jueves, 17 de octubre de 2013 15:05
Para: openlayers-users at lists.osgeo.org
Asunto: [OpenLayers-Users] IE9 WMS layer problem

Hi there,
 
I'm facing some strange behaviour regarding IE9 web browser and an app we developed a couple of years ago. It works fine for IE8 and IE7, but I don't really know why it doesn't work porperly with IE9. The thing is that I load a WMS.Post layer with an external SLD into my map. The features I want to mark appear correctly but the rest of the space left is shown in black with some kind of opacity. I'm using Openlayers 2.9, I know it's an old version but there are no plans of migrating it in a short term so I've got to solve this.
 
As you can see in the image below there some provinces coloured, but the rest of the map it's shown in black... any ideas what would happening?
 
http://imageshack.us/photo/my-images/51/rdzx.png/ 
 
Thanks in advance.
 
Regards,
 

 

David Alda Fernández de Lezea

 

UNIDAD DE EMPRENDIMIENTO Y DESARROLLO RURAL

Area de Sistemas de Información Geográfica, Planificación Territorial y Forestal

 

Granja Modelo s/n

01192 Arkaute Araba
T 627923170 F 945 003 290

dalda at hazi.es <blocked::mailto:correo_electronico at hazi.es>  | www.hazi.es <blocked::http://www.hazi.es/> 

 



<blocked::http://www.hazi.es/>  

*********************  LEGE OHARRA   *******************   AVISO LEGAL   *******************   DISCLAIMER   ******************

Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera debekatua dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta kontserbatu gabe.

Este mensaje es personal y confidencial y su uso no autorizado está prohibido legalmente. Si usted no es el destinatario, proceda a borrarlo, sin reenviarlo ni conservarlo.

This message is personal and confidential, unauthorised use is legally prohibited. If you are not the intended recipient, delete it without resending or backing it.

_______________________________________________
Users mailing list
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users


More information about the Users mailing list