Better approach to work with ARCGIS API for WPF

Discussion created by dipinbehl on Jan 16, 2012
Latest reply on Jan 20, 2012 by JNery-esristaff
Hi All,

I am developing a Desktop Application using WPF with features such as 'Reverse Geocoding', 'Geocoding Addresses', 'Showing Routes for Stops', 'Showing distance and Estimated Time for a Trip' etc. We are using ArcGis API for WPF for all such functionalities using ESRI's shared servers (we will setup our own servers once we move to production)
We have implemented 'Reverse Geocoding', Geocoding' very well and other features are working well also.
Since being the first-timers to ArcGIS APIs, I am more concerned with our approach and methedology of work.

Particularly, while getting route for a set of stops, we use 'RouteTask' with url 'http://tasks.arcgisonline.com/ArcGIS/rest/services/NetworkAnalysis/ESRI_Route_NA/NAServer/Route'. While passing RouteParameters to the RouteTask, i have to set 'ReturnDirections = true' as we also require the distance and time for the route which could be get by 'RouteResult.Directions.TotalLength' and 'RouteResult.Directions.TotalTime'.

While showing the stops and route on the Map, we have to iterate through the list of stops and then create an instance of 'TextSymbol' for each stop, assign a ControlTemplate(to show a circle with stop number) and then add it to the graphics layer.

Also, I would like to ask if there is any drawback of using too many GraphicLayers on a Map. As in our case, we have to show locations of various vehicles and depending upon their status, different images for each vehicle. I am using a different layer for each vehicle status.

Any help or pointers would be life saving.