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