i have gone through the documentation, and looked at the examples. i have put an example using legends on my server, run it and it works fine. i have changed the extent and services to reflect the map i want, and i get no legend.
is there something specific that needs to be in the service to allow the legend to work?
my esri guy is out and about today, so i am asking you all.
Hi Folks, A couple of quick questions on the legend widget.
1. Is it backward compatible? That is would it support services created using Server 9.3.1? We haven't upgraded to Server 10 yet.
2. Does it support Secure Services? Our services are secured and hence tokens are appended to the end of the Service URL. Will this widget support that?
i dont have a definitive answer to your question, but, it would seem that if the legend dijit can read the 'drawing info' section of your service, then it should work, if all of that is hidden because of security, then maybe not.
Hi Folks, Is it backward compatible? That is would it support services created using Server 9.3.1? We haven't upgraded to Server 10 yet.
In ArcGIS Server 10 when you view your map service in the service directory you will see a link named "legend" which is the actual legend service. In 9.3.1 this link is not existant. So I would venture to say, no. It is not backwards compatible. Unless you make your map service publicly available and use the legend service through ArcGis.com
"The legend supports the following layer types: ArcGISDynamicMapServiceLayer, ArcGISTiledMapServiceLayer, FeatureLayer. If the layer is an ArcGISDynamicMapServiceLayer or ArcGISTiledMapServiceLayer created using ArcGIS Server 10.0 SP1 or higher the legend is generated using the REST Map Service legend resource.
If the layers are version 10 or lower the legend is created using the ArcGIS.com legend service. In order to use the ArcGIS.com legend service your map service needs to be publicly accessible and your application must be able to access ArcGIS.com."