<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Testo fumetto Carattere";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-US;}
span.StileMessaggioDiPostaElettronica17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.TestofumettoCarattere
        {mso-style-name:"Testo fumetto Carattere";
        mso-style-priority:99;
        mso-style-link:"Testo fumetto";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=IT link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US>I use an Image Layer to draw some data at specific locations on my web application using gwt-openlayers. Assume the original image is 400x400 pixels. Whem I zoom in the map, the image is stretched. The problem is that the stretch effect is 'blurry'. How can I avoid this blurry effect and instruct openlayers to apply a normal 'raw' stretch on the image? Is there some options somewhere? When I say blurry, I mean this:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>(see fig1.pngf in attachments)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>The image above demonstrate the concept. I have a 400x400 pixels image. The image is formed by 4 sub squares 200x200 pixels each. Top left square is blue, top right is green, bottom left is yellow and bottom right is red. When I draw this image as an image layer in openlayers and I zoom the map, the center of the image gets blurry and the four colors are blended. Is there a way to avoid this blur effect and have a 'raw' stretch? Thanks.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Here's the code (in gwt-openlayers) I use to create the image layer:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>org.gwtopenmaps.openlayers.client.layer.ImageOptions imgOptions = new org.gwtopenmaps.openlayers.client.layer.ImageOptions();<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>imgOptions.setIsBaseLayer(false);<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>imgOptions.setTransitionEffect(TransitionEffect.RESIZE);<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>imgOptions.setAlwaysInRange(true);<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>imgOptions.setLayerOpacity(0.7);<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>imgOptions.setProjection("EPSG:900913");<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>imgLayer = new org.gwtopenmaps.openlayers.client.layer.Image("my_name", null, bounds, new Size(1, 1), imgOptions);<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>map.addLayer(imgLayer);<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><div style='mso-element:para-border-div;border:none;border-bottom:solid windowtext 1.0pt;padding:0cm 0cm 1.0pt 0cm'><p class=MsoNormal style='border:none;padding:0cm'><span lang=EN-US style='font-size:10.0pt;color:#333333;mso-fareast-language:IT'><o:p> </o:p></span></p></div><p class=MsoNormal><span style='font-size:10.0pt;color:#333333;mso-fareast-language:IT'>Matteo Galletti</span><span style='font-size:10.0pt;mso-fareast-language:IT'> <br><span style='color:#333333'>ELDES s.r.l.<br>via di Porto 2/B, 50018<br>Scandicci (FI) ITALY</span></span><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:gray;mso-fareast-language:IT'><br></span><span style='font-size:10.0pt;color:blue;mso-fareast-language:IT'><a href="mailto:m.galletti@eldes.it"><span style='color:blue'>m.galletti@eldes.it</span></a></span><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:blue;mso-fareast-language:IT'><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:justify;line-height:15.0pt'><i><span lang=EN-GB style='font-size:7.5pt;font-family:"Times New Roman","serif";color:gray;mso-fareast-language:IT'>The information contained in this e-mail and any attachments is confidential and may well also be legally privileged. If you are not among the named recipients, please notify the sender immediately by reply e-mail and then delete this message from your system, do not use the contents for any purpose whatsoever nor disclose them to anyone else.</span></i><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:IT'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div></body></html>