[OpenLayers-Users] display an image file in openlayers

Phil Scadden p.scadden at gns.cri.nz
Tue Nov 15 21:02:59 EST 2011


Well there are a range of issues. No js errors, but you ask for map to 
be created in 900913 but image is what? You are specifying bounds in 
lat/long. If you want map to switch to the srs of image, then need to 
specify it and isBaselayer needs to be true. To have image visible at 
all when zoomed in further than the maximum pixel resolution, then I 
think you need trunk version of OL and see this: 
http://trac.osgeo.org/openlayers/ticket/3531. Maybe this is only a 
problem for "city lights" and not your real image?
I am not sure whether it applies to image, I use TMS for images.

I work to get OL setup for just that image, using right projection, 
extents in the native SRS of the image and then go from there. Remember 
that OL does not reproject image data. You have to set it up to match 
the image.

Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.



More information about the Users mailing list