[OpenLayers-Users] png on spherical mercator

Jonathan Wolfe Jonathan.Wolfe at noaa.gov
Sun Sep 6 06:25:03 EDT 2009


Hi,

Am I using the OpenLayers.Layer.Image correctly? All I want to do is 
overlay a png onto a google projection...The layer shows up grayed out 
and nothing is displayed.

var graphic = new OpenLayers.Layer.Image(
                'Nautical Chart',
                './nautical_chart4.png',
                new OpenLayers.Bounds(-135.0, 17.0, -115.0, 
62),             <-- I tried using x,y values, but neither worked.
                new OpenLayers.Size(276,212),
                {numZoomLevels: 3,
                    isBaseLayer: false};
            );
map.addLayer(graphic);

Thanks for your help!
Jonathan




More information about the Users mailing list