did you try this 'just'on mapserver, ie. without OpenLayers...? To me the URL to mapserver just seems to be wrong , I suspect that i.s.o. 'http://localhost/cgi-bin/mapserv?/projet2009/ICPE.map', it should read 'http://localhost/cgi-bin/mapserv?map=/projet2009/ICPE.map',
-- Barend Köbben International Institute for Geo-information Sciences and Earth Observation (ITC) PO Box 6, 7500AA Enschede (The Netherlands) ph: +31-(0)534874253 _____ Van: postgis-users-boun...@postgis.refractions.net namens Quentin Page Verzonden: zo 8-3-2009 21:14 Aan: postgis-users@postgis.refractions.net Onderwerp: [postgis-users] pb OpenLayers using a local Mapserver 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 International Institute for Geo-Information Science and Earth Observation (ITC) Chamber of Commerce: 410 27 560 E-mail disclaimer The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission.
_______________________________________________ postgis-users mailing list postgis-users@postgis.refractions.net http://postgis.refractions.net/mailman/listinfo/postgis-users