Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在谷歌地图上放置一个标记,但只有在街景处于活动状态时。如果显示“正常”地图,则标记不应该是可见的。
有谁知道如何检查谷歌地图上的街景是否处于活动状态?
刚读map.getStreetView().getVisible();
map.getStreetView().getVisible();
var svpIsVisible = map.getStreetView().getVisible(); if (svpIsVisible){ // visible -do something } else ( //Not visible - do something else )