views:

37

answers:

3

hola a todos, tengo probleas con este linea , ¿Como configuro un servicio "WMS"?

var mapser = new OpenLayer.Layer.MapServer("Campus","http://my.host/cgi-bin/mapserv",{'wps/mapa.map'});

gracias por cualquier repuesta

A: 

I'm sorry - I don't speak Spanish so I can't easily tell exactly what your problem is. If you're looking for a WMS server you can work with then try GeoServer. It's open source, a little clunky to get started with, but worked well for me (until I didn't need it anymore).

Sarge
A: 

Well that last argument isn't a valid object literal. Might be your problem right there.

XHR
+1  A: 

ver si funciona:

var mapser = new OpenLayer.Layer.MapServer("Campus","http://my.host/cgi-bin/mapserv",{wms:"mapa.map"});

Además, ¿por qué estás usando OpenLayer.Layer.MapServer, y no OpenLayer.Layer.WMS? MapServer es problemático.

DaveS
he gracias por contestar y si tienes razon es mejor como wms
ricardo