Hi,

[email protected] wrote:
>> You will want to add a second argument to applyDefaults, e.g.
>> OpenLayers.Feature.Vector.style["default"]. See below.
> 
> thanks for your hint, but I tried that as well, same error. I also
> tried:
> 
>                               var gemSymbolizer = new
> OpenLayers.Util.applyDefaults(
>                                       {
>                                               strokeColor: "black",
>                                               strokeWidth: 1,
>                                               strokeOpacity: 0.6,
>                                               fillOpacity: 0.8
>                                       },
>       
> OpenLayers.Feature.Vector.style["default"]
>                               );
>                                                       
>                               var gemStyle = new OpenLayers.StyleMap(
>                                       {
>                                               default: gemSymbolizer,
>                                               select: { strokeColor:
> "yellow", strokeWidth: 3, strokeOpacity: 0.9 }
>                                       }
>                               );
> 
> Again, works fine in FF but not in IE7

Ok, now I see what's wrong: "default" is a keyword in IE, so you have to 
use quotes in the hash definition, like this:

{
     "default": gemSymbolizer,
     "select": selectSymbolizer
}

Regards,
Andreas.

-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to