Dear list, problem solved, it`s not to be written:
> var my_wfs= new OpenLayers.Layer.WFS( "small_wfs", > "http://xyz................", > {Typename: 'gastronomie_wfs',maxfeatures: 100, styleMap: > my_style,extractAttributes:true} > > ); but: var gastronomap_wfs= new OpenLayers.Layer.WFS( "small_wfs", "http://xyz........", {Typename: 'gastronomie_wfs'},{maxfeatures: 100, styleMap: myStyleMap,extractAttributes:true} ); Best regards, Kai -------- Original-Nachricht -------- > Datum: Fri, 06 Mar 2009 15:01:51 +0100 > Von: "Kai Behncke" <[email protected]> > An: [email protected] > Betreff: [OpenLayers-Users] How to change the default-style of a point > WFS-object? > Dear list, > > > I have got a question how to change the default colour of a > point-wfs-symbol. > > In the moment I try: > > var my_style = new OpenLayers.StyleMap({"default": new > OpenLayers.Style({ > "externalGraphic":"marker-blue.png", > "graphicOpacity":1, > "graphicXOffset":-8, > "graphicYOffset":-8, > "graphicWidth":16, > "graphicHeight":16, > "strokeLinecap":"round", > "strokeOpacity":0, > "fillOpacity":0, > "pointRadius":23}) > }); > > > var my_wfs= new OpenLayers.Layer.WFS( "small_wfs", > "http://xyz................", > {Typename: 'gastronomie_wfs',maxfeatures: 100, styleMap: > my_style,extractAttributes:true} > > ); > > The wfs-layer is visualized but still with these default orange-points. > > Does anybody know what could be wrong? > And where can I find the file for the default-layout? > > Thank you very much in advance, Kai > -- > Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: > http://www.gmx.net/de/go/multimessenger01 > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users -- Computer Bild Tarifsieger! GMX FreeDSL - Telefonanschluss + DSL für nur 17,95 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
