Skip to content

sidequestlegend/GSVPanoDepth.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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="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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%