source: other-projects/playing-in-the-street/summer-2013/trunk/Playing-in-the-Street-WPF/Content/Web/doGSVP.js@ 28897

Last change on this file since 28897 was 28897, checked in by davidb, 10 years ago

GUI front-end to server base plus web page content

File size: 417 bytes
Line 
1var seedlocation = { lat: -37.793491, lng: 175.316316 };
2
3window.addEventListener( 'load', function() {
4
5});
6
7function getPanoImage( panoId, callback ){
8 var loader = new GSVPANO.PanoLoader({
9 zoom: 1
10 });
11
12 loader.onPanoramaLoad = function(){
13 callback(this.canvas.toDataURL());
14 }
15
16 loader.onError = function( message ) {
17 alert( 'Error: ' + message );
18 };
19
20 loader.composePanorama(panoId);
21}
Note: See TracBrowser for help on using the repository browser.