Reputation: 49
I could not find this in the Google Maps JavaScript API reference, so I ask here. Is there a way to disable the indoors part of the Street View when the pegman is dropped? I want only to be able to look around on the outdoors.
On the picture above it is shown what I want to disable.
The example asked by geocodezip: jsfiddle.net/Dredd/5zgp0vdh
Upvotes: 3
Views: 2457
Reputation: 161384
To disable indoor street view use the option: {source: google.maps.StreetViewSource.OUTDOOR}
in the StreetViewLocationRequest
from the documentation:
source | Type: StreetViewSource
Specifies the source of panoramas to search. This allows a restriction to search for just outdoor panoramas for example. If not specified it is set to DEFAULT.
available values for StreetViewSource
DEFAULT Uses the default sources of Street View, searches will not be limited to specific sources.
OUTDOOR Limits Street View searches to outdoor collections. Indoor collections are not included in search results. Note also that the search only returns panoramas where it's possible to determine whether they're indoors or outdoors. For example, PhotoSpheres are not returned because it's unknown whether they are indoors or outdoors.
Upvotes: 2