UNPKG

itowns

Version:

A JS/WebGL framework for 3D geospatial data visualization

34 lines (33 loc) 1.69 kB
export default PlanarView; declare class PlanarView extends View { /** * @extends View * * @example <caption><b>Instance with placement on the ground.</b></caption> * var viewerDiv = document.getElementById('viewerDiv'); * const extent = new Extent('EPSG:3946', 1837816.94334, 1847692.32501, 5170036.4587, 5178412.82698); * var view = new itowns.PlanarView(viewerDiv, extent, { placement: { heading: -49.6, range: 6200, tilt: 17 } }); * * @param {HTMLDivElement} viewerDiv - Where to attach the view and display it * in the DOM. * @param {Extent} extent - The ground extent. * @param {Object} [options] - See options of {@link View}. * @param {boolean} [options.noControls=false] - If true, no controls are associated to the view. * @param {Object} [options.controls] - options for the {@link PlanarControls} associated to the view, if * `options.noControls` is false. * @param {CameraUtils~CameraTransformOptions|Extent} [options.placement] - The * {@link CameraUtils~CameraTransformOptions} to apply to view's camera or the extent it must display at * initialization. By default, camera will display the view's extent (given in `extent` parameter). */ constructor(viewerDiv: HTMLDivElement, extent: Extent, options?: { noControls?: boolean | undefined; controls?: Object | undefined; }); isPlanarView: boolean; controls: PlanarControls | undefined; tileLayer: PlanarLayer; addLayer(layer: any): Promise<any>; } import View from '../../Core/View'; import PlanarControls from '../../Controls/PlanarControls'; import PlanarLayer from './Planar/PlanarLayer';