我可以将 Google 徽标覆盖在地图上或将其移至右上角吗?

发布于 2024-08-15 17:04:16 字数 213 浏览 2 评论 0原文

我想知道是否可以在地图上的 Google 徽标上放置一个覆盖元素,或者将其位置更改为右上角。我有一张示例图片(链接如下),是我制作的覆盖 Google 徽标的图片。请帮忙给出一些解决这个问题的方法!谢谢!

示例图片:叠加 Google 地图徽标

I am wondering if I could put an overlay element over Google logo on map, or change its place to top right. I have an example picture( link is below ) that I made overlaying Google logo. Please help to give some solutions with this issue! Thanks!

Example image: Overlaying google map logo

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

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

发布评论

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

评论(5

三生一梦 2024-08-22 17:04:17

您可以使用 CSS 轻松移动徽标(或删除它) - 它是绝对定位的。如果您使用 Firebug 检查地图,您可以找到徽标 div 的 id。

我不建议这样做,因为这会违反服务条款(第 9.4 节)

You could move the logo (or remove it) quite easily with CSS - it's positioned absolutely. If you examine the map with Firebug, you can find the id of the logo div.

I wouldn't advise doing this, since it will break the Terms of Service (section 9.4)

情愿 2024-08-22 17:04:17

根据我使用 Google 地图的经验,您无法执行任何操作来覆盖徽标或版权字符串。你不应该这样做,它的存在是有原因的——你应该对你使用的其他人制作的东西给予认可。

我看到的唯一“解决方案”是在地图容器外部放置一个覆盖图片,并将其绝对放置在 Google 徽标上方。但我讨厌这种想法,因为它出现在我的脑海中:)

我认为你应该更改地图叠加层的设计,以便徽标适合。

In my experience using Google maps there is nothing you can do to overlay the logo or the copyright string. And you shouldn't, it's there for a reason - you should give credit for the things you use that have been made by other people.

The only "solution" that I see is to place an overlay picture that is outside your map container and position it absolutely over the Google logo. But I hated this thought the instance it occured in my mind :)

I think you should change the design of your map overlays so that the logo will fit in.

同尘 2024-08-22 17:04:17

您确实希望 Google 徽标和属性在您的图片中可见。

但是,完全可以移动徽标,甚至将属性作为图像下方的标题提供。请参阅此处:https://www.google.com/permissions/geoguidelines/attr-指南/

我需要使用图像上提供的文本吗?

自动生成的 Google 徽标和数据提供商归属仅在以可见形式重新引入内容中的其他位置(例如,在 Google 地球静止图像下方的照片说明中)时才可能被删除或阻止。换句话说,您的文本必须与使用我们提供的默认文本时一样可见。

归属文本需要说明什么?

如果您不使用直接在 Google 地图和 Google 地球图像上提供的文字,则您的归属文字必须注明名称“Google”和相关数据提供商,例如“地图数据:Google,数字地球”。

您可以自定义归因文本的样式和位置,只要该文本对于普通查看者或读者来说是可读的。请注意,Google 徽标不能内嵌使用(例如,“这些地图来自 [Google 徽标]”。)

You do want the Google logo and attribution to be visible in your image.

However, it is completely OKAY to move the logo around, or even provide the attribution as a caption right under the image. See here: https://www.google.com/permissions/geoguidelines/attr-guide/

Do I need to use the text provided on the imagery?

The automatically generated Google logo and data provider attribution may only be removed or obstructed if reintroduced in a visible form elsewhere within the content (for example, in a photo caption below a Google Earth still). In other words, your text must be as visible as it would have been if you had used the default text that we provide.

What does the attribution text need to say?

If you’re not using the text provided directly on Google Maps and Google Earth imagery, the text of your attribution must say the name “Google” and the relevant data provider(s), such as “Map data: Google, DigitalGlobe”.

You may customize the style and placement of the attribution text, as long as the text is legible to the average viewer or reader. Note that Google logos cannot be used in-line (for example, "These maps from [Google logo].")

淡水深流 2024-08-22 17:04:17

从标准地图 API 中删除 Google 徽标违反了服务条款。

不过,还有一个适用于企业的 Google 地图 API,它为您提供了更大的灵活性。标准价格为 10,000 美元/年。如果您向他们询问此事,Google 的代表将会给您打电话。您可以向代表询问付费客户的徽标的合法性到底是什么。

http://www.google.com/enterprise/earthmaps/maps.html

Removing the Google logo from standard maps API breaks the Terms of Service.

There is however a Google maps API for business, which gives you much more flexibility. The standard price is $10,000/year. If you enquire to them about it, a representative from Google will call you. You can ask the representative exactly what the legalities surrounding the logo for paying customers is.

http://www.google.com/enterprise/earthmaps/maps.html

望喜 2024-08-22 17:04:17

正如 Chris B. 所提到的,徽标可以使用 CSS 移动。下面是一个使用 javascript iso 外部 ccs 文件的示例:

var css = document.createElement("style");
css.type = "text/css";
css.innerHTML = "#"+element.id+" div div a[target='_blank'] img[src*='google_white'] {top:-25px !important;} ";
document.head.appendChild(css);  
var map = new google.maps.Map(element, mapOptions);

As mentioned by Chris B. the logo can be move using CSS. Here is an example that uses javascript iso an external ccs file:

var css = document.createElement("style");
css.type = "text/css";
css.innerHTML = "#"+element.id+" div div a[target='_blank'] img[src*='google_white'] {top:-25px !important;} ";
document.head.appendChild(css);  
var map = new google.maps.Map(element, mapOptions);
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文