UNPKG

itowns

Version:

A JS/WebGL framework for 3D geospatial data visualization

49 lines (48 loc) 1.84 kB
export default OrientedImageSource; /** * OrientedImageSource is a specific source used to load oriented images. * @extends Source */ declare class OrientedImageSource extends Source { /** * @param { Object } source - Configuration object * @param { string } source.url - Url for all the textures. * @param { string } source.orientationsUrl - Json Url, using GeoJSon format to represent points, * it's a set of panoramic position and orientation. * @param { string } source.calibrationUrl - Json url, representing a set of camera. * see {@link CameraCalibrationParser} * This Url must contains {sensorId} and {cameraId}, and these pattern will be replaced to build the Url, * to find the good texture for each camera for each panoramic. */ constructor(source: { url: string; orientationsUrl: string; calibrationUrl: string; }); isOrientedImageSource: boolean; whenReady: Promise<{ orientation: void | Object; calibration: void | Object; }>; /** * Build the url of the texture, but not from extent. * * @param {Object} imageInfo - Information about the texture * @param {string} imageInfo.camera - Id of the camera * @param {string} imageInfo.pano - Id of the panoramic * @return {string} Url of the image */ urlFromExtent(imageInfo: { camera: string; pano: string; }): string; /** * Build the url of the image, for a given panoramic id, and a given camera id. * * @param {string} cameraId Id of the camera * @param {string} panoId Id of the panoramic * @return {string} Url of the image */ imageUrl(cameraId: string, panoId: string): string; } import Source from '../Source/Source';