[OpenLayers-Users] GML Format and IE7

bartvde at osgis.nl bartvde at osgis.nl
Mon Aug 24 04:06:07 EDT 2009


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, <bartvde at 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 at openlayers.org
>> > http://openlayers.org/mailman/listinfo/users
>> >
>>
>>
>>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>





More information about the Users mailing list