Google JavaScript API v3 - Street View Service - turn off building interiors

廉价感情. 提交于 2019-12-10 18:46:22

问题


Often the geocoding in my application will return rooftop accuracy.

When I zoom into the location, and I switch on street view, I will end up inside a building, rather than on the street. I want to always be out on the street.

I was looking for some kind of configuration setting here: street view documentation, that will allow me to turn off building interiors but no luck. Can someone confirm whether or not what I'm looking for is possible?

Thanks.


回答1:


The property we're looking for is google.maps.StreetViewSource.OUTDOOR. Docs:

  • https://developers.google.com/maps/documentation/javascript/3.exp/reference#StreetViewSource

PS: Thanks to geocodezip for the bug tracking URL reference.




回答2:


That ability doesn't currently exist, see this enhancement request for the API (star it if you are interested in having it added)



来源:https://stackoverflow.com/questions/20403015/google-javascript-api-v3-street-view-service-turn-off-building-interiors

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