如何将动态静态 Bing 地图嵌入网页

发布于 2024-12-31 22:37:51 字数 321 浏览 4 评论 0原文

我正在创建一个网站,在数据库中存储一个位置,我想知道是否可以使用 bing 地图在地图上显示该位置。您可能会问自己什么是动态静态地图,对吧?我的意思是,页面从数据库加载位置,然后从 Bing 地图加载该位置,但该内容不可移动、可缩放或任何其他交互,包括显示 Bing 徽标(我不介意版权),几乎有点像图像。我将如何执行此操作,而且如果我使用免费版本的 bing 地图 api 并且我的网站受密码保护,他们会在多大程度上强制执行我的网站不能受密码保护的规则?感谢您的任何帮助。

顺便提一句;我将通过 php 从 mysql 数据库加载信息,因此我希望能够通过 php 使用 bing 地图 api(如果可能的话)。

I am creating a website where I store a location in a database and I was wondering if I could use bing maps to show that location on a map. You may be asking yourself what is a Dynamic Static map, right? Well what I mean is that the page loads the location from a database and then loads that location from Bing Maps but that but that content is not moveable, zoomable or any other interaction including showing the Bing logo(copyright I don't mind), kinda like an image almost. How would I go about doing this and also, if I use the free version of the bing maps api and my site IS password protected, how much do they enforce the rule that my site can't be password protected? Thanks for any help.

BTW; I would be loading the information from a mysql database through php so I would like to be able to use the bing map api through php, if that is possible.

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

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

发布评论

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

评论(1

尸血腥色 2025-01-07 22:37:51

两个选项:

1) 使用 bing 地图 javascript API V7 将 mapoption disableUserInput 设置为 true:
http://msdn.microsoft.com/en-us/library/gg427603.aspx

2) 使用 bing 地图图像休息服务并请求所需位置的静态图像,您可以将其缓存在您自己的服务器上:

http://msdn.microsoft.com/en-us/library/ff701724.aspx

这两个选项都与技术无关,因此可以在任何编程语言/框架中使用

two options:

1) Using the bing maps javascript API V7 set the mapoption disableUserInput to true:
http://msdn.microsoft.com/en-us/library/gg427603.aspx

2) Use the bing maps imagery rest service and request a static image of the location you want, which you could cache on your own server:

http://msdn.microsoft.com/en-us/library/ff701724.aspx

And both of these options are technology agnostic so can be used in any programming language / framework

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