My understanding is that lines dont have fill, they are lines, just strokes. What you could try is drawing the line two times. The frist drawn line should have a broader width.
I am not 100% sure though... On Tue, Sep 21, 2010 at 3:17 PM, Paul james <[email protected]> wrote: > Hello guys! > > I´m trying to create a Blue LineString vector with red > stroke(outlinecolor), I tried that > > var layer_style = > OpenLayers.Util.extend({},OpenLayers.Feature.Vector.style['default']); > > layer_style.fill = true; > layer_style.fillColor = "#FF0000"; > layer_style.fillOpacity = 0.3; > > layer_style.stroke = true; > layer_style.strokeColor = "#0000FF"; > layer_style.strokeOpacity = 0.3; > layer_style.strokeWidth = 2; > > > But the line appears only blue... The "red fill" does not appear at all... > > Any idea? > > Thanks > > _______________________________________________ > Users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/openlayers-users > >
_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
