Select to view content in your preferred language

Picture Fill Symbol URL?

6783
14
Jump to solution
01-22-2015 10:24 AM
DavidColey
Honored Contributor

Hi-

Does anyone know the url(s) for picture fill symbols?

Thanks

David

0 Kudos
14 Replies
DavidColey
Honored Contributor

Thanks Tim - That's exactly what  I am doing here:

var newFirmSym = new SimpleFillSymbol(SimpleFillSymbol.STYLE_FORWARD_DIAGONAL, new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID, new Color([0,25,255]), 3), new Color([255,255,0,0.5]));

but the FORWARD_DIAGONAL keeps rendering default black . .  .

0 Kudos
TimWitt2
MVP Alum

You are right, it doesn't work for me either.

DavidColey
Honored Contributor

Thanks, I thought I was going crazy.  I was hoping to not have to render it in the mxd, but I may not have a choice....

0 Kudos
KenBuja
MVP Esteemed Contributor

Take a look a this discussion that goes into why you can't apply a color to the different fill patterns.

The hatch patterns cannot be altered via the api because they are images.

Only STYLE_SOLID will use the color provided. STYLE_SOLID and STYLE_NULL are the only "pure" esri/symbol/SimpleFillSymbol(s).

All the other fill options like STYLE_BACKWARD_DIAGONAL, are actually esri/symbol/PictureFillSymbol(s), which use images that are included in the api http://js.arcgis.com/3.7/js/esri/images/symbol/sfs/vertical.png.

The solution, work-around or what have you is to use esri/symbol/PictureFillSymbol with your own custom images.

DavidColey
Honored Contributor

Thanks Ken, I was looking for that discussion and couldn't find it.  I would agree with your work around re the PictureFill, but it also looks like if you reference this js

https://raw.githubusercontent.com/Chaussette/esri.symbol.FillPattern/master/esri.symbol.FillPattern....

that it overrides the default behavior.. either way thanks to you both for help-

David

0 Kudos