Crude spherical photos

This commit is contained in:
2024-11-24 12:26:44 +01:00
parent 2650df69a3
commit 760fb3e960
9 changed files with 193 additions and 70 deletions

View File

@@ -65,7 +65,7 @@ export class NotConservedSheet {
`;
this.biblioElements.push(`
<div class="p-2" id="ref-${record.id}">
<div class="p-2 mt-2" id="ref-${record.id}">
<p>${record.reference}</p>
</div>
`

View File

@@ -0,0 +1,18 @@
import { Viewer } from '@photo-sphere-viewer/core';
/**
* @class SphericalPhoto
*/
export class SphericalPhoto {
basePath = '/webgis/img/spherical';
/**
* @param {string} filename Name of the spherical image
*/
setViewer(filename) {
new Viewer({
container: document.querySelector('#pano-viewer'),
panorama: `${this.basePath}/${filename}`,
defaultZoomLvl: 0,
});
}
}