Titanium wrapper of Photo Sphere Viewer
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets/pano360html
controllers
styles
views
LICENSE
README.md
widget.json

README.md

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