将 Google 地图 Web 部件转换为 Bing 地图 Web 部件
这是 Google 版本
我做了近 2 天的研究,为 Bing 地图找到了类似的东西强>,但运气不好,现在我想将这个 Google Map 项目更改为 Bing Map 项目,我没有任何线索。
有人可以解释一下这个项目的代码以及我需要对其进行的更改来选择 Bing 地图吗?
我知道我需要将 GoogleMap.js
更改为 BingMap.js
,我可以从 Bing SDK,但我不知道我还需要进行哪些更改。
这是 Bing 地图项目,但它获取地图图像而不是实际使用 Maps API
here is the Google version
I did almost 2 days research to find something like this for Bing Maps, but no luck, Now I am looking to change this Google Map project into Bing Map project, I have no Clue.
Can someone Explain the code of this project and the changes I need to make it Pick up Bing Maps.
I know I need to Change GoogleMap.js
to BingMap.js
, I can get this script from Bing SDK, but i can't figure out what else changes i will have to make.
Here is the Bing Map Project, but its getting Image of Map and not actually using Maps API
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
找到我想要的内容,这里是链接,
在此处输入链接描述
并感谢人们的负面评论!
我想提一件事,我浏览了 Apress 书籍“Sharepoint 2010 作为开发平台”,它向您展示了如何将 bing 地图部署为 Web 部件,但他们错过了最重要的一点,在那里的代码(从那里的网站获得)他们没有使用“ClientScriptManager”注册脚本,这会破坏 javascript,并且当您使用该 webpart 时,它不会让您使用功能区控件,因此,如果有人遇到问题(正如我看到很多帖子中的人有同样的问题),只需添加以下内容在你的java之前脚本(适用于 sharepoint 2010 webparts)
如果我说错了,请纠正我,干杯(如果我的回答对您有帮助:))
Find what I wanted, and here is the Link,
enter link description here
and thanks People for your Negative Comments !
One thing I would like to mention that, I went through Apress Book "Sharepoint 2010 as development platform" which shows you how to deploy a bing map as webpart but they missed the most Important bit, In there Code (got from there website) they are not registering the script using "ClientScriptManager" which is breaking javascript and when you use that webpart it doesn't let you use the ribbon Controls, So if anyone had issues (as i seen many posts people having same problem) Just add the following before your java script (for sharepoint 2010 webparts)
If I said anything wrong please correct me, Cheers (and if my answer helped you rate it :))