identifyRequest.then(requestSucceeded, requestFailed);
function getStuff() { var restURL = "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/layers"; var myRequest = esriRequest({ url: restURL, content: {f: "json"}, handleAs: "json", callbackParamName: 'callback' }); myRequest.then(requestSucceeded, requestFailed); // Problem! function requestSucceeded(response, io){ alert("Success"); } function requestFailed(error, io){ alert("Error"); }
identifyRequest(params).then(requestSucceeded, requestFailed);
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.