Display multiple lines from a PushPin to another marker programaticly
-
יום חמישי 08 מרץ 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
- נערך על-ידי Brian Cook יום חמישי 08 מרץ 2012 13:09
- הועבר על-ידי Richard_BrundrittMicrosoft Employee, Owner יום שישי 16 מרץ 2012 18:55 (From:Bing Maps: Map Control and Web services Development)
כל התגובות
-
שבת 10 מרץ 2012 13:45בעלים
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
- הוצע כתשובה על-ידי Richard_BrundrittMicrosoft Employee, Owner שבת 10 מרץ 2012 13:46
- סומן כתשובה על-ידי Brian Cook יום שני 12 מרץ 2012 11:38
-
יום שני 12 מרץ 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
- סומן כתשובה על-ידי Brian Cook יום שני 12 מרץ 2012 11:39
- סימון כתשובה בוטל על-ידי Brian Cook יום שני 12 מרץ 2012 11:39