Bing Maps: Map Control Development ForumDiscussion forum for developing applications using the Bing Map Control, the API behind Bing Maps.© 2009 Microsoft Corporation. All rights reserved.Sat, 28 Nov 2009 10:27:58 Z70841621-063d-4bee-a39e-1fc35ca5a1ebhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/19e27a34-1c11-48e8-a365-75d856077748http://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/19e27a34-1c11-48e8-a365-75d856077748Guest11http://social.msdn.microsoft.com/Profile/en-US/?user=Guest11for searching ATMs which property value we have use?I have two problems:<br/><br/>First:<br/><br/>In web search service we have category property value table for doing category wise search. <br/>Here for finance related search we have Legal and finance category but here there is no property value for ATMs.<br/><br/>Second:<br/><br/>In which unit the distance is calculated in web search service? how to modify the unit? i want to change the unit of distance.Sat, 28 Nov 2009 05:33:07 Z2009-11-28T10:27:58Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/6fcdebb2-8e47-4965-8141-ee5f0a43cb41http://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/6fcdebb2-8e47-4965-8141-ee5f0a43cb41sjhotmailhttp://social.msdn.microsoft.com/Profile/en-US/?user=sjhotmailHi<p>I am planing to use bing silverlight map controller for my project and I need to know what is the best and efficient way the data has to be output from sql server.I am trying to put pushpins on the map and on the mouse hover it displays some data.I am going to get like large number of records from database around 10000 and each record includes like name,gender...... etc.Since I am getting lot of data i don't want that to effect my performance.If I get my data in string format from the database  I need to loop over it to seperate the data required which hinders performance.So please suggest me the best way<br/><br/>Thanks,<br/>SJ</p>Fri, 27 Nov 2009 21:43:09 Z2009-11-28T07:23:22Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/cc833793-168b-46e7-b3eb-e63e2a903369http://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/cc833793-168b-46e7-b3eb-e63e2a903369BetterTodayhttp://social.msdn.microsoft.com/Profile/en-US/?user=BetterTodayInternet Explorer 8 doesn't resize Bing Map<p>Resizing a map doesn't seem to work when using IE8 to display an embedded Bing Map.</p> <p>Here is what happens:</p> <p>I'm using the embedded AJAX Bing map URL to have the map span across all available space without any pre-configuration (&quot;<a href="http://dev.virtualearth.net/embeddedMap/v1/ajax/road?culture=de-DE&amp;zoomLevel">http://dev.virtualearth.net/embeddedMap/v1/ajax/road?culture=de-DE&amp;zoomLevel</a>=...&quot;).</p> <p>However, if I resize my IE8 window the map is still displayed at a fixed width of, I don't know, say 600*600 pixels, even if the actual size is bigger.</p> <p>Weird: Although the map size doesn't change, the Bing logo and the scale are drawn correctly at the bottom of the web content.</p> <p>More weird: As soon as the zoom factor of the Bing Map is changed, e.g. by double-clicking in it, the map draws correctly across the whole web browser region.<br/><br/>Is this a bug or what?</p>Fri, 27 Nov 2009 21:54:39 Z2009-11-28T00:14:52Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/6edc6dee-3b43-4784-bd11-b9f749ca0eb8http://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/6edc6dee-3b43-4784-bd11-b9f749ca0eb8sjhotmailhttp://social.msdn.microsoft.com/Profile/en-US/?user=sjhotmailQuestion on Bing silverlight control<p>I am planing to use bing silverlight map controller for my project and I need to know what is the best and efficient way the data has to be output from sql server.I am trying to put pushpins on the map and on the mouse hover it displays some data.I am going to get like large number of records from database around 10000 and each record includes like name,gender...... etc.Since I am getting lot of data i don't want that to effect my performance.If I get my data in string format from the database  I need to loop over it to seperate the data required which hinders performance.So please suggest me the best way<br/><br/>Thanks,<br/>SJ</p> <p> </p>Fri, 27 Nov 2009 22:22:14 Z2009-11-27T22:22:15Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/9dc87a5b-1e03-45e3-bbc1-c2fb06c69cf9http://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/9dc87a5b-1e03-45e3-bbc1-c2fb06c69cf9poiuytrewqhttp://social.msdn.microsoft.com/Profile/en-US/?user=poiuytrewqVEShape.SetCustomIcon method is fussy over icon imageI am trying to display a House icon with the house number on the icon. I create the icon from a base icon using the code below. The modified icon appears well formed in that it can be displayed with the number OK by Paint and other software but SetCustomIcon only shows a red diagonal cross symbol. It displays the unmodified icon fine. The (VB) code I use to create the icon file is<br/><br/><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"><font size=2 color="#0000ff"><font size=2 color="#0000ff"> <p>Dim</p> </font></font></span><font size=2 color="#0000ff"> <p> </p> </font></span> <p><span style="font-size:x-small"> BitMap </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">As</span></span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">New</span></span><span style="font-size:x-small"> Bitmap(</span><span style="font-size:x-small;color:#800000"><span style="font-size:x-small;color:#800000">&quot;c:\Home.ico&quot;</span></span><span style="font-size:x-small">)<font size=2> <p>TextRenderer.DrawText(Graphics.FromImage(BitMap), I + 1,</p> </font></span></p> <p><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">New</span></span><span style="font-size:x-small"> Font(</span><span style="font-size:x-small;color:#800000"><span style="font-size:x-small;color:#800000">&quot;Aerial&quot;</span></span><span style="font-size:x-small">, 10, FontStyle.Bold), </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">New</span></span><span style="font-size:x-small"> Rectangle(0, 0, BitMap.Width, BitMap.Height), Color.Black, Color.White, TextFormatFlags.VerticalCenter + TextFormatFlags.HorizontalCenter)<font size=2> <p> </p> </font></span></p> <p><span style="font-size:x-small">BitMap.Save(</span><span style="font-size:x-small;color:#800000"><span style="font-size:x-small;color:#800000">&quot;c:\Temp.gif&quot;</span></span><span style="font-size:x-small">)<br/><br/><br/>I use <span style="font-size:x-small;color:#800000"><span style="font-size:x-small;color:#800000">shape.SetCustomIcon(&quot;c:\\Temp.gif&quot;); which shows the cross but shape.SetCustomIcon(&quot;c:\\Home.ico&quot;); works fine. Any assistance or suggestions for an alternative way of generating the images would be welcomed.</span></span></span></p>Fri, 27 Nov 2009 21:26:29 Z2009-11-27T21:26:29Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/d685f73d-2fb8-47c8-8864-c765f98fdbb3http://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/d685f73d-2fb8-47c8-8864-c765f98fdbb3Guest11http://social.msdn.microsoft.com/Profile/en-US/?user=Guest11Its urgent: how to pass more than one search parameter to search method in web search service?<pre>public string SearchKeywordLocation(string keywordLocation) { VESearchService.Address add = new VESearchService.Address(); String results = &quot;&quot;; SearchRequest searchRequest = new SearchRequest(); // Set the credentials using a valid Bing Maps token searchRequest.Credentials = new VESearchService.Credentials(); searchRequest.Credentials.Token = clientToken; //Create the search query StructuredSearchQuery ssQuery = new StructuredSearchQuery(); string[] parts = keywordLocation.Split(';'); ssQuery.Keyword = parts[0]; ssQuery.Location = parts[1]; searchRequest.StructuredQuery = ssQuery; //Define options on the search searchRequest.SearchOptions = new SearchOptions(); searchRequest.SearchOptions.Count = 5; searchRequest.SearchOptions.ListingType = ListingType.Business; searchRequest.SearchOptions.SortOrder = VESearchService.SortOrder.Distance; searchRequest.SearchOptions.Filters = new FilterExpression() { PropertyId = 1, CompareOperator = CompareOperator.Equals, //FilterValue = 11017 FilterValue = 11017 }; //Make the search request SearchServiceClient searchService = new SearchServiceClient(); SearchResponse searchResponse = searchService.Search(searchRequest); //Parse and format results if (searchResponse.ResultSets[0].Results.Length &gt; 0) { StringBuilder resultList = new StringBuilder(&quot;&quot;); for (int i = 0; i &lt; searchResponse.ResultSets[0].Results.Length; i++) { resultList.Append(String.Format(&quot;{0}. {1},{2},{3}\n&quot;, i + 1, searchResponse.ResultSets[0].Results[i].Name, searchResponse.ResultSets[0].Results[i].Distance, ((VESearchService.BusinessSearchResult)(searchResponse.ResultSets[0].Results[i])).Address.AddressLine)); // string str = ((VESample_Test.VESearchService.BusinessSearchResult)(searchResponse.ResultSets[0].Results[0])).Address.AddressLine; } results = resultList.ToString(); } else results = &quot;No results found&quot;; return results; }</pre> This is the code that i am using for searching nearest location using web services. But the problem i am facing here is that here i can pass only 1 search parameter for searching like only park or only pizza or school. <br/><br/>I want to pass 3 search parameter school,park and pizza at a time to search method. Because i want to search the nearest location either it is school or pizza hut or park. <br/><br/>Is there any way for passing 3 or more search parameter at a time?<br/>Fri, 27 Nov 2009 10:02:07 Z2009-11-28T05:24:20Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/448b6a15-c8fd-477f-9e92-6ec26c51be42http://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/448b6a15-c8fd-477f-9e92-6ec26c51be42Wanacohttp://social.msdn.microsoft.com/Profile/en-US/?user=WanacoShapes in Current Map ViewHi Everyone,<br/> <br/> I haven't found a way to do the following:<br/> <br/> <strong>I need to retrieve the shapes (pushpins) that are visible in the current map view as an array of VEShapes.  I think the VEMap class doesn't provide this kind of functionality.</strong> <br/> <br/> What I know is that I can get the map's bounding rectangle as a <span>VELatLongRectangle class</span> ... So I'll probably be able to calculate witch pushpin intersect with that rectangle.  The thing is that I'll probably have some 400 pushpins in ShapeLayers so going through all the of them will be a huge task.<br/> <br/> There's certainly a better way to get a list of the visible shapes only.<br/> <br/> Thanks!<br/>Wed, 25 Nov 2009 21:29:40 Z2009-11-27T19:17:31Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/89356d34-0245-46ee-907a-89e824e95986http://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/89356d34-0245-46ee-907a-89e824e95986Dave Sussmanhttp://social.msdn.microsoft.com/Profile/en-US/?user=Dave%20SussmanSilverlight Map: Different tile source for area of mapI've a requirement to display certain regions on a map using a different tile source, at selected zoom levels. I'm using the OpenStreetMap tile source as a test bed, so most of the map contains the normal Bing tiles, while a region contains the OSM tiles. I've defined the tile source as a LocationRectTileSource and passed in my small bounding rectangle and zoom range, but this doesn't seem to have any effect; it shows the entire OSM map, not just the region.<br/> <br/> So I modified by tile source GetUri method so this it checks coverage (using code from the base class, but pulled out as it's private, so I can test). My GetUri method now does:<br/> <br/>         public override Uri GetUri(int x, int y, int zoomLevel)<br/>         {<br/>             Uri uri = null;<br/>             if (this.Covers(x, y, zoomLevel))<br/>             {<br/>                 uri = new Uri(String.Format(this.UriFormat, x, y, zoomLevel));<br/>             }<br/>             else<br/>             {<br/>                 uri = base.GetUri(x, y, zoomLevel);<br/>             }<br/>             return uri;<br/>         }<br/> <br/> And this appears to work. Sort of. The OSM region shown is larger than my bounding rectangle I've defined, and doesn't seem to zoom, it just stays at the zoom level it rendered when first loaded. So am I missing something obvious about a LocationRecttileSource? The interactive SDK shows overlapping with the lidar data, so is it just dependent upon the tiles returned?<br/> <br/> &lt;aside&gt;<br/> Ideally I really want PolygonTileSource, since I want to clip the embedded tile source to a polygon, but that's another issue. I suspect I might have to do something similar to Richard's Dynamic Tile Layers project.<br/> &lt;/aside&gt;Fri, 27 Nov 2009 16:16:31 Z2009-11-27T16:16:32Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/192d79a9-4a06-4033-a933-d7e452183a52http://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/192d79a9-4a06-4033-a933-d7e452183a52Richard_Brundritthttp://social.msdn.microsoft.com/Profile/en-US/?user=Richard_BrundrittBing Maps Custom Tile SkinnerThere is a product called “CloudMade” which gives you the ability to choose amongst a large number of map types that have different skins. You can either create your own skins or use a pre-existing skin from the following page <a title="http://maps.cloudmade.com/editor" href="http://maps.cloudmade.com/editor" title="http://maps.cloudmade.com/editor">http://maps.cloudmade.com/editor</a> . As cool as this is it would be even cooler if we could do something like this in Bing Maps. the following post shows one way of doing this: <a title="http://rbrundritt.spaces.live.com/blog/cns!E7DBA9A4BFD458C5!1055.entry" href="http://rbrundritt.spaces.live.com/blog/cns!E7DBA9A4BFD458C5!1055.entry" title="http://rbrundritt.spaces.live.com/blog/cns!E7DBA9A4BFD458C5!1055.entry">http://rbrundritt.spaces.live.com/blog/cns!E7DBA9A4BFD458C5!1055.entry</a> <br/><hr class="sig">Windows Live Developer MVP - http://rbrundritt.spaces.live.comFri, 27 Nov 2009 15:32:15 Z2009-11-27T15:32:16Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/eded4d2f-5181-48a5-9c5a-c0bff07f6268http://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/eded4d2f-5181-48a5-9c5a-c0bff07f6268TheMapDoctorhttp://social.msdn.microsoft.com/Profile/en-US/?user=TheMapDoctorIs there a 'Staging' environment for Bing Maps Silverlight?Since the Bing Maps Silverlight control went 'live' recently, I was wondering if there was an equivalent to the previous &quot;Staging&quot; environment that used to be available with regular Virtual Earth.<br/><br/>Reason being we are developing a solution for a customer and they need to have access to it via the web in order to test/check functionality.<br/>As far as I know, the staging environment depended on &quot;Tokens&quot; whereas the new Silverlight Control depends on Keys.  We have our own developer Keys that we use for testing and development but I understand there are limitations on those keys, whereas the old Staging environment was less restricted (having the word &quot;Staging&quot; plastered over the maps).  Our customer will, of course, purchase their own Bing Maps licence(s) when the product we are developing is ready for release.<br/><br/>Can anybody enlighten me?<br/><br/>Many thanks!<br/>TheMapDoctor<br/>Wed, 25 Nov 2009 15:13:40 Z2009-11-27T08:59:19Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/be38ed31-1ed5-4252-a9aa-11cc09c566ebhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/be38ed31-1ed5-4252-a9aa-11cc09c566ebcownewhttp://social.msdn.microsoft.com/Profile/en-US/?user=cownewBMSL:Very slow when zooming after add more than 2000 MapPolygon<p>I added more than 1000 MapPolygon to Bing Maps SilverLight,when I tried to zoom the map,it will take serveral seconds to render those MapPolygons.I have tried to merge nearby MapPolygons to bigger one,and still more than 2000 MapPolygons to be displayed,so It's still very slow .It's there any methods to make it faster?<br/>thanks!<br/>my code as following:</p> <pre lang="x-c#"> private MapPolygon createMapPolygon(ServiceRect serviceRect) { MapPolygon mapPolygon = new MapPolygon(); mapPolygon.IsEnabled = false; mapPolygon.IsTabStop = false; mapPolygon.UseLayoutRounding = false; mapPolygon.Locations = new LocationCollection(); mapPolygon.Locations.Add(toLocation(serviceRect.NWPoint)); mapPolygon.Locations.Add(toLocation(serviceRect.NEPoint)); mapPolygon.Locations.Add(toLocation(serviceRect.SEPoint)); mapPolygon.Locations.Add(toLocation(serviceRect.SWPoint)); return mapPolygon; } void serviceClient_GetMapByTypeCompleted(object sender, ForecastServiceReference.GetMapByTypeCompletedEventArgs e) { if (e.Error != null) { throw e.Error; } int landType = (int)e.UserState; foreach (ServiceRect serviceRect in e.Result) { MapPolygon mapPolygon = createMapPolygon(serviceRect); mapPolygon.Fill = getLandBrush(landType); MainLayer.Children.Add(mapPolygon); } } private Brush getLandBrush(int landType) { switch (landType) { case 1: return brushLand1; case 2: return brushLand2; case 3: return brushLand3; case 4: return brushLand4; case 5: return brushLand5; case 6: return brushLand6; default: throw new Exception(&quot;landType error:&quot;+landType); } }</pre><hr class="sig">cownew open sourceThu, 26 Nov 2009 03:55:16 Z2009-11-27T02:40:28Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/3b3c6219-1796-4b0c-9873-2ab3c06b7e6bhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/3b3c6219-1796-4b0c-9873-2ab3c06b7e6bgarethrhugheshttp://social.msdn.microsoft.com/Profile/en-US/?user=garethrhughesWorld WrapIs world wrap (available on http://www.bing.com/maps/) going to be available in the SDK soon? Or is it available with any of the licencing options?<br/> <br/> ThanksWed, 25 Nov 2009 10:38:03 Z2009-11-26T18:55:40Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/ba636e43-cdaa-4224-b974-d9cb0514ac99http://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/ba636e43-cdaa-4224-b974-d9cb0514ac99Richard_Brundritthttp://social.msdn.microsoft.com/Profile/en-US/?user=Richard_BrundrittApplicationId in WinFormsDoes anyone know how to get the ApplicationId to work with the web services when being used by a desktop app (winform)? I've tried using application keys tat are registered to localhost but that does not seem to work.<hr class="sig">Windows Live Developer MVP - http://rbrundritt.spaces.live.comWed, 25 Nov 2009 09:25:34 Z2009-11-26T18:44:45Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/e8ea175e-1178-436c-9aca-f867081f3d18http://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/e8ea175e-1178-436c-9aca-f867081f3d18Maurizio Cecattohttp://social.msdn.microsoft.com/Profile/en-US/?user=Maurizio%20CecattoSilverlight Control - MapLayer Bounding Rectangle<p>Hi, <br/><br/>is there a way to get the Bounding Rectangle of a MapLayer?<br/><br/>In the AJAX control there was this method:</p> <pre lang=x-js>VEShapeLayer.GetBoundingRectangle();</pre> In the Silverlight control I found the static method:<br/> <pre lang="x-c#">MapLayer.GetPositionRectangle(DependencyObject dependencyObject)</pre> but i don't know how to use it, if I try to call it with my layer as parameter, I receive null.<br/><br/>Has someone any example?<br/><br/>Thank youThu, 26 Nov 2009 16:55:13 Z2009-11-26T16:55:15Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/1933a643-b7b6-4755-b288-4066f238a2afhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/1933a643-b7b6-4755-b288-4066f238a2afBetterTodayhttp://social.msdn.microsoft.com/Profile/en-US/?user=BetterTodayHow To Delete A Bing Maps Key?<p>I'm fiddling around with the Bing Maps AJAX control. To do this I've created some key. However this was just a test with no further meaning.<br/><br/>How can I delete this key?<br/><br/>TIA,<br/>Axel Dahmen</p>Wed, 25 Nov 2009 23:46:30 Z2009-11-26T14:16:24Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/daf991fb-fab9-4983-bc2c-a9f4242f336bhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/daf991fb-fab9-4983-bc2c-a9f4242f336bKinWorldhttp://social.msdn.microsoft.com/Profile/en-US/?user=KinWorldBing Silverlight Map Control Release<a href="http://www.bing.com/community/blogs/maps/archive/2009/11/09/bing-maps-silverlight-control-1-0-released.aspx">http://www.bing.com/community/blogs/maps/archive/2009/11/09/bing-maps-silverlight-control-1-0-released.aspx</a><br/><br/>What do we think?<hr class="sig">TimTue, 10 Nov 2009 11:12:23 Z2009-11-26T13:56:33Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/0c1ed90f-ed7f-4014-b1dc-d5c5556c64cehttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/0c1ed90f-ed7f-4014-b1dc-d5c5556c64ceRichard_Brundritthttp://social.msdn.microsoft.com/Profile/en-US/?user=Richard_BrundrittDynamic Tile Layers and the Silverlight controlI've put together a presentation on how to create dynamic tile layers for the Bing Maps Silverlight control. the complete source code, presentation slides, and database can be downloaded here: <a title="http://rbrundritt.spaces.live.com/blog/cns!E7DBA9A4BFD458C5!1047.entry" href="http://rbrundritt.spaces.live.com/blog/cns!E7DBA9A4BFD458C5!1047.entry" title="http://rbrundritt.spaces.live.com/blog/cns!E7DBA9A4BFD458C5!1047.entry">http://rbrundritt.spaces.live.com/blog/cns!E7DBA9A4BFD458C5!1047.entry</a> <br/> <br/> I also included an example of how to reuse this dynamic tile service with the AJAX control.<hr class="sig">Windows Live Developer MVP - http://rbrundritt.spaces.live.comThu, 26 Nov 2009 12:13:33 Z2009-11-26T12:13:33Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/9ba26cc4-3380-4761-a3fe-25955224d012http://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/9ba26cc4-3380-4761-a3fe-25955224d012doublebyte1http://social.msdn.microsoft.com/Profile/en-US/?user=doublebyte1Problem with uf8 encoding of urlsHi,<br/> I ve recently encounter some issues with utf8 encoded and the ajax Virtual Earth control.<br/> I have a VE server that expects utf8 encoded strings and I want to acess it through a webpage using the VE control.<br/> The way I do it is using the VETileSourceSpecification, and specifying a custom url;<br/> <br/>                 var tileSourceSpec = new VETileSourceSpecification(&quot;ALayer&quot;, strGet);<br/> <br/> In this url, I have sometimes non standard layer names like: <br/> <br/> 偁橲<br/> <br/> So I want to encode them into utf8 and I do it using a regular expression (this allows me to encode *just* the layer name inside the url):<br/> <br/>                 strGet=strGet.replace( /[\\?&amp;amp;]LAYERS=([^&amp;amp;#]*)/, '&amp;LAYERS=' + Url.encode(/[\\?&amp;amp;]LAYERS=([^&amp;amp;#]*)/.exec(strGet)[1]) );<br/> <br/> This works fine for a 2D map, but as soon as I switch to 3D mode, the encoding gets completely messed; For instance, with the layer above, this is the expression I pass into VE control:<br/> <br/> http://127.0.0.1:47809/BingMapsService/BM.serv?REQUEST=GetTile&amp;FORMAT=image/png;PhotometricInterpretation=RGB&amp;LAYERS=_偁橲&amp;TILEWIDTH=256&amp;TILE=%4.png<br/> <br/> And this is the url that gets into my server:<br/> <br/> http://dev309.dev.cadcorp.net:4326/BingMapsService/BM.serv?REQUEST=GetTile&amp;FORMAT=image/png;PhotometricInterpretation=RGB&amp;LAYERS=_?127.0.0.11127.0.0.11?&amp;TILEWIDTH=256&amp;TILE=0.png<br/> <br/> There is obviously an encoding issue here: what is the control doing? is it reencoding the string?<br/> If I do not encoded, it also comes &quot;wrong&quot;: like this<br/> <br/> http://dev309.dev.cadcorp.net:4326/BingMapsService/BM.serv?REQUEST=GetTile&amp;FORMAT=image/png;PhotometricInterpretation=RGB&amp;LAYERS=_??&amp;TILEWIDTH=256&amp;TILE=0.png<br/> <br/> Is this a known bug or am I missing something here? and why does it only happen in 2D mode?<br/> Does anybody encountered this problem or do you have any ideas for a workaround? SHould I try the silverlight version?<br/>                       Thanks in advance for your answers! Im really lost here...<br/>                                                                                                               cheers,<br/>                                                                                                                           Jo<br/> <br/> <br/> <br/>Thu, 26 Nov 2009 12:05:19 Z2009-11-26T12:05:19Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/11529ea2-d8b9-40ab-bdc9-88501ec3a4fahttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/11529ea2-d8b9-40ab-bdc9-88501ec3a4faViktor Szulehttp://social.msdn.microsoft.com/Profile/en-US/?user=Viktor%20SzuleSilverlight Map - Multiple TileSources<p>I found two problem when I added custom tilesources to my silverlight map:</p> <p>1. There are two TileSource (TileSource1 and TileSource2).<br/>When I remove TileSource2 then MapControl download TileSource1 (and its all visible tiles) again and refresh the map.<br/>It is very annoying when I remove or add an additional TileSource to the map, then mapcontrol reload all tiles of other TileSources too.</p> <p>2. There are two TileSource (TileSource1 and TileSource2).<br/>These two TilseSources download tiles from different servers.<br/>If MapControl can not download tiles of TileSource2 (because the server is unavailable) then it will display &quot;empty gray&quot; tiles.<br/>These gray tiles hide the tiles what are displayed by TileSource1. <br/>Would it be possible to set a property which can make transparent these gray tiles?</p>Thu, 26 Nov 2009 11:34:23 Z2009-11-26T11:34:24Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/ee596a6d-6c60-462c-b08d-ff6a90fe33dahttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/ee596a6d-6c60-462c-b08d-ff6a90fe33daKhanh Hoanghttp://social.msdn.microsoft.com/Profile/en-US/?user=Khanh%20HoangBing Maps Interactive SDK / Windows Mobile 6.5 Widget<p>I'm having issue implimenting Bing Maps Interactive SDK within a windows mobile widget.<br/><br/>Currently it is failing at map.LoadMap<br/><br/>Does windows mobile 6.5 fully support Bing Maps Interactive SDK.<br/><br/>    map = new VEMap('divMap');<br/>    map.LoadMap(new VELatLong(sLatitude, sLongitude));   <br/>    map.SetZoomLevel(11); <br/><br/>    var locations;</p> <p>    if (start==&quot;from&quot;)<br/>        locations = new Array(sMyLocation, new VELatLong(sLatitude, sLongitude));<br/>    else<br/>        locations = new Array(new VELatLong(sLatitude, sLongitude), sMyLocation);<br/>         <br/>    var options = new VERouteOptions;<br/>    options.DrawRoute      = true;<br/>    options.SetBestMapView = false;<br/>    options.RouteCallback  = ShowTurns;<br/>    options.DistanceUnit   = VERouteDistanceUnit.Mile;<br/>    options.ShowDisambiguation = true;<br/>    map.GetDirections(locations, options);</p>Thu, 26 Nov 2009 09:15:36 Z2009-11-26T10:26:09Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/a55892f7-addc-4709-8ddf-889a00b27213http://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/a55892f7-addc-4709-8ddf-889a00b27213BetterTodayhttp://social.msdn.microsoft.com/Profile/en-US/?user=BetterTodayQuestions on Bing Maps AJAX control hosted in .NET WebBrowser controlI'm an absolute beginner to MapPoint and I'm experimenting with the AJAX version of Bing Maps right now.<br/> <br/> A couple of things don't seem to work the way they should. Can someone please enlighten me on the following issues:<br/> <ul style="margin-top:1em;margin-bottom:1em"> <li style="margin-bottom:2em">I don't use a &lt;div&gt; element, instead I'm using the &lt;body&gt; element to have the map get all available space without any pre-configuration. However, if I resize my .NET application window and, thus, the WebBrowser control, the map is still displayed at a fixed width of, I don't know, say 600*600 pixels.<br/> <br/> Is this common behaviour?<br/> <br/> How can I have the AJAX control automatically fit into its containers dimensions?<br/> <br/> Weird: The Bing logo and the scale are drawn correctly at the bottom of the web content. </li> <li style="margin-bottom:2em">I cannot right-click into the map in order to zoom-out of the map. Whether I set the IsWebBrowserContextMenuEnabled property to True or False, right-clicking into the map doesn't have any effect.</li> <li style="margin-bottom:2em">I tried to avoid getting that click noise sounded off by the WebBrowser control everytime a new URL is loaded by using <a href="http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/e72b37d2-d20b-4a59-8560-24a10b17db97/">this trick</a> . Unfortunately Bing Maps doesn't seem to load if the HTML has been given using the webBrowser.Document.OpenNew().Write(...) method.<br/> <br/> What am I doing wrong?</li> </ul> <br/> Here's the HTML I'm using:<br/> <br/> <blockquote>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;<br/> &lt;html&gt;<br/>     &lt;head&gt;<br/>         &lt;title&gt;Map File&lt;/title&gt;<br/>         &lt;script charset=&quot;UTF-8&quot; type=&quot;text/javascript&quot; src=&quot;http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2&amp;mkt=de-DE&quot;&gt;&lt;/script&gt;<br/>         &lt;script type=&quot;text/javascript&quot;&gt;<br/>             function InitMap()<br/>                 {var map=new VEMap('myMap');<br/>                 map.LoadMap();}<br/>         &lt;/script&gt;<br/>     &lt;/head&gt;<br/>     &lt;body id=&quot;myMap&quot; onload=&quot;InitMap();&quot; style=&quot;background-color: Red;&quot;&gt;<br/>     &lt;/body&gt;<br/> &lt;/html&gt;</blockquote> <br/> Any help is appreciated!Thu, 26 Nov 2009 01:45:44 Z2009-11-26T01:45:45Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/b0402dc1-9d93-40f6-a136-9e8f7182a644http://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/b0402dc1-9d93-40f6-a136-9e8f7182a644Guest11http://social.msdn.microsoft.com/Profile/en-US/?user=Guest11how to show that output on bing map?I got web service search example from this link:<br/><a href="http://msdn.microsoft.com/en-us/library/dd221354.aspx">http://msdn.microsoft.com/en-us/library/dd221354.aspx</a><br/><br/>But here they shows the output in label but i want to show that output on bing map.<br/><br/>How can i do that because the function used for searching is in c# so how can i call code behind function from javascript.<br/><br/>If there is any solution please tell me.<br/><br/>Thanks in advance<br/>Tue, 24 Nov 2009 11:12:56 Z2009-11-28T05:25:13Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/b0368076-8130-4f23-a180-309c321e2e04http://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/b0368076-8130-4f23-a180-309c321e2e04JohnFeeneyhttp://social.msdn.microsoft.com/Profile/en-US/?user=JohnFeeneyFirst example<p>I worked through the example for buidling a Virtual Earth using Silverlight routing program. My program compiles correctly. The program has Virtual earth on the screen, two textboxes and a button.</p> <p>When I runthe program, I am putting into the textboxes the following (format is city, province, country) Clinton, Ontario, Canada and in the the other textbox Exeter, Ontario, Canada.<br/><br/>I get back a message (from the debugger after the program craps out) that the location could not be found and the problem is in the references on line 1510 about GeoCode services.<br/><br/>My question is: Should my entry of Clinton, Ontario, Canada be giving an error message? Is it the correct format?</p>Tue, 05 May 2009 20:30:28 Z2009-11-25T18:01:12Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/ee0e95e5-19ce-4e72-a143-fd417e8f3db0http://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/ee0e95e5-19ce-4e72-a143-fd417e8f3db0pezholiohttp://social.msdn.microsoft.com/Profile/en-US/?user=pezholioStrange info box positioningHi all,<br/> <br/> I'm building a quite complex system that (amongst other things) allows users to choose from a bunch of layers and display them on a map (generated from a KML file). Once the file is loaded, a sidebar is populated where users can click on an item and the info box pops up on the map.<br/> <br/> However, it seems that the positioning is sometimes odd on the map, generally it's about 100 pixels higher than it should be. I've tried everything and nothing seems to work, here's the code in question.<br/> <br/> <strong>Loading in the KML File</strong> (a few non-Bing specific bits of code to load text etc into the sidebar)<br/> <pre lang=x-js>function onFeedLoad(layer) { document.getElementById(&quot;intro&quot;).innerHTML = &quot;&lt;a href='javascript:toggleMarker(this, intro)'&gt;Select another layer&lt;/a&gt;&quot;; var numShapes = layer.GetShapeCount(); var shape; var sidebar = document.getElementById('sidebar_list'); sidebar.innerHTML = &quot;&lt;ul&gt;&quot;; for (var i = 0; i &lt; numShapes; ++i) { shape = layer.GetShapeByIndex(i); shape.SetTitle(shape.GetTitle()); shape.SetDescription(shape.GetDescription()); shape.SetDes shape.SetCustomIcon(shape.IconId); sidebar.innerHTML += '&lt;li&gt;&lt;a href=&quot;#&quot; onclick=&quot;openInfoBox(\'' + shape.GetID() + '\');return false;&quot;&gt;' + shape.GetTitle() + '&lt;/a&gt;&lt;/li&gt;'; } sidebar.innerHTML += &quot;&lt;/ul&gt;&quot;; }</pre> <strong>Function to open the Info Box</strong> <br/> <pre lang=x-js>function openInfoBox(markerId){ map.HideInfoBox(); currentShape = map.GetShapeByID(markerId); map.ShowInfoBox(currentShape); }</pre> The page in full is here (ignore the formatting of the boxes - it's a work in progress!)<br/> <br/> <a href="http://www.lichfielddc.gov.uk/site/custom_scripts/bingmap.php">http://www.lichfielddc.gov.uk/site/custom_scripts/bingmap.php</a>Fri, 20 Nov 2009 14:51:24 Z2009-11-25T15:10:51Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/eedabd40-809c-417e-a0a2-f62e0ba4c20bhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/eedabd40-809c-417e-a0a2-f62e0ba4c20bDan_Danhttp://social.msdn.microsoft.com/Profile/en-US/?user=Dan_DanAdd pushpin with custom style - Description and iconHi all,<br/><br/>How would one add a custom pushpin to the newly released silverlight control?<br/><br/>I can add a simple pushpin but couldnt find any examples on how would i style that pushpin in the new map control.<br/><br/>Thank you for your time.<br/><br/>Cheers<br/><hr class="sig">DanTue, 24 Nov 2009 14:50:11 Z2009-11-25T09:08:59Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/2cc0b5c1-c8c4-4dd4-9d00-f6d2cf02f973http://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/2cc0b5c1-c8c4-4dd4-9d00-f6d2cf02f973Naren7http://social.msdn.microsoft.com/Profile/en-US/?user=Naren7user control in windows formhi every bdy<br/>i dnt know how to create user control  in window forms like our I.e 7  using c#.net.<hr class="sig">NarenWed, 25 Nov 2009 01:00:37 Z2009-11-25T01:00:38Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/79235f7e-b8b3-456b-8da2-4b2d7f665ffahttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/79235f7e-b8b3-456b-8da2-4b2d7f665ffaThinkTank25http://social.msdn.microsoft.com/Profile/en-US/?user=ThinkTank25Loading SVG data into Map ControlI have an app created that loads my svg data into a sql 2008 and stores the objects as polylines. My problem is that svg is treated as vector objects (x,y). I need to take my x,y values and convert them to long, lat.<br/> <br/> I can view the spatical data in sql server and everything looks great. I just need to transfer that information to my vb code and display on the map control.<br/> <br/> Please help!Mon, 19 Oct 2009 13:36:49 Z2009-11-24T23:30:32Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/1ca46e01-22d1-4002-a4f1-abe6e8339506http://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/1ca46e01-22d1-4002-a4f1-abe6e8339506BenXiehttp://social.msdn.microsoft.com/Profile/en-US/?user=BenXieHow to change VEMapOptions.LoadBaseTiles without reloading map? Hi Guys, <br>Just like the title, is there any method to change VEMapOptions.LoadBaseTiles without reloading map after i did Map.LoadMap(.....mapOptions)? Any suggestion will be appreciated.<br><br><br><br>Best Regards,<br>Ben Xie BinMon, 29 Dec 2008 06:47:24 Z2009-11-24T22:17:30Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/78431c98-b116-47e9-a495-7c7904b631d0http://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/78431c98-b116-47e9-a495-7c7904b631d0JCalatohttp://social.msdn.microsoft.com/Profile/en-US/?user=JCalatoBing Maps in DelphiHi I'm just wondering if there is anyway to use the bing maps web services in delphi 7.  I imported the wsdl file into delphi for the Route Service and there are some problems with the pas file that gets generated.  At the top of the file the importer put this comment in which pretty much sums up the problems I'm having.  Does anyone know why this would happen?  Does anybody know how these types should be defined so that I can call this web service from delphi?  Thanks in advance for any help.  Here is the comment that the importer put in the pas file:<br/><br/> <pre> // ************************************************************************ // // The following types, referred to in the WSDL document are not being represented // in this file. They are either aliases[@] of other types represented or were referred // to but never[!] declared in the document. The types from the latter category // typically map to predefined/known XML or Borland types; however, they could also // indicate incorrect WSDL documents that failed to declare or import a schema type. // ************************************************************************ // // !:CalculateRoute - &quot;http://dev.virtualearth.net/webservices/v1/route/contracts&quot; // !:CalculateRouteResponse - &quot;http://dev.virtualearth.net/webservices/v1/route/contracts&quot; // !:ResponseSummary - &quot;http://dev.virtualearth.net/webservices/v1/common&quot; // !:CalculateRoutesFromMajorRoads - &quot;http://dev.virtualearth.net/webservices/v1/route/contracts&quot; // !:CalculateRoutesFromMajorRoadsResponse - &quot;http://dev.virtualearth.net/webservices/v1/route/contracts&quot; </pre>Tue, 24 Nov 2009 18:09:26 Z2009-11-24T18:09:27Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/1a1605c1-c442-4175-ada3-916a97e21bdahttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/1a1605c1-c442-4175-ada3-916a97e21bdaobrienlxhttp://social.msdn.microsoft.com/Profile/en-US/?user=obrienlxBing Maps 3D causes IE8 tab and/or Firefox to crashI recently upgraded my Acer Laptop to Windows 7 with the upgrade discs provided by Acer. Now Bing Maps loads OK in 2D mode, but when I try to go into 3D mode in IE8, the tab closes and I get an error message:<br/><br/>&quot;A problem with this webpage caused Internet Explorer to close and reopen the tab.&quot;<br/><br/>When I try the same thing in Firefox, the entire browser session crashes.  I have tried all the suggested solutions from the Bing Maps Help section, along with several things found on the web (disabling add-ins, uninstalling Flash, re-installing Java etc) and some ideas of my own such as updating and/or rolling back the video driver, disabling and re-enabling the .net framework, uninstalling and re-installing Silverlight but nothing seems to help.<br/><br/>There are no other error messages or logs (that I could find) offering any other info regarding this problem.<br/><br/>Any suggestions?Sat, 21 Nov 2009 12:07:20 Z2009-11-24T18:00:47Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/90bfaea1-56da-4474-a203-07575e8912eehttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/90bfaea1-56da-4474-a203-07575e8912eeMilli_22http://social.msdn.microsoft.com/Profile/en-US/?user=Milli_22Call the database store proc more then onceHi all,<br/><br/>When my maps page loads it automaticallys goes to this function<br/><br/>Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest<br/><br/>Does its SQL call<br/><br/>Firstly I dont know how this gets called as I have nothing in my Javascript file that has the words ProcessRequest.<br/><br/>But then if I wanted to call this ProcessRequest again and make another call to the DB how would I do it??<br/><br/>Any help will be much appreciated.<br/><br/>thanks<br/><br/>Milli<br/><br/>please help?<br/>Mon, 23 Nov 2009 17:01:23 Z2009-11-24T15:06:26Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/74ea86ea-7fb8-4a65-b32e-96d7f862c6a5http://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/74ea86ea-7fb8-4a65-b32e-96d7f862c6a5TerryLhttp://social.msdn.microsoft.com/Profile/en-US/?user=TerryLChange Pushpin Object ColorHi: <br/><br/>Now that we have a Pushpin object, is there any way to select a color other than the default orange?  It would be really nice if I could specify different colors for the same pushpin image to designate different types of lcoations on a map.<br/><br/>If that isn't built in, where can I get the default icon so that I can edit the color myself.<br/><br/>Thanks,<br/><br/>TerrySun, 22 Nov 2009 00:35:37 Z2009-11-24T00:01:05Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/22a175f6-2f25-4b13-b5f3-81f2b74f41f1http://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/22a175f6-2f25-4b13-b5f3-81f2b74f41f1JustMerlinGuyhttp://social.msdn.microsoft.com/Profile/en-US/?user=JustMerlinGuyMedia Element video and Bing Map in Silverlight causes CPU to max during zooms and pans.I am developing a Silverlight application that can show a video and a map on screen at the same time.   If I load a map I can pan and zoom fast and easy.  However if I load a video into a Media Element while a map is showing then the CPU maxs out everytime I pan and zoom the map.  No, I am not playing the video I am just loading it and displaying the first frame.  Anyone else seeing this?  This is a killer for me since I want to show videos as tracks on a map, play the video and map the camera's location as the GPS coordinates change.Fri, 20 Nov 2009 22:50:29 Z2009-11-23T22:05:46Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/2f14967b-d86f-4477-a5a3-dd3d48c7c3f3http://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/2f14967b-d86f-4477-a5a3-dd3d48c7c3f3Dave Sussmanhttp://social.msdn.microsoft.com/Profile/en-US/?user=Dave%20SussmanSilverlight - Databinding and styles/templatesIn an effort to refactor some of my code into something less like a hacky pile of string, I've created custom pushpin classes, that inherit from Pushpin, adding a few additional properties (DependencyProperty backed): Icon, infobox content, etc. These I add to the map using an application style, which simply displays the custom icon at the appropriate size. Eg:<br/> <br/>         &lt;Style x:Key=&quot;PinStyle&quot; TargetType=&quot;l:MapPin&quot;&gt;<br/>             &lt;Setter Property=&quot;Template&quot;&gt;<br/>                 &lt;Setter.Value&gt;<br/>                     &lt;ControlTemplate TargetType=&quot;l:MapPin&quot;&gt;<br/>                         &lt;Canvas&gt;<br/>                             &lt;Image x:Name=&quot;PinImage&quot; Source=&quot;{TemplateBinding Source}&quot; <br/>                                         Height={TemplateBinding Height} Width=&quot;{TemplateBinding Width}&quot;<br/>                                         /&gt;<br/>                         &lt;/Canvas&gt;<br/>                     &lt;/ControlTemplate&gt;<br/>                 &lt;/Setter.Value&gt;<br/>             &lt;/Setter&gt;<br/> <br/> <br/> This works fine. I've also sub-classed that custom pushpin to include a Radius and Points (LocationCollection), the intention being to have a custom pushpin (with it's custom icon) but with a cirle (MapPolygon) around it at the defined distance. So what I have is another style, this time with an Image and a MapPolygon, eg:<br/> <br/>         &lt;Style x:Key=&quot;PoiStyle&quot; TargetType=&quot;l:PointOfInterest&quot;&gt;<br/>             &lt;Setter Property=&quot;Template&quot;&gt;<br/>                 &lt;Setter.Value&gt;<br/>                     &lt;ControlTemplate TargetType=&quot;l:PointOfInterest&quot;&gt;<br/>                         &lt;Canvas x:Name=&quot;PoiGrid&quot;&gt;<br/>                             <br/>                             &lt;Image x:Name=&quot;PoiImage&quot; Source=&quot;{TemplateBinding Source}&quot;<br/>                                 Height=&quot;{TemplateBinding Height}&quot; Width=&quot;{TemplateBinding Width}&quot;&gt;<br/>                                 /&gt;<br/>                             &lt;m:MapItemsControl&gt;<br/>                                 &lt;m:MapPolygon x:Name=&quot;PoiPoints&quot; Background=&quot;red&quot; Stroke=&quot;AliceBlue&quot;&gt;<br/>                                 &lt;/m:MapPolygon&gt;<br/>                             &lt;/m:MapItemsControl&gt;<br/> <br/>                         &lt;/Canvas&gt;<br/>                     &lt;/ControlTemplate&gt;<br/>                 &lt;/Setter.Value&gt;<br/>             &lt;/Setter&gt;<br/>         &lt;/Style&gt;<br/> <br/> However, this leads to two problems:<br/> <br/> <ol> <li>How to bind the points. I've tried to bind the points as well as using OnApplyTemplate to get the polygon and add the points to it.Neither work and I suspect it's because of: </li> <li>An exception because &quot;IProjectable elements can only reside under other IProjectable elements or Map control directly.&quot; </li> </ol> I've tried with and without the MapItemsControl in the template.<br/> <br/> These custom pushpins are create in code then added to a map layer. Now I can do this using an ellipse instead of the polygon, but then I lose the correctness of the circle (although that's probably not an issue given the distances I'm dealing with). Plus I couldn't instantly find a formula for matching the radius of an ellipse to a distance in metres (my Google foo was failing badly on that). As an aside, I couldn't et binding to work to a contained object. Eg:<br/> <br/> Stroke={TemplateBinding Outline.Stroke}<br/> <br/> I had to create a Stroke property on the main object that wrapped the inner one.<br/> <br/> It's entirely possible I might be tackling all this the wrong way, but this seems to be the correct way to display custom content for a pushpin.<br/> <br/> Views? Thoughts? Answers?<br/> <br/> Thanks<br/> <br/> DaveMon, 23 Nov 2009 17:51:13 Z2009-11-23T17:51:14Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/e292c6d3-bc0b-428b-a835-94257bf6d277http://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/e292c6d3-bc0b-428b-a835-94257bf6d277powellahttp://social.msdn.microsoft.com/Profile/en-US/?user=powellaMap API Generating Invalid XHTMLThe map API is using document.write to write to the page (and DOM) and during that write, is inserting a &amp;nbsp; character, which is invalid xhtml. Should be using &amp;#160;. I'm trying to figure out who to contact about this.<br/> <br/> I cannot use bing maps to develop, as we are using xhtml with the application/xml+xhtml content type. Please don't ask *why* we're using xhtml. We just are. The &amp;nbsp; is causing a script error on Firefox, and it's rendering Bing Maps unusable.<br/> <br/> MVPs PLEASE NOTE - This is NOT related to the ASP.NET control, this IS related directly to the javascript Map API.Mon, 23 Nov 2009 15:55:04 Z2009-11-23T16:38:47Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/843c03c9-024f-4b99-ab95-f40f4b13cc17http://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/843c03c9-024f-4b99-ab95-f40f4b13cc17Olsmarhttp://social.msdn.microsoft.com/Profile/en-US/?user=OlsmarBing Map Silverlight SDK errors <p>When I visit the SDK page I get error on a few examples there.</p> <p>for example The simple add pushpin.</p> <p>I have tryed a few other example on my own server with the controll and same behavior.</p> <p>When I remove the parts with lonitude and latidude (eg xx.xxxxx) from the XAML part and set in in the code behind it works.</p> <p>Is this the behaivior of the control or do I make something wrong?</p> <p>And if so why does not the SDK work?</p><hr class="sig">JWOSun, 22 Nov 2009 14:30:45 Z2009-11-23T14:57:06Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/ac5636eb-6497-423e-89ec-66976a3b021chttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/ac5636eb-6497-423e-89ec-66976a3b021cbrian behlinghttp://social.msdn.microsoft.com/Profile/en-US/?user=brian%20behlingLoad Tile Methods<p>Are there any methods I can use to determine when tiles have finished loading? I need this for a custom tile layer as well as the bing maps tiles. I am aware of the onLoadMap function and the zoom/pan event listeners but those will not work for me. They all fire after the map has loaded, not after all the tiles have finished downloading.<br/><br/>I need to display a loading icon or text because our remote offices have slow internet connections and the tiles take 2 or 3 seconds to completly download. <br/><br/>Thanks</p>Sat, 13 Jun 2009 18:39:12 Z2009-11-23T00:16:22Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/70ae7b1a-e2cc-45d4-a7a9-8f4da6f44cf6http://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/70ae7b1a-e2cc-45d4-a7a9-8f4da6f44cf6JyoGophttp://social.msdn.microsoft.com/Profile/en-US/?user=JyoGopBing Map Services not getting the resultHI <br/><br/>I am very new to Bing map control, we started development from 10/9 and on 10/10 since we got the RTM version we started using it. The application is comign out very well with the pushpins and polygons. It is very uiser friendly. This is a wonderful control compared to the earlier version of VE in SIlverlight. <br/><br/>We are facing a few issues when we try to use the GeoCodeService and RouteService. This is what i did:<br/><br/>1. I generated the Application Key by giving the url of the localhost as we are still in dev. <br/>2. I followed all the documentation that came along with the SDK to calculate the Route using the bing service. <br/>3. For some reason i am not getting the results at all. The webservice is throwing exception when we try to access it. <br/><br/>Can someone please let me know what i am missing. Also, please let me know the correct url to access the service. <br/>Thanks so much for your help.<br/><br/>Jyo<hr class="sig">chinkulWed, 11 Nov 2009 15:08:55 Z2009-11-22T22:57:46Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/3e05dd17-cf9c-413f-924e-2e5203b7b8c2http://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/3e05dd17-cf9c-413f-924e-2e5203b7b8c2shooloomhttp://social.msdn.microsoft.com/Profile/en-US/?user=shooloomToken vs. API KeyWith Bing Maps Silverlight Control v1.0, I know I need to use &quot;API Key&quot; issued from <a href="http://www.bingmapsportal.com">www.bingmapsportal.com</a>. I successfully upgraded my app from CTP to v1.0.<br/><br/>What about Bing Map Web services (Geocoding, Imagery, and etc)? In MSDN samples, it looks like token is not required. It look like just setting API key alone should work.<br/><br/>But, if I just use API key alone, I get &quot;Credentials are either invalid or unspecified&quot; exception.<br/><br/>If I use token, it works all the time on localhost. In my staging envrionment, it works for a while, but eventually it stops working and giving me the &quot;Credentials are invalid&quot; exception.<br/><br/>Can anyone help me on this issue?Tue, 17 Nov 2009 14:25:29 Z2009-11-22T22:55:30Zhttp://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/34c0e870-c6f6-4171-bbf0-c96d033859a7http://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/34c0e870-c6f6-4171-bbf0-c96d033859a7Lou Thomasonhttp://social.msdn.microsoft.com/Profile/en-US/?user=Lou%20ThomasonInconsistent "above sea level" elevation values<p>I am using the Virtual Earth 3D control (v4.0.903) to develop a Windows Forms application....(a prototype for the anxiously awaited Silverlight 3D control) and have run into an consistency between the GetSurfaceElevation method altitude when compared with altitude in the latitude/longitude/altitude display generated by the map.</p> <p>To try to debug the problem I created a simple Form with only the globeControl and enabled a globe mouse click event.  The Mouse click event handler gets both:<br/><br/>    </p> <pre lang="x-c#">LatLonAlt location = this.globeControl.Host.Navigation.PointerPosition.Location; double surfaceElevation = this.globeControl.Host.WorldEngine.GetSurfaceElevation(location.LatLon);</pre> <p>        <br/>When I click on a flat lake in the North Dakota country the &quot;location.Altitude&quot; and &quot;surfaceElevation&quot; are fairly close (differing by 0.016 meters) but they differ significantly from the value shown in the display generated by the map (a difference of about 22 meters).</p> <p>When I run Ricky Brundritt's &quot;Bing Map 3D Altitude Extraction via Mouse Click&quot;  sample program, lining the mouse up on the same point (in a flat lake bed) as best I can with my eye his values ( map display vs mouse click extracted data)match +/- 1 meter ....</p> <p>Any ideas what is causing this difference?</p>Thu, 19 Nov 2009 04:26:25 Z2009-11-22T20:46:11Z