var legendImageRequest = esriRequest({ url : "https://www.server.com/arcgis2/rest/services/test/test/MapServer/legend", content : {f : "json"}, handleAs : "json", }); legendImageRequest.then(function(response) { console.log(response.layers[0].legend[0]); });
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.