Hi, can you provide a bit of context for your code fragment (what type of layer are you using)? Post a bit more code.
formatOptions is not the same as style options. Format is for reading XML data, and has nothing to do with styling. Best regards, Bart > Hey Bart, > > I suppose you mean: > > format: new OpenLayers.Format.GML(), > > but doesn't work neither. > > Thank you for your help > > Manu. > > On Mon, Aug 24, 2009 at 9:28 AM, <bart...@osgis.nl> wrote: > >> Hi, >> >> try: >> >> format: OpenLayers.Format.GML(), >> >> Best regards, >> Bart >> >> > Hi everybody!, >> > >> > I'm having one error when displaying a layer in OpenLayers (I'm using >> the >> > current svn version with mapserver). I have this configuration for my >> > layer: >> > >> > transparent: true, >> > format: OpenLayers.Format.GML, >> > formatOptions: { >> > "default": style, >> > "select": { >> > fillColor: "#8aeeef", >> > strokeColor: "#32a8a9" >> > } >> > >> > The problem is that when I plot this layer over my map, in IE7 i get a >> > "this.format is null or not an object" error, (i can see it in firebug >> > too). >> > In firefox the format is ok, but in IE7 all the colors of the layer >> are >> > black. >> > >> > Any thoughts about this? >> > >> > Thank you very much in advance. >> > _______________________________________________ >> > Users mailing list >> > Users@openlayers.org >> > http://openlayers.org/mailman/listinfo/users >> > >> >> >> > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users