<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<STYLE type=text/css>
BLOCKQUOTE{margin-Top: 0px; margin-Bottom: 0px; margin-Left: 2em}
</STYLE>

<META name=GENERATOR content="MSHTML 8.00.7601.17514"><!-- flashmail style begin -->
<STYLE type=text/css>
body {border-width:0;margin:0}
img {border:0;margin:0;padding:0}
</STYLE>
<BASE target=_blank><!-- flashmail style end --></HEAD>
<BODY 
style="LINE-HEIGHT: 1.5; BORDER-RIGHT-WIDTH: 0px; MARGIN: 12px; FONT-FAMILY: 微软雅黑; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; COLOR: #000000; FONT-SIZE: 10.5pt; BORDER-LEFT-WIDTH: 0px" 
marginheight="0" marginwidth="0">
<DIV>Hi,</DIV>
<DIV>      I use qgis-server published a map,And I use 
OpenLayers 2 to show the map.But When I use OpenLayers 2 I have to set the 
layers to the map.How can I  get the layers info through the WMS service 
which qgis-server published? I know I can get layers info throgh <A 
href="http://222.222.218.51:8888/cgi-bin/room/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities">http://222.222.218.51:8888/cgi-bin/room/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities</A> but 
how can I get the layer info through OpenLayers 2?</DIV>
<DIV> </DIV>
<DIV>Thanks ,</DIV>
<DIV>zhangkai</DIV>
<DIV>2017-03-01</DIV>
<DIV 
style="FONT-FAMILY: Verdana; COLOR: #c0c0c0; FONT-SIZE: 10pt"></DIV></BODY></HTML>