Pano Class
One single Panoramic item
Constructor
Pano
(
params
)
Parameters:
-
paramsObject-
idHash -
rotationNumber(on degrees)
-
pitchNumber -
locationGoogle.Maps.LatLng -
copyrightString -
imageDateDate -
zoomNumber
-
Example:
var pano = new GSVPANO.Pano({
id: panoId,
rotation: rotation,
pitch: pitch,
location: location,
imageDate: imageDate,
copyright: copyright,
zoom: zoom
});
Item Index
Methods
cancel
()
Cancels the load of the Pano (the images may keep loading)
compose
(
panoId
)
chainable
Will fire 'callback' when completed
Parameters:
-
panoIdHash
Example:
var pano = new Pano(...);
pano.compose();
composeFromTile
(
x
y
texture
)
private
Parameters:
-
xNumber -
yNumber -
textureImage
createImage
(
x
y
)
private
Creates an Image with the appropiate load callback
Parameters:
-
xNumber -
yNumber
initCanvas
()
private
setRotation
(
deg
)
chainable
Saves rotation. Input in degrees
Parameters:
-
degNumber
Attributes
Events
complete
Complete notification
Event Payload:
-
panoPano
Example:
pano.on('complete', function(p) {
console.log('Pano completed progress: ' + p + '%');
});
progress
Progress notification
Event Payload:
-
pNumber
Example:
pano.on('progress', function(p) {
console.log('Pano download progress: ' + p + '%');
});