<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'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("Canada", "<a href="http://www2.dmsolutions.ca/cgi-bin/mswms_gmap">http://www2.dmsolutions.ca/cgi-bin/mswms_gmap</a>",</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: "bathymetry,land_fn,park,drain_fn,drainage," +</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> "prov_bound,fedlimit,rail,road,popplace",</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> transparent: "true", format: "image/png"</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 "prov_bound" to retrieve each province's geometry. <br><br>Thanks!<br>Francois<br>
<br><br><br>