[OpenLayers-Users] OpenLayers.Layer.Image overlay?

Bobby Braswell rob.braswell at unh.edu
Wed May 30 12:45:15 EDT 2007


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




More information about the Users mailing list