开发者

How to reset default location map of Nerddinner?

开发者 https://www.devze.com 2022-12-08 10:01 出处:网络
It开发者_如何转开发\'s a simple issue which I want to modify for a long time. Could anyone let me know where I could change the default map location from \"USA\" to \"UK\" or other country?

It开发者_如何转开发's a simple issue which I want to modify for a long time.

Could anyone let me know where I could change the default map location from "USA" to "UK" or other country?

Many thanks.


It looks to me like you just supply it with a desired Latitude and Longitude, and it will center on that point.

You might find this of interest:

Virtual Earth JavaScript Intellisense Helper
http://www.codeplex.com/VEJS


This will solve your problem (this is in C#)

Bing.Maps.Location loc = new Bing.Maps.Location()
            {
                Latitude = yourlatitude
                Longitude = yourlongitude
            };
            map.SetView(loc, 12);
0

精彩评论

暂无评论...
验证码 换一张
取 消