<font size="2"><span style="font-family: arial,helvetica,sans-serif;"></span></font>Hi,<br><br>I want to get the map of Canada then loop through all provinces, in order to color them differently (I&#39;m going to create a new Vector layer for each province and apply its own styleMap) :<br>
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">var wmsLayer = new OpenLayers.Layer.WMS(&quot;Canada&quot;, &quot;<a href="http://www2.dmsolutions.ca/cgi-bin/mswms_gmap">http://www2.dmsolutions.ca/cgi-bin/mswms_gmap</a>&quot;,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">{</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">   layers: &quot;bathymetry,land_fn,park,drain_fn,drainage,&quot; +</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">   &quot;prov_bound,fedlimit,rail,road,popplace&quot;,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">   transparent: &quot;true&quot;, format: &quot;image/png&quot;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">});</span><br><br>So the question is how to loop through the WMS layer features or &quot;prov_bound&quot; to retrieve each province&#39;s geometry. <br><br>Thanks!<br>Francois<br>
<br><br><br>