This project is read-only.

Displaying Line Decoration in the legend icon for the layer

Mar 17, 2015 at 10:59 PM

I have an issue which I would appropriate if you could help me with.
Whenever I add a line decoration to a line shapefile, the legend icon for that layer does not display the line decoration. Let say I have red line with a triangle on it which is being displayed correctly in the map but the legend icon for that layer only displays the red line and not its decoration (i.e., triangle) on it.
Is this normal or am I doing something wrong here?

Mar 18, 2015 at 6:50 AM
Hey Ehsan,

no you're not doing something wrong. That seems to be the way lines are normally displayed in legend.
Mar 18, 2015 at 11:33 AM
Edited Mar 18, 2015 at 11:38 AM
Hey Jany,

Thanks for your prompt response.

Wow, we display something on the legend and something else on the map!
I think this is something very valuable for lots of folks if corrected.
Mar 18, 2015 at 8:51 PM
Yes I think that is another point that needs to be corrected.
Mar 25, 2015 at 1:52 PM
Hey Ehsan,

have a look at changeset 75640.
Marked as answer by Ehsan_Ro on 4/2/2015 at 9:41 PM
Apr 3, 2015 at 5:41 AM
Hey jany,

Thanks for the update and sorry for delaying response.
I am on vacation until April the 6th and will check as soon as I am back and let you know the outcomes.


Apr 3, 2015 at 8:01 AM
Hi jany,

I just got a chance to try your code, and it works perfectly.
Thanks for your time and great help on this.


Apr 3, 2015 at 9:14 AM
Good to know and you're welcome.