我正在尝试创建一个网址,以根据纬度长仓打开Bing街侧视图,但它总是将我带到错误的位置。这是我要寻找街景的位置的经纬度。
这是我根据arcgis地图中的点击点创建的网址https://www.bing.com/mapspreview?-116.393797,43.590106&lvl=17.79637&dir=265.4691&pi=-0.297&style=x&mo=z.0&ftst= 0&ftics = False&v = 2&sV = 1
这就是我要去的地方。
在这里,bing映射在街道一侧的长条打开了视野。
我很迷惑。我找不到基于经纬度显示路边所需的参数。
First off, documentation on how to create URL's for bing.com can be found here: https://msdn.microsoft.com/en-us/library/dn217138.aspx
Currently information on showing a streetview location is not documented. However, looking at the URL's from the website it is fairly easy to figure this out.
Your current URL has one big issue, the coordinates are reversed and comma separated rather than "~" separated and they aren't passed in a URL parameter. Here is a modified version of the URL: https://www.bing.com/mapspreview?cp=43.590119~-116.393826&lvl=17&dir=113.8911&pi=-0.284&style=x&v=2&sV=1
也就是说,Bing Maps网站是供消费者使用的消费者网站,实际上不应该用于商业目的。Bing Maps V8地图控件在路边,可以与您的应用程序集成。http://www.bing.com/api/maps/sdk/mapcontrol/isdk#setViewToStreetside+JS
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句