//showLayers: null, <- PROBLEM!<br>groupName: "Test layer", <- I don't know<br>
<br>Set layer groups to "Group is visible at startup"<br><br><b>Read in Dev's guide about layer visibility!</b><br><br>Use the example I have given, modify it for you map. Change ONE thing at time and see results. You will find the error.<br>
<br>Ha!<br>Set [this always gives problem to - i never remember!!!] <br><b>useAsyncOverlay</b> in params<br><br>set<br><b>useOverlay</b> in options<br><br>For ovelays use mapname/session, not mapdefinition<br><br><br>var params = {<br>
<b> mapname: 'TestMap',</b><br><b> session: ........................your sess................</b><br> BEHAVIOR: 2,<br> hideLayers: hideLayersVar,<br><b>
showLayers: ......................................all the layers to show...........................................</b><br> }<br>
I have never used the other params you set, and I don't know if they are
needed/used [see OpenLayers source code to find answer]<br><br>var options = {<br>
singleTile: true,<br>
isBaseLayer: false,<br>
visibility: true,<br> transitionEffect: "resize",<br>
useAsyncOverlay: true,<br><b>useOverlay:true</b><br>
}<br><br>
I have never used the other opts you set, and I don't know if they are
needed/used [see OpenLayers source code to find answer]<br><br>Do you have a base layer set before your test layer? without OpenLayers won't work.<br><br>You must at least set:<br><br>OpenLayers.DOTS_PER_INCH = 96;<br>
<br>var extent = new OpenLayers.Bounds(........................extent of map.....................);<br> var mapOptions = {<br> maxExtent: extent,<br> maxResolution: 'auto'<br>
};<br>var map = new OpenLayers.Map('xxx', mapOptions);<br><br>ADD A BASE LAYER [OpenLayers speaking]<br><br>I repeat: Use the example I have given, modify it for you map. Change ONE thing at
time and see results. You will find the error.<br><br>Regards<br><br>Pietro Ianniello<br>