Sorry, cut&paste error:<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><b>useAsyncOverlay: true,</b><br>
}<br><br>var options = {<br>
singleTile: true,<br>
isBaseLayer: false,<br>
visibility: true,<br> transitionEffect:
"resize",<br><b>
/* useAsyncOverlay: true, */</b> //<- remove<br><b>useOverlay:true</b><br>
}<br><br><div class="gmail_quote">On Tue, Mar 2, 2010 at 3:06 PM, Pietro Ianniello <span dir="ltr"><<a href="mailto:pietro.ianniello@gmail.com">pietro.ianniello@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
//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]<div class="im"><br><br>var options = {<br>
singleTile: true,<br>
isBaseLayer: false,<br>
visibility: true,<br></div> 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:<div class="im"><br><br>OpenLayers.DOTS_PER_INCH = 96;<br>
<br></div>var extent = new OpenLayers.Bounds(........................extent of map.....................);<div class="im"><br> var mapOptions = {<br> maxExtent: extent,<br> maxResolution: 'auto'<br>
};<br></div>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><font color="#888888"><br>Pietro Ianniello<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Clausola di riservatezza: Le informazioni contenute in questo messaggio di posta elettronica e gli eventuali documenti allegati sono riservate e confidenziali ad uso esclusivo del destinatario e ne è vietata la diffusione e la riproduzione in qualunque modo eseguita. Qualora Lei non fosse la persona a cui il presente messaggio è destinato, La invito ad eliminarlo ed a non leggerlo, dandone gentilmente comunicazione al mittente. I Dati sono trattati in accordo al D.lgs n° 196 del 30.06.2003 “Codice in materia dei dati personali”<br>