Hi, with a right click on the pink tile you can get the url of the image. Test it in the browser and you should get an error message. Perhaps it's the wrong parameter SRS (it's a wms parameter) or the absent parameter map_projection (mapserver parameter). You should also declare options for your map object. I think by default OpenLayers uses EPSG:4326 with the extent -180,-90,180,90. Arnd
_____ Von: [email protected] [mailto:[email protected]] Im Auftrag von YOUNESS ELMEDRAOUI Gesendet: Freitag, 17. Juli 2009 13:06 An: [email protected] Betreff: [mapserver-users] openlayers/mapserver Hi, i created my wms server and i test them with a GetCapabilities and GetMap REQUEST : http://localhost:81/cgi-bin/mapserv.exe?map=C:/OLWebSite/App_Data/olvbmapfil el.map <http://localhost:81/cgi-bin/mapserv.exe?map=C:/OLWebSite/App_Data/olvbmapfi lel.map&REQUEST=GetCapabilities&SERVICE=WMS&VERSiON=1.1.0> &REQUEST=GetCapabilities&SERVICE=WMS&VERSiON=1.1.0 http://localhost:81/cgi-bin/mapserv.exe?map=C:/OLWebSite/App_Data/olvbmapfil el.map <http://localhost:81/cgi-bin/mapserv.exe?map=C:/OLWebSite/App_Data/olvbmapfi lel.map&REQUEST=GetMap&SERVICE=WMS&VERSiON=1.1.0&Layers=compfun,zone&SRS=EPS G:32632&STYLE=&BBox=1143759,4417539,1146436,4420390&FORMAT=image/png&WIDTH=4 00&HEIGHT=400> &REQUEST=GetMap&SERVICE=WMS&VERSiON=1.1.0&Layers=compfun,zone&SRS=EPSG:32632 &STYLE=&BBox=1143759,4417539,1146436,4420390&FORMAT=image/png&WIDTH=400&HEIG HT=400 and my tests is ok. now, i want to displat data with openlayers. i tested this code but it doesn't work. map = new OpenLayers.Map( 'map' ); layer = new OpenLayers.Layer.MapServer("ol demo", "http://localhost:81/cgi-bin/mapserv.exe?map=C:\OLWebSite\App_Data\olvbmapfi lel.map&", {Layers:'compfun',SRS:'EPSG:32632'} ); see result in attachement. can any one help me plz? do you have an exemple for displayind data with openlayers based on mapfile? Best regards, Youness ELMEDRAOUI Les informations figurant sur cet e-mail ont un caractère strictement confidentiel et sont exclusivement adressées au destinataire mentionné ci-dessus.Tout usage, reproduction ou divulgation de cet e-mail est strictement interdit si vous n'en êtes pas le destinataire.Dans ce cas, veuillez nous en avertir immédiatement par la même voie et détruire l'original. Merci
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
