
GStreetviewPanorama.prototype.getPanoid = function()
{
	return this.I.zj;
}

GStreetviewPanorama.prototype.getViewport = function()
{
	return {panoid: this.getPanoid(), pov: this.getPOV() };
}

GStreetviewPanorama.prototype.setViewport = function(obj)
{
	var svc = new GStreetviewClient();
	var svp = this;
	svc.getPanoramaById(obj.panoid, function(reply) {
		if (reply.Location)
		{
			svp.setLocationAndPOVFromServerResponse(reply, obj.pov);
		}
		else
		{
			alert('address found, but no street view available');
		}
	});

}