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

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


Sorry, cut&paste error:

var params = {
*             mapname: 'TestMap',*
*             session: ........................your sess................*
             BEHAVIOR: 2,
             hideLayers: hideLayersVar,
*              showLayers: ......................................all the
layers to show...........................................*,
*useAsyncOverlay: true,*
             }

var options = {
             singleTile: true,
             isBaseLayer: false,
             visibility: true,
             transitionEffect: "resize",
*              /* useAsyncOverlay: true, */* //<- remove
*useOverlay:true*
       }

On Tue, Mar 2, 2010 at 3:06 PM, Pietro Ianniello <pietro.ianniello at gmail.com
> wrote:

> //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
>



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


More information about the mapguide-users mailing list