从Google Maps V3中删除"登录"标记

Rap*_*ger 2 google-maps google-maps-api-3

我使用非常着名的Google Map开发了一个应用程序.右上角的"登录"标记会让用户分心,因为我的应用程序有自己的"登录".

允许并且可以删除它吗?!
添加disableDefaultUI: true没有帮助.

登录按钮

Ale*_*exB 12

这是因为您在Google Maps脚本中加入了signed_in=true参数.

只需更换:

<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&signed_in=true"></script>
Run Code Online (Sandbox Code Playgroud)

通过

<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&signed_in=false"></script>
Run Code Online (Sandbox Code Playgroud)

甚至删除sign_in参数.