Legend Dijit problems with DynamicMapServiceLayer

592
1
03-28-2013 08:34 AM
JoeBallard
New Contributor
For performance reasons, we recently changed our web app from using FeatureLayers to using DynamicMapServiceLayers. We were able to get everything working so far except the legend. When we examine the html produced by the legend dijit, they are different.

With FeatureLayers and working properly:
[ATTACH=CONFIG]23040[/ATTACH]

With DynamicMapServiceLayers and only showing the symbols without the text:
[ATTACH=CONFIG]23041[/ATTACH]

The layer objects loaded into layerInfos (for esri.dijit.Legend) look like they have the same structure.
0 Kudos
1 Reply
by Anonymous User
Not applicable
Original User: jrballard

For performance reasons, we recently changed our web app from using FeatureLayers to using DynamicMapServiceLayers. We were able to get everything working so far except the legend. When we examine the html produced by the legend dijit, they are different.

With FeatureLayers and working properly:
[ATTACH=CONFIG]23040[/ATTACH]

With DynamicMapServiceLayers and only showing the symbols without the text:
[ATTACH=CONFIG]23041[/ATTACH]

The layer objects loaded into layerInfos (for esri.dijit.Legend) look like they have the same structure.


Turns out it's a CSS problem. Because of the different structure of the dijit's html output, our CSS needed to be adjusted to match.
0 Kudos