Layer.WFS subclasses Layer.Vector, so all properties that apply to
> layer.vector
> also apply to layer.wfs.
>
> -- Chris
>
> hello and happy new years !
you right Chris i have a difference between with and without {
style:stylemap }
with the color of the feature (line) is orange (default style like in
documentation)
and with { style:stylemap } what ever is in stylemap definition (even var
stylemap = new OpenLayers.StyleMap(); ) my feature is black (line)
style and layer definition :
var s= new OpenLayers.Style({strokeWidth:5, strokeColor:'#ff33ee',
pointRadius:2, fillColor:'#ff33ee', fillOpacity:1});
var stylemap = new OpenLayers.StyleMap({'default':s});
var wfs1 = new OpenLayers.Layer.WFS('Lignes_de_Bus',
'http://192.168.12.60/cgi-bin/mapserv?map=/var/www/geomod/demo.map&',
{typename: 'Lignes_de_Bus'},
{extractAttributes:true , style:stylemap});
map.addLayers ([wfs1]);
so if i add
{typename: 'Lignes_de_Bus', version:'1.1.0'}, nothing is displayed
but the data is received by the browser
why my style aren't rendering by OL ?
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users