Display multiple lines from a PushPin to another marker programaticly
-
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?
Thanks,
Brian
- Editat de Brian Cook 8 martie 2012 13:09
- Mutat de Richard_BrundrittMicrosoft Employee, Owner 16 martie 2012 18:55 (From:Bing Maps: Map Control and Web services Development)
Toate mesajele
-
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.
http://rbrundritt.wordpress.com
- Propus ca răspuns de Richard_BrundrittMicrosoft Employee, Owner 10 martie 2012 13:46
- Marcat ca răspuns de Brian Cook 12 martie 2012 11:38
-
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.
Brian
- Marcat ca răspuns de Brian Cook 12 martie 2012 11:39
- Anulare marcare ca răspuns de Brian Cook 12 martie 2012 11:39