<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=734543919-17072009><FONT face=Arial 
color=#0000ff size=2>Hi,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=734543919-17072009><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=734543919-17072009><FONT face=Arial 
color=#0000ff size=2>with&nbsp;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.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=734543919-17072009><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=734543919-17072009><FONT face=Arial 
color=#0000ff size=2>Perhaps it's the wrong parameter SRS (it's a wms parameter) 
or the absent parameter map_projection (mapserver 
parameter).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=734543919-17072009><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=734543919-17072009><FONT face=Arial 
color=#0000ff size=2>You should also declare options for your map object. I 
think by default OpenLayers uses EPSG:4326 with the extent 
-180,-90,180,90.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=734543919-17072009><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=734543919-17072009><FONT face=Arial 
color=#0000ff size=2>Arnd</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Von:</B> mapserver-users-bounces@lists.osgeo.org 
[mailto:mapserver-users-bounces@lists.osgeo.org] <B>Im Auftrag von </B>YOUNESS 
ELMEDRAOUI<BR><B>Gesendet:</B> Freitag, 17. Juli 2009 13:06<BR><B>An:</B> 
mapserver-users@lists.osgeo.org<BR><B>Betreff:</B> [mapserver-users] 
openlayers/mapserver<BR></FONT><BR></DIV>
<DIV></DIV><FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" 
size=2>
<DIV>Hi,<BR>
<DIV><BR>i created my wms server and i test them with a GetCapabilities and 
GetMap&nbsp;REQUEST :</DIV>
<DIV>&nbsp;</DIV>
<DIV><A 
href="http://localhost:81/cgi-bin/mapserv.exe?map=C:/OLWebSite/App_Data/olvbmapfilel.map&amp;REQUEST=GetCapabilities&amp;SERVICE=WMS&amp;VERSiON=1.1.0" 
target=blank>http://localhost:81/cgi-bin/mapserv.exe?map=C:/OLWebSite/App_Data/olvbmapfilel.map&amp;REQUEST=GetCapabilities&amp;SERVICE=WMS&amp;VERSiON=1.1.0</A></DIV>
<DIV>&nbsp;</DIV>
<DIV><A 
href="http://localhost:81/cgi-bin/mapserv.exe?map=C:/OLWebSite/App_Data/olvbmapfilel.map&amp;REQUEST=GetMap&amp;SERVICE=WMS&amp;VERSiON=1.1.0&amp;Layers=compfun,zone&amp;SRS=EPSG:32632&amp;STYLE=&amp;BBox=1143759,4417539,1146436,4420390&amp;FORMAT=image/png&amp;WIDTH=400&amp;HEIGHT=400" 
target=blank>http://localhost:81/cgi-bin/mapserv.exe?map=C:/OLWebSite/App_Data/olvbmapfilel.map&amp;REQUEST=GetMap&amp;SERVICE=WMS&amp;VERSiON=1.1.0&amp;Layers=compfun,zone&amp;SRS=EPSG:32632&amp;STYLE=&amp;BBox=1143759,4417539,1146436,4420390&amp;FORMAT=image/png&amp;WIDTH=400&amp;HEIGHT=400</A></DIV>
<DIV>&nbsp;</DIV>
<DIV>and my tests is ok.</DIV>
<DIV>&nbsp;</DIV>
<DIV>now, i want to displat data with openlayers. </DIV>
<DIV>&nbsp;</DIV>
<DIV>i tested this code but it doesn't work.</DIV>
<DIV>&nbsp;</DIV>
<DIV>map = new OpenLayers.Map( 'map' );<BR>layer = new 
OpenLayers.Layer.MapServer("ol 
demo",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
"<A 
href="http://localhost:81/cgi-bin/mapserv.exe?map=C:\OLWebSite\App_Data\olvbmapfilel.map" 
target=blank>http://localhost:81/cgi-bin/mapserv.exe?map=C:\OLWebSite\App_Data\olvbmapfilel.map</A>&amp;", 
{Layers:'compfun',SRS:'EPSG:32632'} );<BR><BR>see result in attachement.</DIV>
<DIV>&nbsp;</DIV>
<DIV>can any one help me plz?</DIV>
<DIV>do you have an exemple for displayind data with openlayers based on 
mapfile?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Best regards,<BR>Youness&nbsp;ELMEDRAOUI</DIV></DIV></FONT>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 <BR></BODY></HTML>