POST
|
Hi Jennifer and thanks for the reply. Would I always have to set 'ReturnDirections=true' for the RouteParameters to get the total distance and total drive time for the route, even if I have no intentions to display the directions on the UI. Or is there an optimized way, which i have apparently missed, to get this information. I would also require to get the distance and driver time between each stop in some scenarios. Thanks.
... View more
01-18-2012
07:00 PM
|
0
|
0
|
249
|
POST
|
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. Thanks.
... View more
01-16-2012
03:25 AM
|
0
|
3
|
2671
|
POST
|
Hi All, I am using ArcGis API for WPF in a desktop based application to show locations, route for the stops on a 2D Map. A background thread fetches the locations (along with lat-long) from a WCF service. Then these locations are displayed on the Map as TextSymbol(s) on a GraphicLayer. Then another background thread calls a WCF RESTfull resource to find route for the locations (stops). This call returns me a route which i am trying to display on the map using another GraphicLayer using 'Add' method of the 'Graphics' property of the layer. Whenever i try to do so, i get an exception 'The calling thread cannot access this object because a different thread owns it.' I have tried to use Dispatcher object for the screen, the map object, the graphics layer but none seems to work for me.
... View more
01-16-2012
02:17 AM
|
0
|
6
|
639
|
POST
|
Hi, I am using ArcGIS map in my WPF application on two forms. On the first form, i get the coordinates from the database and show them on the map. It works just as expected, the first time. But when I close and reopen the form, the map disappears. The subsequently closing and reopening of forms results in the map being displayed and not displayed randomly, but with the code behind working perfectly. Also when I then open the second form from a button on the first screen, the map loads to show this address. But again, on another development machine, the second forms behaves the same as first form with randomly displaying and not displaying the map. In fact, this behavior varies on all development machines, with all most all of them having the same configuration. Also, in my WCF web service layer, from where I retrieve the addresses from database, interact with the ArcGIS service to get addresses and coordinates etc, i am using a caching technique using CahceManager class implemented using postsharp. Has this caching got to do something with this behavior because commenting the Cache attribute sets the behavior correct on some of the development machines. Any help is greatly appreciated. Thanks.
... View more
09-19-2011
09:54 PM
|
0
|
1
|
817
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|