Hi,
i have got a problem using openlayers with a mapserver.
It seems that my use of the constructor doesnt work for any reason.
The mapfile which should be viewed has already worked (in PHP).

Could we help me please ? Is it the good way to create a openlayers ? :/

var map = new OpenLayers.Map('map');
var wms = new OpenLayers.Layer.WMS( "ICPE",
        'http://localhost/cgi-bin/mapserv?/projet2009/ICPE.map',
        {layers: 'roads'},
        {singleTile: true, opacity: 0.5, isBaseLayer : true}
        );
map.addLayer(wms);

Thanks a lots !!!!!



_______________________________________________
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users

Reply via email to