Display Multiple Pushpins of City locations on Bing Map load.
-
Sunday, January 15, 2012 9:18 PM
Please how do I display multiple City/State or City/Country pushpins from a datasource (ie: xml, SQL) when Bing Maps loads?
The production datasource only has Cities and not latitudes and longitudes.(Using Visual Studio 2010 and Silverlight)
Thank you for any assistance.
- Edited by nobeli Tuesday, January 17, 2012 1:40 AM
- Moved by Richard_BrundrittMicrosoft Employee, Owner Saturday, March 10, 2012 1:25 PM (From:Bing Maps: Map Control and Web services Development)
All Replies
-
Tuesday, January 17, 2012 9:09 AMOwner
How do you want to display them? As pushpins or polygons. If you want to display them as pushpins then I would recommend geocoding your data ahead of time (city/state) information so that you have coordinates. If you want polygons then you will need to find a data source that has the boundary information. The sample data that comes with the AJAX Map Data Connector has this: http://ajaxmapdataconnector.codeplex.com/
http://rbrundritt.wordpress.com- Marked As Answer by Richard_BrundrittMicrosoft Employee, Owner Thursday, February 02, 2012 1:05 AM
-
Thursday, February 09, 2012 10:58 AMcheck my blog for this question http://www.hybridplanet.co.in/2012/02/how-to-add-multiple-pushpins-in-bing.html
- Edited by Ashish Panwar Thursday, February 09, 2012 10:59 AM
-
Sunday, February 12, 2012 6:18 PMOwnerThis post looks extremely familiar: http://rbrundritt.wordpress.com/2011/10/13/multiple-pushpins-and-infoboxes-in-bing-maps-v7/ Also, it doesn't answer the users question about SQL.
http://rbrundritt.wordpress.com
-
Monday, July 09, 2012 8:22 PM
Hi,
Here is interesting approach to populate javascript array from SQL.
I am going to try this later. In my case, all coordinates (lat and long) are in MS Access DB.
http://forums.asp.net/t/1352821.aspx/1
After you can use AJAX Bing Map control to display pushpins from array. Definitely you will need to populate latitude and longitude before displaying any pushpins.
I hope this help.
S.T.

