从Google地图V3中删除“登录”标记 [英] Remove "Sign In"-marker from Google Maps V3
本文介绍了从Google地图V3中删除“登录”标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我开发了一个非常突出的Google Map应用程序。因为我的应用程序有自己的登录,所以右上角的登录标记会让用户分心。
是否允许并可以删除那$?
添加 disableDefaultUI:true
没有帮助。
解决方案
这是因为您将 signed_in = true
参数包含在Google Maps脚本中。
< script src =https://maps.googleapis.com/maps/api/js?v=3.exp&signed_in=真>< /脚本>
by
< script src =https://maps.googleapis.com/maps/api/js?v=3.exp&signed_in=false>< / script>
甚至删除 sign_in
参数。
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.
解决方案
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.
这篇关于从Google地图V3中删除“登录”标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文