- r - 以节省内存的方式增长 data.frame
- ruby-on-rails - ruby/ruby on rails 内存泄漏检测
- android - 无法解析导入android.support.v7.app
- UNIX 域套接字与共享内存(映射文件)
我在工作中需要使用 Google map API v3,而他们给我的设计没有谷歌放在 map 下部的 Logo /页脚/版权。好吧,我需要禁用或隐藏它,因为我被告知无论如何我都需要匹配确切的设计。
我必须强调,这样做我违反了 Google 服务的使用条款...
9.4 Attribution.
(a) Content provided to you through the Service may contain the trade names, trademarks, service marks, logos, domain names, and other distinctive brand features of Google, its partners, or other third party rights holders of content indexed by Google. When Google provides this attribution, you must display it as provided through the Service or as described in the Maps APIs Documentation and may not delete or in any manner alter these trade names, trademarks, service marks, logos, domain names, and other distinctive brand features. https://developers.google.com/maps/terms
在我的工作中,他们并不关心这些,他们总是告诉我无论如何都要去做,所以这就是我做事的方式。
在css中我添加了以下几行代码:
#map-report div.gmnoprint,
#map-report div.gmnoscreen {
display: none;
}
img[src="http://maps.gstatic.com/mapfiles/google_white.png"] {
display: none;
}
最佳答案
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 - 如何在 google maps JavaScript API v3 上隐藏或禁用 google Logo 、页脚、版权?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12499886/
我是一名优秀的程序员,十分优秀!