var httpServ:HTTPService = new HTTPService(); httpServ.url = "http://sampleserver5.arcgisonline.com/ArcGIS/rest/services/LocalGovernment/Events/MapServer/0?f=json"; httpServ.resultFormat = "text"; httpServ.addEventListener(ResultEvent.RESULT,function(event:ResultEvent):void{processLayerDetails(event)}); httpServ.send(); private function processLayerDetails(event:ResultEvent):void { const rawData:String = String(event.result); const data:Object = JSON.decode(rawData); //do some thing with the data object }
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.