[OpenLayers-Users] overlay layers masking baselayers issue?

Andreas Hocevar ahocevar at opengeo.org
Mon Oct 12 09:06:50 EDT 2009


Hi,

in IE6, transparent PNGs don't work. The best solution is to use 
image/gif as image format on IE6. More recent versions of IE work fine.

Regards,
Andreas.

runningcodez wrote:
> Hi list,
>
> I have a very strange issue with my application.I have 4 base layers of
> google and another 7 no of overlay layers.I have arranged my baselayers in a
> tree structure  with checkbox for each overlay layer which is mean to
> display/hide corresponding overlay layer with check/uncheck of the
> corresponding checkboxes.So far Firefox is working fine as desired.But  in
> IE,the overlay layer  completely masks the baselayers beneath and acts as if
> it is a baselayer.I couldnt find a solution.But I guess the key might be
> some config option change.Any help is deeply appreciated. I am pasting the
> snippets of codes.
>
> This is how I add base layers.
> yahSAT = new OpenLayers.Layer.Yahoo("Yahoo Sattelite",{'type':
> YAHOO_MAP_SAT,'sphericalMercator':spMerc,minZoomLevel:minizoom,maxZoomLevels:maxzoom},{isBaseLayer:true,buffer:0});
>                 gooPHY = new OpenLayers.Layer.Google("GoogleMap",{type:
> G_PHYSICAL_MAP,'sphericalMercator':
> true,minZoomLevel:minizoom,maxZoomLevels:maxzoom},{isBaseLayer: true,buffer:
> 1});
>                 gooSTR = new OpenLayers.Layer.Google("Google
> Streets",{sphericalMercator:spMerc,minZoomLevel:minizoom,maxZoomLevels:maxzoom},{isBaseLayer:
> true,buffer: 0});
>                 gooHYB = new OpenLayers.Layer.Google("GoogleHyb",{type:
> G_HYBRID_MAP,
> sphericalMercator:spMerc,minZoomLevel:minizoom,maxZoomLevels:maxzoom},{isBaseLayer:true,buffer:0});
>                 gooSAT = new OpenLayers.Layer.Google("GoogleSat",{type:
> G_SATELLITE_MAP,sphericalMercator:spMerc,minZoomLevel:minizoom,maxZoomLevels:maxzoom},{isBaseLayer:true,buffer:0});
>
> 		map.addLayers([yahSAT,gooPHY,gooSTR,gooHYB,gooSAT]);
>
> And here is a couple of overlay layers
>
> layer12 = new OpenLayers.Layer.WMS(
> 		    "ibin:eg_roads",
> 		    "http://localhost/geoserver/wms",
> 		    {layers:'ibin:eg_roads',height:'550',styles:'',width:
> '350',srs:'EPSG:4326',format: format,transparent :true},//tiled:
> 'true',//tilesOrigin : "8089099.95,853577.878125"          
> 		    {'opacity': 1,isBaseLayer: false,singleTile: true, ratio: 1} 
>                 );
>                 layer12.setVisibility(0);
>                 layer13 = new OpenLayers.Layer.WMS(
> 		    "ibin:eg_grids3785",
> 		    "http://localhost/geoserver/wms",
> 		    {layers:'ibin:eg_grids3785',height:'550',styles:'',width:
> '350',srs:'EPSG:900913',format: format,transparent :true},//tiled:
> 'true',//tilesOrigin : "8089099.95,853577.878125"          
> 		    {opacity: 1,isBaseLayer: false,singleTile: true, ratio: 1} 
>                 );
>                 layer13.setVisibility(1);
>
> Thanks in advanec.
> regards
> Sumith
>   


-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.




More information about the Users mailing list