Hi Rob,

Try this?


navmap = new OpenLayers.Layer.Image( 'Nav', 'http://waage.sr.unh.edu/
data/13283_1.png',
              new OpenLayers.Bounds(-70.7700123,42.9445234,-70.5597821,
43.1740090),
              new OpenLayers.Size(8563, 12740),
              {'maxResolution': 'auto', 'isBaseLayer': false }
);

to get it to be an overlay. as for the image quality... not sure how to help
you with that.

Erik


On 5/30/07, Bobby Braswell <[EMAIL PROTECTED]> wrote:


Hi-

I have a png image that shows up nicely as a base layer, but I'd
actually like to include it as an overlay. I think I just need to say
"isBaseLayer: false" in the declaration, but can't figure out exactly
how to do that.

This is what I have now:

navmap = new OpenLayers.Layer.Image( 'Nav', 'http://waage.sr.unh.edu/
data/13283_1.png',
                new OpenLayers.Bounds(-70.7700123,42.9445234,-70.5597821,
43.1740090),
                new OpenLayers.Size(8563, 12740),
                {maxResolution: 'auto'}
);

If I try to include this image as a mapserver WMS layer in the usual
way, the resulting image quality (as it appears in the browser) is
very poor for some reason. I mention this because perhaps there is
some solution to the problem from that angle. I can't figure out why
mapserver is generating an image that looks so much different from
the original.

Best,
Rob Braswell
University of New Hampshire

_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to