<div dir="ltr">hello <div><br></div><div>i'd like to use openlayers3 for wms service </div><div>the belowe code is correct?</div><div>
<div id="map"></div>
<div id="map"></div>
<div id="map"></div></div><div><br></div><div><div><!doctype html></div><div><html lang="en"></div><div> <head></div><div> <link rel="stylesheet" href="<a href="http://openlayers.org/en/v3.15.1/css/ol.css">http://openlayers.org/en/v3.15.1/css/ol.css</a>" type="text/css"></div><div> <style></div><div> .map {</div><div> height: 100%;</div><div> width: 100%;</div><div> }</div><div> </style></div><div> <script src="<a href="http://openlayers.org/en/v3.15.1/build/ol.js">http://openlayers.org/en/v3.15.1/build/ol.js</a>" type="text/javascript"></script></div><div> <title>web gis</title></div><div> </head></div><div> <body></div><div> </div><div> <div id="map"></div></div><div> <script type="text/javascript"></div><div> </div><div> var layers = [</div><div> new ol.layer.Image({</div><div> extent: [1062293,17704892,1085747,17720997],</div><div> source: new ol.source.ImageWMS({</div><div> url: '<a href="http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/jask/jask.map">http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/jask/jask.map</a>',</div><div> params: {</div><div> 'LAYERS': 'jask',</div><div> 'CRS': 'EPSG:4326',</div><div> 'BBOX': '1062293,17704862,1085747,17720997',</div><div> 'FORMAT': 'image/png',</div><div> 'mode':'map'</div><div> },</div><div> serverType: 'mapserver'</div><div> })</div><div> })</div><div> ];</div><div> var projection = new ol.proj.Projection({</div><div> code: 'EPSG:4326',</div><div> units: 'm'</div><div> });</div><div> </div><div> var map = new ol.Map({</div><div> layers: layers,</div><div> target: 'map',</div><div> controls: [</div><div> new ol.control.Zoom(),</div><div> new ol.control.ZoomSlider()</div><div> ],</div><div> </div><div> view: new ol.View({</div><div> center: [1073136.94,17716190.89],</div><div> zoom: 13,</div><div> projection: projection</div><div> })</div><div> });</div><div> </div><div> </div><div><br></div><div> </script></div><div> </body></div><div></html></div></div><div><br></div><div><br></div><div><br></div><div>someone has offer?</div></div>