-
Our recent change of the consumer site to Windows Live Local broke some of the functionality of the Map Search Control, or Commercial Control. Apparently when we updated the site's URL the redirect to the new URL didn't work for the proxy we wrote, an error that didn't surface in our testing. So, your Commercial Control application probably needs updating. The change is simple but necessary--you must manually update the code for your proxy so it references the new URL: HttpWebRequest searchRequest = (HttpWebRequest) WebRequest.Create( http://virtualearth.msn.com/search.ashx ); Should be changed to: HttpWebRequest searchRequest = (HttpWebRequest) WebRequest.Create( http://local.live.com/search...
-
In v1 of the standard control, if you needed to get the bounding lat/long of the map you could do this: var y1 = map.GetLatitude(0); var x1 = map.GetLongitude(0); var y2 = map.GetLatitude(map.height); var x2 = map.GetLongitude(map.width); There were two problems with this approach. For the South East corner it relies on map.width and height, which no longer exist in the v2 control (map width and height are governed by the container now, hence that easier initialization and resize). But, you could now do this and it would work : var c = document.getElementById('mapcontainer'); var y1 = map.GetLatitude(0); var x1 = map.GetLongitude(0); var y2 = map.GetLatitude( c.offsetheight ); var x2 = map.GetLongitude...
-
Just quick but important reminder note: Now that Windows Live Local has launched, if you are referencing the v1 of the standard control on the old URL: http://virtualearth.msn.com/js/MapControl.js You should update this to http://dev.virtualearth.net/standard/v1/MapControl.js This will keep your application working until you are able to transition to v2. See the original post for details. Alex Daley Technical Evangelist
-
We will be posting a number of resources here and on MSDN to assist with migration ot the v2 Virtual Earth controls. This post is the first of a number we have planned highlighting notable changes in the control and providing guidance on updating code. One minor change to make note of when migrating to the v2 Standard Control is that the "onmouseclick" event is now the "onclick" event. In the previous version of the Virtual Earth Beta API, you may have attached to the onMouseClick event to be notified when a user clicked anywhere on the map control. It might have looked something like this: map.AttachEvent(" onmouseclick ", function(e) {alert("hello");} ); This would have expected every mouse...
-
Update 1: The Virtual Earth Standard Control SDK is avilable on MSDN: http://go.microsoft.com/?linkid=4304174 The news is out: the MSN Virtual Earth site is now called Windows Live Local . Check it out: http://local.live.com The reviews so far have been great, and it is excellent to see such a positive response from our customers. It was from all of your excellent feedback from the first beta that we were able to build this next version. Thank you! But, this is a developer blog, you say... What is the story with Windows Live Local for developers, you ask?... Windows Live Local is built on the Virtual Earth API, or rather on a new version of the API, you have all been using to build your applications...
find content in Bing community
Blog Recent Posts
Tag Cloud
Links
Other Virtual Earth Blogs
Navigation Links
Blog Links
Twitter
Blog Archive List