campzimmer-js
v1.2.1
Published
A javascript moudle to help display 360° images from the Campzimmer API
Downloads
3
Readme
Campzimmer Javascript Library
See the Campzimmer docs.
Installation
Install the package with:
npm install campzimmer-js --save
Basic Usage
Using with ES6 Modules
import { Campzimmer } from 'campzimmer-js';
const cz = new Campzimmer({
container: 'three-sixty-viewer',
image: 'https://cdn.campzimmer.com/my-image-path/my-image.jpg',
});
cz.setImage('https://cdn.campzimmer.com/my-image-path/my-new-image.jpg');
Or just plain ol' Javascript :-)
var Campzimmer = require('campzimmer-js');
var cz = Campzimmer({
container: 'three-sixty-viewer',
image: 'https://cdn.campzimmer.com/my-image-path/my-image.jpg',
});
cz.setImage('https://cdn.campzimmer.com/my-image-path/my-new-image.jpg');