Hi Chris,

It wasn't, but i found a way to do it.

In the VML renderer I added the following lines:

After fill.setAttribute("opacity", style.fillOpacity);

If (style.fillGraphic) {
  Fill.setAttribute("type", "tile");
  Fill.setAttribute("src", style.fillGraphic);
}

The property style.fillGraphic can be set to an image file (like the one
attached for example)

I'm sure this kind of option is available for SVG but haven't had the
time to investigate

Cheers Kris


-----Original Message-----
From: Christopher Schmidt [mailto:crschm...@metacarta.com] 
Sent: Thursday, March 26, 2009 12:47 PM
To: Kris Geusebroek
Cc: users@openlayers.org
Subject: Re: [OpenLayers-Users] How to fill a wellknown marker with a
dash pattern

On Thu, Mar 26, 2009 at 12:42:16PM +0100, Kris Geusebroek wrote:
> Hi all,
> 
>  
> 
> I want to create a style for my WFS layer to create a orange square
with
> dashed fill and a different color stroke.
> 
> In sld I use a mark with an externalgraphic and a strokecolor.
> 
>  
> 
> Is this possible in openlayers also?

Not that I'm aware of.

Regards
-- 
Christopher Schmidt
MetaCarta

<<attachment: orange_forward_diagonal_thin.GIF>>

_______________________________________________
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users

Reply via email to