Thanks Steve for your response. Unfortunately, it does not work with the change. wrapDateLine was working before with pink tiles being wrapped but with the change it does not work either. I still could not figure out the problem.
Thanks, Mukesh --- On Wed, 5/1/11, [email protected] <[email protected]> wrote: From: [email protected] <[email protected]> Subject: RE [OpenLayers-Users] Layer.WMS displaying pink tiles To: "Mukesh Subedee" <[email protected]> Cc: [email protected], [email protected] Date: Wednesday, 5 January, 2011, 2:48 AM You might try this var I = new OpenLayers.Layer.WMS("region", "http://localhost/cgi-bin/mapserv?map=/home/public_html/mapserverdemo/try5.map&", {layers: 'ecoregion',wrapDateLine: true,format: 'image/jpeg'} ); Mukesh Subedee <[email protected]>@lists.osgeo.org Envoyé par : [email protected] 2011-01-04 14:24 A [email protected] cc Objet [OpenLayers-Users] Layer.WMS displaying pink tiles Hi, I am trying to use Layer.WMS instead of Layer.MapServer. I have Layer.MapServer working but while trying the same MapFile with Layer.WMS, am getting pink tiles. I've Layer.WMS constructor as: var I = new OpenLayers.Layer.WMS("region", "http://localhost/cgi-bin/mapserv?map=/home/public_html/mapserverdemo/try5.map&", {layers: 'ecoregion'}, {wrapDateLine: true}, {format: 'image/jpeg'}, {SRS: 'EPSG:4326'} ); The same URL works for Layer.MapServer and I've WMS_CLIENT and WMS_SERVER installed that I can see with "./mapserv -v". Do I have to make any changes in URL and/or Options than in Layer.MapServer? Here is my image URL: http://localhost/cgi-bin/mapserv?map=/home/public_html/mapserverdemo/try5.map&LAYERS=ecoregion&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&BBOX=0,-180,90,-90&WIDTH=256&HEIGHT=256 Thanks in advance! Mukesh _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
