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

Reply via email to