When using the legend widget (esri JAPI 3.20), not all the layers show up when my map loads. I have to zoom a level first then they all show up. Any fixes?
-
Is there any scale range set on your layers? How do you add the widget? Could you show your code?– GISGeCommented Mar 7, 2017 at 14:35
-
there is a scale range on a few but thats not the ones not showing up.– Jay HillCommented Mar 8, 2017 at 14:43
-
var legend = new Legend({ map: map, layerInfos: layers, }, "legendDiv"); legend.startup();– Jay HillCommented Mar 8, 2017 at 14:43
Add a comment
|