jsn

How to show the legend from a local ArcGIS Server 10.0 map service

Discussion created by jsn on Dec 17, 2012
Latest reply on Dec 17, 2012 by jeff.pace
Hi all,

I am trying to display the legend for a local map service created in my workstation with ArcGIS Server 10.

The legend shows using Esri service
  var dynamicUrl = "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/PublicSafety/PublicSafetyHazardsandRisks/MapServer";


But it does not show with any of my local services:
     
       var dynamicUrl = "http://<myserver>/ArcGIS/rest/services/OneLayer/MapServer";
       var dynamicUrl = "http://<myserver>/ArcGIS/rest/services/MapDefault/MapServer";

Is there anything I need to check to see my local ArcGIS Server map services.

I am using this template sample http://help.arcgis.com/en/webapi/javascript/arcgis/samples/layout_MapContainerSplitLeft/index.html

Thanks

Outcomes