Remove “Sign In”-marker from Google Maps V3

大兔子大兔子 提交于 2019-12-24 02:08:52

问题


I develop an application with a very prominent Google Map. The "Sign In"-marker at the top right is distracting for the user, as my application has its own "Sign In".

Is it allowed and possible to remove that?!
Adding disableDefaultUI: true does not help.


回答1:


This is because you include the Google Maps script with signed_in=true parameter.

Just replace :

<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&signed_in=true"></script>

by

<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&signed_in=false"></script>

or even remove the sign_in parameter.



来源:https://stackoverflow.com/questions/28854715/remove-sign-in-marker-from-google-maps-v3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!