Limiting Street View Source to Outdoor views only #3279
Replies: 1 comment
-
You cannot limit the 'react google maps' as it does not provide a built-in option to set the street view panorama to an outdoor view directly by passing any parameters. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm trying to limit my Google maps search results to only provide street view results that are outdoor views.
I noticed that the following options are available for use by the JavaScript api: https://developers.google.com/maps/documentation/javascript/reference/street-view-service#StreetViewSource
To disable indoor street view they provide the following option:
{source: google.maps.StreetViewSource.OUTDOOR}
in the StreetViewLocationRequestHowever, I'm unsure how to implement this within the scope of the
react-google-maps-api
package?I would suspect that I could provide this option to the
StreetViewPanoramaOptions
but I do not see the option for asource
. I attempted to manipulate the maponLoad
and request a panorama with which I set on the map but it was not fruitful.Any ideas how I could set the OUTDOOR option with the react google map on the StreetViewPanorama?
Beta Was this translation helpful? Give feedback.
All reactions