<div dir="ltr"><div>Hi Alexandre,</div>
<div> </div>
<div>This is just what I want,</div>
<div> </div>
<div>Thanks a lot. Regards,</div>
<div> </div>
<div>Gorka López<br><br></div>
<div class="gmail_quote">2008/9/9 Alexandre Dube <span dir="ltr"><<a href="mailto:adube@mapgears.com">adube@mapgears.com</a>></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> You can style your features with a StyleMap object. Here'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> strokeColor: "black",<br> strokeWidth: 2,<br> strokeOpacity: 1<br> fillOpacity: 0.3,<br> fillColor:"purple"<br>
});<br><br>// region WFS layer, contains polygon features<br>olWFSReg = new OpenLayers.Layer.WFS(<br> "Régions admin. - WFS",<br> sMSURL,<br> {<br> typename: "BDGA_REGIO_S_POLY_1M",<br> map: sBDGAMapPath<br>
},<br> {<br> extractAttributes: true,<br> typename: "BDGA_REGIO_S_POLY_1M",<br> styleMap: oRegStyleMap // <------<br> }<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> I'm loading a route with GML in my map, but the line which appears (the yellow one) is too similar to my map. I'm reading the code, but I don't find any solution<br> Is there any solution to modify the style of these lines?<br>
Thanks a lot. Regards,<br> 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> <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>