Hi,

Question 2 as the message said, because you use a parameter layer instead of
layers

Change layer:'urbanareas' -> layers:'urbanareas', then your WMS should work.

Arnd


-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im
Auftrag von subhajeet sur
Gesendet: Sonntag, 31. Januar 2010 10:40
An: [email protected]
Betreff: [OpenLayers-Users] WMS error with openlayers

Dear all,

I'm new to openlayers and mapserver. I'm trying to run a particular mapfile
via mapserver. I've encountered the following errors:

1. On using OpenLayers.Layers.MapServer:
        Base layer isn't gettting displayed when the overlays are selected.
2. On using OpenLayers.Layers.WMS:
        Following error message is generated inspite of defining METADATA
 msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the
LAYERS parameter.

Please find the attached mapfile and the html template.
Could anyone please help me out.

Thanks in advance.

_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to