如何在谷歌地图JavaScript API v3上隐藏或禁用谷歌徽标,页脚,版权? [英] How to hide or disable the google logo, footer, copyright on google maps JavaScript API v3?

查看:130
本文介绍了如何在谷歌地图JavaScript API v3上隐藏或禁用谷歌徽标,页脚,版权?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在工作中有这个任务,我需要使用Google maps API v3,他们给我的设计没有谷歌放置在地图下部的徽标/页脚/版权。好吧,我需要禁用或隐藏它,因为我被告知我需要匹配确切的设计,无论如何。

I have this assignment at work in which I need to use the Google maps API v3 and the design they gave me was without the logo/footer/copyright that google puts in the inferior part of the map. Well, I need to have it disabled or hidden because I was told that I need to match the exact design no matter what.

我必须强调这样做我这样做违反Google服务的使用条款......

I had to emphasize that by doing this I breach the terms of use of Google service...


9.4归因。


(a)通过本服务提供给您的内容可能包含Google的商品名称,商标,服务标记,徽标,域名和其他独特的品牌特征,合作伙伴或其他由Google编制索引的内容的第三方版权所有者。当Google提供此归属信息时,您必须按照服务提供或按照Maps API文档中的说明进行显示,并且不得删除或以任何方式更改这些商品名称,商标,服务标记,徽标,域名和其他特色品牌特征。
https://developers.google.com/maps/terms


在我的工作中,他们并不关心这一点,他们总是告诉我这样做,所以这些是我是怎么做的。

Well at my work they didn't care about that and they always told me to do it anyway so these is how I'm doing it.

在css中我添加了以下几行代码:

In the css I added the following lines of code:

#map-report div.gmnoprint,
#map-report div.gmnoscreen {
    display: none;      
}

img[src="http://maps.gstatic.com/mapfiles/google_white.png"] {
    display: none; 
}


推荐答案

这个CSS就像魅力一样[ 2018年3月测试]。
删除 Google徽标使用条款报告问题 div。




This CSS works like charm [March 2018 tested].
Removes Google Logo, terms of use, and Report a problem div.


a[href^="http://maps.google.com/maps"]{display:none !important}
a[href^="https://maps.google.com/maps"]{display:none !important}

.gmnoprint a, .gmnoprint span, .gm-style-cc {
    display:none;
}
.gmnoprint div {
    background:none !important;
}

这篇关于如何在谷歌地图JavaScript API v3上隐藏或禁用谷歌徽标,页脚,版权?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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