Drag and Drop Services to Map
Recently a conversation came up at work about making a tool that would allow us to drag and drop any of our existing Map Services on our ArcGIS Server to a Map using the ESRI Flex API 2.0. It wasn’t critical, but I had a bit of downtime today and after some tooling around I managed to put together a component that I have added to the FlexMapTools library.
An example can be seen here.
The source code for the component is here.
It has a required Skin and ItemRenderer as well.
It works by passing it the target Map and calling a loadServices() function passing the URL of your ArcGIS Server, as in http://sampleserver1.arcgisonline.com/ArcGIS/rest/services
Enjoy, and as usual any feedback and critique is welcome.