8 martie 2012 12:52
I have a map that has 400 plus pushpins that are loaded from an SQL database when the user navigates to the Silverlight page. I have it set so the user can trim it down to a specific State via Stored Procedure tied to a control. I will have a second database table that will have a list of other locations that would be associated with the first set ot pins. What I am trying to do next is I want to add additional pushpins with a different color and the be able to add an associated line from the original pins to the new pins.
Question 1. How do I add a second set of pushpins with a different color? (Added) Would it just need a an additional Data Template?
Question 2. Is it possible to add the lines from the original pins to the new pins? If so, how?
10 martie 2012 13:45Proprietar
1) Set the background color of the pushpin to make is a different color.
2) Yes, you just need to keep track of what the old and new coordinates are and then use a MapPolyline to create a line.
12 martie 2012 11:39
Thanks for confirming it for me.
I think I will do a simple one first and make sure it does what I want before I break the working one.