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

2 Answers 2

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

To solve the issue of STREETVIEW I use leaflet library https://gist.github.com/crofty/2197042 google-Leaflet and also build upon the previous review and I could also accomplish this. I hope they serve.

http://jsfiddle.net/ALL4k/

share|improve this answer

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

3  
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. –  PolyGeo Jun 6 at 4:03

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.