sphereMAP v1.2 - API documentation
This documentation contains description for public part of sphereMAP API.
Main core component of sphereMAP library is SphereMap.Viewer. Above is minimal code for embed sphere photo in HTML page.
<!DOCTYPE html>
<html lang="en">
<head>
<style>
#sphere {
width: 600px;
height: 600px;
}
</style>
<script src="http://spheremap.cz/v1.2/api/sphere-map-bundle.js"></script>
</head>
<body>
<div id="sphere"></div>
<script>
var sphereMapViewer = new SphereMap.Viewer({containerId: 'sphere'});
sphereMapViewer.initLicense(
'demo', 'empty', {},
function(response) {
sphereMapViewer.initProject();
sphereMapViewer.loadContext({
photoName: 'URL_TO_SPHERE_PHOTO'
});
// here put your code working with library, now is library initialized
}
);
</script>
</body>
</html>