Skip to content

caffeinalab/ti.pano360

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ti.Pano360 (com.caffeina.titanium.pano360)

This is a pure wrapper of the great project Photo Sphere Viewer.

Installation

Via Gittio

gittio install com.caffeina.titanium.pano360

Via Github

Download the latest release and add in your config.json, under dependencies:

"dependencies": {
    "com.caffeina.titanium.pano360": "*"
}

Usage

In your view XML file:

<Widget id="my360Widget" src="com.caffeina.titanium.pano360" gyroscope="true" panorama="example.jpg" height="320" />

Initial properties

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 is false by default.
  • The gyroscope key is false by default.

Methods

All methods described in the [original documentation](original documentation) are supported:

You have just to call (example):

$.my360Widget.zoomIn();

License

MIT