向 SP 2010 的 Bing 地图 Web 部件添加控件

发布于 2024-12-27 18:25:43 字数 641 浏览 6 评论 0原文

我正在使用这个 WebPart 来显示 Bing 地图,我做了很多研究来找出答案,如何在其上放置控件,如链接中的图片所示,但没有找到任何提示,除了 AJAX 可能会有所帮助,任何人都可以给我请提示我应该搜索什么才能得到我想要的东西。

我的地图版本

所需地图(蓝色背景的控件)

这是 Webpart 的代码

我实际上找到了我想要的内容,它位于此链接

< a href="http://www.microsoft.com/maps/isdk/ajax/" rel="nofollow">Bing AJAX SDK

但我想知道如何在我的 Web 部件中使用它,因为它给了我源代码,但如何将该源代码用于 Web 部件?

I am using this WebPart to display Bing Maps, I did lots of research to find out, how can I put controls on it as one shown in picture in link but didn;t find any hint except AJAX might help, can anyone just give me hint to what should I search for to get what i want please.

My Version of Map

Desired Map (Controls in Blue background)

Here is the Code for Webpart

I actually found what I want, and its on this link

Bing AJAX SDK

But I wonder how I can use it in my Webpart as its giving me the source code, but how to use that source for a webpart ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

蓝眼睛不忧郁 2025-01-03 18:25:43

如果您只需要地图上的控件,可以在初始化地图时在地图选项中设置它们。 JS 很好 - 看看这里

If you just want the controls on the map, you can set them in the map options when you initialise the map. JS is fine - have a look here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文