Legend Visualization Problem

598
0
04-02-2012 09:34 AM
demdeberanz
New Contributor II
Hi everybody,
  I'm getting some problem displaying the legend of a feature layer. I create it with the template picker:

       
  var symbols = dojo.map(results[0].layer.renderer.infos, function(info) {
            return {
              label: info.label,
              symbol: info.symbol
            };
          });

          var legend = new esri.dijit.editing.TemplatePicker({
            items: symbols,
            rows: "auto",
            columns: 2,
            style: "border-color:#9CAA9C;"
          }, "legendDiv");
          legend.startup();


But it isn't shown!!!I think it's a problem with some css rule, because using another div it is shown. The legendDiv div is located inside a sliding tab pane exactly like in this exmple:
http://help.arcgis.com/en/webapi/javascript/arcgis/demos/widget/widget_legend.html

<div dojoType="dijit.layout.ContentPane" id="legendPane" title="Legend" selected="true" >
      <div id="legendDiv"></div>
</div>

I tried also with esri.dijit.Legend and I get the same issue.

Does anyone know because I get this issue?

Thanks everybody.
0 Kudos
0 Replies