starting a new thread to focus on this problem. I am trying to
understand how an Image layer works.

My map is like so

            map = new OpenLayers.Map('map',  {
                projection: new OpenLayers.Projection("EPSG:900913"),
                units: "m",
                maxResolution: 156543.0339,
                maxExtent: new OpenLayers.Bounds(-20037508.34,
-20037508.34, 20037508.34, 20037508.34)
            });

I am adding Image layers to it like so

            new OpenLayers.Layer.Image(
                layerName,
                "http://server/path/to/image.gif";,
                new OpenLayers.Bounds(409341, 515662, 653341, 699662),
                new OpenLayers.Size(244, 185),
                {
                    format: "image/gif",
                    transparent: true,
                    isBaseLayer: false,
                    reproject: true,
                    displayInLayerSwitcher: false
                },
                {
                    visibility: false,
                    singleTile: true,
                    sphericalMercator: true
                }
            );


Well, nothing shows up even though Firebug shows no error, and yes,
the image is sent by the server (I can see the image in FIrebug).

My question is -- how is the image being draped on the map? There is
no projection information in the image, but I am assuming that my
supplied bounds and pixel dims are helping OL calculate where to put
the image, no?

Any idea why my images may not be showing up? How can I troubleshoot this?



-- 
Puneet Kishor http://www.punkish.org
Carbon Model http://carbonmodel.org
Charter Member, Open Source Geospatial Foundation http://www.osgeo.org
Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor
Nelson Institute, UW-Madison http://www.nelson.wisc.edu
-----------------------------------------------------------------------
Assertions are politics; backing up assertions with evidence is science
=======================================================================
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to