Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

The person who asked the question at the link below way back in 2011 said, "I understand that it is possible to incorporate Google StreetView into non-Google apps".

Can anyone tell me how this is possible? I'd like to add street view functionality to my leaflet map.

Open source alternatives to Google's StreetView engine?

share|improve this question
add comment

1 Answer

Take a look at the StreetView API:

Street View Locations and Point-of-View (POV)

The StreetViewPanorama constructor also allows you to set the Street View location and point of view using the StreetViewOptions parameter. You may call setPosition() and setPov() on the object after construction to change its location and POV.

You could use your Leaflet map to set the location for the panorama, perhaps by modifying the example here (which uses Google Maps to set the location).

share|improve this answer
    
As always, you should check the license to verify that you're allowed to show a streetview image on a non-Google map. I've seen this done on Esri maps, but that doesn't mean it's legal –  Stephen Lead Sep 7 '13 at 22:19
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.