I am trying to consume the Esri Drive times geoprocessing service within a Flex application, based around the v2.2 Flex API.
I have seen the sample on how to do this.
- However, mine is a bit more based on ActionScript over MXML.
- I should also point out that I am fairly new to Flex/Esri API development, so lamens terms would be great :)
My application seems to be hitting the GP service ok, and I think I am getting the features returned from the Esri servers, however I am having some difficulty setting up a renderer for the results:
I get these 'call to a possible undefined method' a fair bit, but not too sure on how I can tweak this to work.
I have been following the samples provided for symbolising graphics with renderers.
If it helps, I have recorded a short screencast to show the rest of my code.
---EDIT-----
I am getting the features returned to me from the gp service, and I have tried to mimic the Esri Flex sample for drive times, but the graphics are not rendering.
- Here is a new screencast to give you more details.
- Here is the code in a text file.
- i have added a small bounty. Winner will be one who helps spot what ive done wrong and gets my results to render in graphics layer (let me know if you need more info).
- bonus points on suggestion to streamline the code.
---EDIT2--- Been investigating the requests/responses made from my app and the Esri sample. (links have more info)
So, looking at the response, im getting it in WKID 4326, when it should be 102100.
Im now using the same basemap as the Esri Sample.
I have also hard-coded the output spatial reference to be 102100.
Still no joy.
My App GET request:
Esri Sample GET request: