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

Erik Uzureau erik.uzureau at metacarta.com
Tue Jun 12 23:20:26 EDT 2007


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 <rob.braswell at unh.edu> 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
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070612/40754677/attachment.html


More information about the Users mailing list