[OpenLayers-Users] Display Map from MapServer with OpenLayers
Christopher Schmidt
crschmidt at metacarta.com
Wed May 9 10:05:16 EDT 2007
On Wed, May 09, 2007 at 03:18:20PM +0200, Pfirter Lukas wrote:
> map = new OpenLayers.Map( 'map' );
> layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
> "http://domain/cgi-bin/mapserv?map=/path/to/project.map&request=getcapab
> ilities&service=WMS&version=1.0.0", {layers: 'basic'} );
> map.addLayer(layer);
Try this instead:
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://domain/cgi-bin/mapserv?map=/path/to/project.map", {layers: 'basic'} );
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Users
mailing list