且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从Google地图V3中删除“登录”标记

更新时间:2023-08-30 13:08:22

这是因为您将 signed_in = true 参数包含在Google Maps脚本中。

只需将

 < script src =https://maps.googleapis.com/maps/api/js?v=3.exp&signed_in=真&GT;&LT; /脚本&GT; 

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.