Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.17 KB

README.md

File metadata and controls

40 lines (28 loc) · 1.17 KB

GSVPanoDepth.js

A JavaScript library that downloads and extracts depth maps from Google Street View.

Usage

<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false" type="text/javascript"></script> 
<script src="jquery.min.js" type="text/javascript"></script>
<script src="jquery.base64.min.js" type="text/javascript"></script>
<script src="zpipe.min.js" type="text/javascript"></script>
<script src="GSVPanoDepth.js" type="text/javascript"></script>
var depthLoader = new GSVPANO.PanoDepthLoader();

depthLoader.onDepthLoad = function() {

    // Returns depth map in the following format:
    //
    // this.depthMap.width: width of depth map in pixels
    // this.depthMap.height: height of depth map in pixels
    // this.depthMap.depthMap: Float32Array of size width*height that contains the depth at each pixel

};

panoLoader.load(new google.maps.LatLng(42.345601, -71.098348));

Requirements

License

MIT License