A JavaScript library that downloads and extracts depth maps from Google Street View.
<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));
- jQuery
- jquery-base64
- zpipe
- GSVPano.js (slightly modified to include panorama ID in results)
MIT License