[postgis-users] pb OpenLayers using a local Mapserver
Quentin Page
Quentin.Page at ensg.eu
Sun Mar 8 13:14:55 PDT 2009
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 !!!!!
More information about the postgis-users
mailing list