<div dir="ltr">Hello hosain,<div><br></div><div>From the openlayers code you supplied, you are using OSM layer over your WMS layer.</div><div>You want to use diferente projections, you have to use the proj4js libray.</div><div><a href="http://proj4js.org/">http://proj4js.org/</a><br></div><div><br></div><div>1. You did not supplied any MapServer information. What gives this link? <a href="http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/ol/tehran.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities">http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/ol/tehran.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities</a></div><div><br></div><div>2. Do you have any javascript errors? You can use Google Chrome developer tools to check this.</div><div><br></div><div>3. You need to define in your ol.proj.Projection the proj4 parameters. See <a href="http://spatialreference.org/ref/epsg/32639/">http://spatialreference.org/ref/epsg/32639/</a></div><div><br></div><div>4. Try invert your layers order</div><div><br></div><div>5. Set your WMS layer to use the projection you defined</div><div><br></div><div>This is what comes in my mind at the moment...</div><div><br></div><div>Cheers,</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-05-14 13:06 GMT+01:00 hosain mohammadi <span dir="ltr"><<a href="mailto:hosain.moh00@gmail.com" target="_blank">hosain.moh00@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr" style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.44px">Hello every one<div>i would like to use openlayers 3 in mapserver </div><div>anyone have idea about this</div><div> thanks </div><div><br></div></div></div>
<br>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Regards, <div>Marco Afonso</div><div><a href="http://goo.gl/ZDtQjm" target="_blank">http://goo.gl/ZDtQjm</a><br></div><div><span></span><img src="https://dl.dropboxusercontent.com/u/17607469/qr.png"><br></div></div></div>
</div>