Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Google Street View Panorama Util
branch: master

This branch is 4 commits ahead, 1 commit behind spite:master

Failed to load latest commit information.
build add street viewer example
examples cleanup
src added image date param
utils Code uploaded
LICENSE License edit
README.md readme edit

README.md

GSVPano.js - Google Street View Panorama lib

Library to help requesting and stitching Google Street View panoramas.

You can see it in use in a WebGL Google Street View Panorama Viewer.

Forks, pull requests and code critiques are welcome!

Using the code

Include GSVPano.[min.]js and Google Maps API lib.

The lib uses google.maps.LatLng to specify the location and google.maps.StreetViewService.

<script src="GSVPano.min.js"></script>
<script src="http://maps.google.com/maps/api/js?sensor=false"></script>

Add this basic code:

// Create a PanoLoader object
var loader = new GSVPANO.PanoLoader();

// Implement the onPanoramaLoad handler
loader.onPanoramaLoad = function() {

    /*
        Do your thing with the panorama:
        this.canvas: an HTML5 canvas with the texture
        this.copyright: the copyright of the images
    */

};

// Invoke the load method with a LatLng point
loader.load( new google.maps.LatLng( 42.216188,-75.72657859999998 ) );

License

MIT licensed

Copyright (C) 2012 Jaume Sanchez Elias, http://www.clicktorelease.com

Something went wrong with that request. Please try again.