添加bing地图以定位metro app javascript中的地点,并获取所选地点的经度和纬度。 [英] adding bing map to locate places in the metro app javascript and get longitude and latitude of the place selected.

查看:139
本文介绍了添加bing地图以定位metro app javascript中的地点,并获取所选地点的经度和纬度。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 我需要添加一种"tileview"在我的应用中使用"地图"(可以是bing地图或任何美国地图),以便用户可以使用地图并选择地图中的某个位置,


其次,地图应该给出所选地点的经度和纬度信息。


地图可以通过弹出窗口缩放,也可以完全导航到另一个页面。


给出的示例有点描述了我想要展示的内容: 


                                                                         
     



我尝试过使用Bing Map SDK示例,但无法获得解决方案。


帮我一些代码和想法来绑定地图。我更喜欢使用bing map sdk。


deepanshu jaiswal monocept

解决方案

这可以很容易地完成。首先,请查看Bing Maps JavaScript控件的交互式SDK,以熟悉其工作原理:
http://www.bingmapsportal.com/ISDK/AjaxV7#CreateMap1


可以在此处找到JavaScript Bing Maps控件的完整文档:
http://msdn.microsoft.com/en-us/library/gg427610.aspx


我还建议您查看这本关于创建位置智能Windows应用商店应用的免费书籍:
http://rbrundritt.wordpress.com/my-book/


有关Bing Maps的未来问题,请尝试在Bing Maps论坛中寻求更快的回复:
http://social.msdn.microsoft.com/Forums/en-US/home? category = bingmaps


 I need to add a kind of "tileview" in my app with a "map"(can be a bing map or any U.S map) so that a user could play with the map and selects some location in the map,

Secondly the map should give the longitude and latitude information for the selected place.

Map can be zoomed with a pop-up or it can be totally navigated to another page.

the given example somewhat depicts what i want to show:  

                                                                                

I have tried using the Bing Map SDK samples but din't able to get the solution.

Help me with some code and idea to bind the map. i will prefer to use bing map sdk.


deepanshu jaiswal monocept

解决方案

This can be done fairly easily. To start off take a look at the interactive SDK for the Bing Maps JavaScript control to familiarize yourself with how it works: http://www.bingmapsportal.com/ISDK/AjaxV7#CreateMap1

Full documentation for the JavaScript Bing Maps control can be found here: http://msdn.microsoft.com/en-us/library/gg427610.aspx

I also suggest taking a look at this free book on creating location intelligent Windows Store apps: http://rbrundritt.wordpress.com/my-book/

For future questions about Bing Maps try asking in the Bing Maps forums for faster responses: http://social.msdn.microsoft.com/Forums/en-US/home?category=bingmaps


这篇关于添加bing地图以定位metro app javascript中的地点,并获取所选地点的经度和纬度。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆