I have a featurelayer in my map which contains polygons with an outline but no fill. It displays in the map correctly, but in the legend widget, it shows up with a black fill (under 'UpperColorado' in the 1st image below). If I look at the legend for the map service's REST endpoint, the symbol looks correct (2nd image). Any idea how to fix this?
Interesting result. Unfortunately, I don't think there is something you can do with the legend dijit result. I would try two alternatives: 1. Use agsjs.dijit.TOC developed by nliu. (http://www.arcgis.com/home/item.html?id=9b6280a6bfb0430f8d1ebc969276b109) 2. It's not too hard to develop a custom one using REST API, especially if you only want to display the legend, not to have it also works as Table of Content.