[OpenLayers-Users] WMS error with openlayers

Arnd Wippermann arnd.wippermann at web.de
Sun Jan 31 08:02:41 EST 2010


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: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von subhajeet sur
Gesendet: Sonntag, 31. Januar 2010 10:40
An: users at openlayers.org
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.




More information about the Users mailing list