[OpenLayers-Users] [Feature style] Dashed border style

Julien JEUDY jjeudy at gi-paris.com
Wed Apr 9 12:23:50 EDT 2008


Ok, thank you for your response.

Julien

-----Message d'origine-----
De : Pierre GIRAUD [mailto:bluecarto at gmail.com] 
Envoyé : mercredi 9 avril 2008 11:15
À : Julien JEUDY
Cc : users at openlayers.org; Virginie BERRE
Objet : Re: [OpenLayers-Users] [Feature style] Dashed border style

Unfortunately, I'm pretty sure that this is something OpenLayers will
never address.
The main reason is that OpenLayers vector renderers rely on SVG for
Firefox/Safari browsers and VML for InternetExplorer.
I had a look into it a while ago, and, as far as I know, none of those
browsers rendering engine support border styles (pattern).

As for Firefox, patterns are supported by SVG but Firefox doesn't
implement the patterns.
http://developer-stage.mozilla.org/en/docs/SVG_in_Firefox

Regards,
Pierre



On Wed, Apr 9, 2008 at 10:12 AM, Julien JEUDY <jjeudy at gi-paris.com> wrote:
>
>
>
>
> Dear all,
>
>
>
> I would like to modify the style of a feature to a dashed border style. I
> try the following code, but it doesn't work. Can you please help me to solve
> this problem?
>
>
>
> Var my_style = {
>
>             strokeColor : «blue »,
>
>             strokeWidth : 1,
>
>             fillColor : « blue »,
>
>             fillOpacity : 0.2,
>
>             borderStyle : « dashed »
>
> }
>
>
>
> ...
>
>
>
> feature.style = my_style
>
>
>
> To complete my question: is it possible to have a filling lined rendering?
>
>
>
> Thanks,
>
> Julien
>
>
> _______________________________________________
>  Users mailing list
>  Users at openlayers.org
>  http://openlayers.org/mailman/listinfo/users
>
>



More information about the Users mailing list