Pano Class
One single Panoramic item
Constructor
Pano
(
params
)
Parameters:
-
params
Object-
id
Hash -
rotation
Number(on degrees)
-
pitch
Number -
location
Google.Maps.LatLng -
copyright
String -
imageDate
Date -
zoom
Number
-
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:
-
panoId
Hash
Example:
var pano = new Pano(...);
pano.compose();
composeFromTile
(
x
y
texture
)
private
Parameters:
-
x
Number -
y
Number -
texture
Image
createImage
(
x
y
)
private
Creates an Image with the appropiate load callback
Parameters:
-
x
Number -
y
Number
initCanvas
()
private
setRotation
(
deg
)
chainable
Saves rotation. Input in degrees
Parameters:
-
deg
Number
Attributes
Events
complete
Complete notification
Event Payload:
-
pano
Pano
Example:
pano.on('complete', function(p) {
console.log('Pano completed progress: ' + p + '%');
});
progress
Progress notification
Event Payload:
-
p
Number
Example:
pano.on('progress', function(p) {
console.log('Pano download progress: ' + p + '%');
});