This is a pure wrapper of the great project Photo Sphere Viewer.
gittio install com.caffeina.titanium.pano360
Download the latest release and add in your config.json, under dependencies
:
"dependencies": {
"com.caffeina.titanium.pano360": "*"
}
In your view XML file:
<Widget id="my360Widget" src="com.caffeina.titanium.pano360" gyroscope="true" panorama="example.jpg" height="320" />
You can pass the properties as described here in the Alloy initialization.
At least the panorama
key is required.
- The
container
key is added automatically. - The
navbar
key isfalse
by default. - The
gyroscope
key isfalse
by default.
All methods described in the [original documentation](original documentation) are supported:
You have just to call (example):
$.my360Widget.zoomIn();
MIT