Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check StreetView Existance #106

Open
psuhas opened this issue Feb 25, 2016 · 0 comments
Open

Check StreetView Existance #106

psuhas opened this issue Feb 25, 2016 · 0 comments

Comments

@psuhas
Copy link

psuhas commented Feb 25, 2016

Hello,

Is there any way we can get Maps Object so we can run some more functions like shown in following URL

Specifically: We would like to check if the street view exists? If so then make the download call.

any suggestions? Thanks,

http://stackoverflow.com/questions/2675032/how-to-check-if-google-street-view-available-and-display-message

var streetViewService = new google.maps.StreetViewService();
var STREETVIEW_MAX_DISTANCE = 100;
var latLng = new google.maps.LatLng(40.7140, -74.0062);
streetViewService.getPanoramaByLocation(latLng, STREETVIEW_MAX_DISTANCE, function (streetViewPanoramaData, status) {
    if (status === google.maps.StreetViewStatus.OK) {
        // ok
    } else {
        // no street view available in this range, or some error occurred
    }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant