2

İs it possible to get legend item from arcgis mapserver or feature url. For example http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StateCityHighway_USA/MapServer

I can use legends if I use esri javascript api. But I am using openlayers or leaflet. So I have to get legend item of a layer.

1

http://resources.arcgis.com/en/help/arcgis-rest-api/#/Legend_Map_Service/02r3000000pm000000/

http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StateCityHighway_USA/MapServer/legend

Add the parameters: "f" and "dynamicLayers" as described in the above link.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.