从Places API下拉菜单中移除“Powered by Google”徽标 [英] Remove 'Powered by Google' logo from Places API Dropdown

查看:182
本文介绍了从Places API下拉菜单中移除“Powered by Google”徽标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从Google Places API下拉列表中删除此徽标。我想把它放在页面的其他地方,因为我认为这有损于下拉的美学,特别是当我有多个下拉列,连续,所有具有相同的标志。





我遇到的问题是,我不知道如何检查元素,为了看到它的标记(我使用Chrome,每次我尝试检查它,下拉消失) 。



开发人员政策规定:


如果您的应用程式显示Places API资料



如果您的应用在页面或视图上显示Places API数据,则
不会显示Google地图,您必须在该资料上显示「由
Google提供」标志。例如,如果您的应用程序在一个选项卡上显示
a地方信息列表,并在另一个标签上显示包含
地点的Google地图,则第一个标签必须显示Powered by Google标志。


它没有说明它必须包含在下拉列表中,只是标志必须包含在数据中。我有一个容器有多个输入字段在所有向Places API的请求,当然然后我可以只有标志里面的所有输入字段的容器。



如何移除由Google强力驱动 Google地图自动完成下拉列表中的徽标?


I'd like to remove this logo from the Google Places API drop-down. I'd like to put it elsewhere on the page as I think it kind of detracts from the aesthetics of the drop-down, especially when I've got multiple drop-downs in a row, all with the same logo.

The problem I have is that I can't figure out how to inspect the element in order to see it's markup (I'm using Chrome, each time I try to inspect it, the drop-down disappears).

The Developer Policies says:

If your application displays Places API data on a map, that map must be provided by Google.

If your application displays Places API data on a page or view that does not also display a Google Map, you must show a "Powered by Google" logo with that data. For example, if your application displays a list of Places on one tab, and a Google Map with those Places on another tab, the first tab must show the "Powered by Google" logo.

It doesn't state that it must be included on the dropdown, just that the logo must be included with the data. I have a container with multiple input fields in all making requests to the Places API, surely then I can just have the logo inside that container with all the input fields in?

解决方案

I've found the answer from another question I couldn't originally find...

How to remove the "Powered by Google" logo in the Google Map Autocomplete dropdown list?

这篇关于从Places API下拉菜单中移除“Powered by Google”徽标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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