I have a map with a graphics layer and a list of flight lines from GPS units. Within the extent of a given area I can have approximately 2k to 5k individual points and about 200 flight lines.
Right now, for each line I perform the following operations in a loop:
1. Create a Client.Geometry.PointCollection
2. Add my line points to the PointCollection
3. Create a Client.Geometry.Polyline
4. Add my PointCollection to the Polyline.Paths collection
5. Create a new Graphic and set it's symbol to the appropriate line symbol
6. Set the Graphic's symbol to my PolLine
7. Add the new Graphic to the Graphics Layer
This works pretty well but I'd prefer to databind it to values in my ViewModel. Does anyone know how to accomplish this with as little work as possible?
Many thanks,
Jim