[mapguide-users] Re: Undelivered Mail Returned to Sender

Pietro Ianniello pietro.ianniello at gmail.com
Tue Mar 2 09:06:38 EST 2010


//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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20100302/21f22e53/attachment.html


More information about the mapguide-users mailing list