<div dir="ltr"><div>Hi Alexandre,</div>
<div>&nbsp;</div>
<div>This is just what I want,</div>
<div>&nbsp;</div>
<div>Thanks a lot. Regards,</div>
<div>&nbsp;</div>
<div>Gorka López<br><br></div>
<div class="gmail_quote">2008/9/9 Alexandre Dube <span dir="ltr">&lt;<a href="mailto:adube@mapgears.com">adube@mapgears.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi Gorka,<br><br>&nbsp;You can style your features with a StyleMap object. &nbsp;Here&#39;s an example using a WFS layer, but this is pretty much the same as GML, since both are vector layers.<br>
<br>// styleMap for region<br>oRegStyleMap = new OpenLayers.StyleMap({<br>&nbsp; &nbsp; strokeColor: &quot;black&quot;,<br>&nbsp; &nbsp; strokeWidth: 2,<br>&nbsp; &nbsp; strokeOpacity: 1<br>&nbsp; &nbsp; fillOpacity: 0.3,<br>&nbsp; &nbsp; fillColor:&quot;purple&quot;<br>
});<br><br>// region WFS layer, contains polygon features<br>olWFSReg = new OpenLayers.Layer.WFS(<br>&nbsp; &quot;Régions admin. - WFS&quot;,<br>&nbsp; sMSURL,<br>&nbsp; {<br>&nbsp; &nbsp; &nbsp; typename: &quot;BDGA_REGIO_S_POLY_1M&quot;,<br>&nbsp; &nbsp; &nbsp; map: sBDGAMapPath<br>
&nbsp; },<br>&nbsp; {<br>&nbsp; &nbsp; &nbsp; extractAttributes: true,<br>&nbsp; &nbsp; &nbsp; typename: &quot;BDGA_REGIO_S_POLY_1M&quot;,<br>&nbsp; &nbsp; &nbsp; styleMap: oRegStyleMap // &lt;------<br>&nbsp; }<br>);<br><br>Hope this helps,<br><br>Alexandre<br><br>Gorka López Rivacoba wrote:<br>

<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div></div>
<div class="Wj3C7c">Hello,<br>&nbsp;I&#39;m loading a route with GML in my map, but the line which appears (the yellow one) is too similar to my map. I&#39;m reading the code, but I don&#39;t find any solution<br>&nbsp;Is there any solution to modify the style of these lines?<br>
&nbsp;Thanks a lot. Regards,<br>&nbsp;Gorka López<br></div></div>------------------------------------------------------------------------<br><br>_______________________________________________<br>Dev mailing list<br><a href="mailto:Dev@openlayers.org" target="_blank">Dev@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/dev" target="_blank">http://openlayers.org/mailman/listinfo/dev</a><br>&nbsp;<br></blockquote><br><br>-- <br>Alexandre Dubé<br>Mapgears<br><a href="http://www.mapgears.com/" target="_blank">www.mapgears.com</a><br>
<br></blockquote></div><br></div>