itowns
Version:
A JS/WebGL framework for 3D geospatial data visualization
57 lines (56 loc) • 2.06 kB
TypeScript
export default EntwinePointTileLayer;
/**
* @property {boolean} isEntwinePointTileLayer - Used to checkout whether this
* layer is a EntwinePointTileLayer. Default is `true`. You should not change
* this, as it is used internally for optimisation.
*
* @extends PointCloudLayer
*/
declare class EntwinePointTileLayer extends PointCloudLayer {
/**
* Constructs a new instance of Entwine Point Tile layer.
*
* @example
* // Create a new point cloud layer
* const points = new EntwinePointTileLayer('EPT',
* {
* source: new EntwinePointTileSource({
* url: 'https://server.geo/ept-dataset',
* }
* });
*
* View.prototype.addLayer.call(view, points);
*
* @param {string} id - The id of the layer, that should be unique. It is
* not mandatory, but an error will be emitted if this layer is added a
* {@link View} that already has a layer going by that id.
* @param {Object} config - Configuration, all elements in it
* will be merged as is in the layer. For example, if the configuration
* contains three elements `name, protocol, extent`, these elements will be
* available using `layer.name` or something else depending on the property
* name. See the list of properties to know which one can be specified.
* @param {string} [config.crs='ESPG:4326'] - The CRS of the {@link View} this
* layer will be attached to. This is used to determine the extent of this
* layer. Default to `EPSG:4326`.
*/
constructor(id: string, config: {
crs?: string | undefined;
});
/**
* @type {boolean}
* @readonly
*/
readonly isEntwinePointTileLayer: boolean;
/**
* @type {THREE.Vector3}
*/
scale: THREE.Vector3;
whenReady: Promise<any>;
spacing: number;
minElevationRange: any;
maxElevationRange: any;
extent: Extent;
}
import PointCloudLayer from '../Layer/PointCloudLayer';
import * as THREE from 'three';
import { Extent } from '@itowns/geographic';