Constructor options for the FeatureCollection entity.

Hierarchy (view full)

Properties

The projection code for the projections of the features. If null or empty, no reprojection will be done. If a valid epsg code is given and if different from instance.coordinateSystem, each feature will be reprojected before mesh conversion occurs. Note that reprojection can be somewhat heavy on CPU resources.

Set the elevation of the features received from the source. It can be a constant for every feature, or a callback. The callback version is particularly useful to derive the elevation from the properties of the feature. Requires ignoreZ to be false.

extent: Extent

The geographic extent of the entity.

If set, this will cause 2D features to be extruded of the corresponding amount. If a single value is given, it will be used for all the vertices of every feature. If an array is given, each extruded vertex will use the corresponding value. If a callback is given, it allows to extrude each feature individually.

ignoreZ?: boolean

If true, the Z-coordinates of geometries will be ignored and set to zero.

false
lineMaterialGenerator?: LineMaterialGenerator

An optional material generator for lines.

maxLevel?: number

The max level to subdivide the extent and process features.

minLevel?: number

The min subdivision level to start processing features. Useful for WFS or other untiled servers, to avoid to download the entire dataset when the whole extent is visible.

name?: string

The optional display name of this entity. Mostly used for debugging.

The root object of this entity. If none is provided, a new Group is created.

pointMaterialGenerator?: PointMaterialGenerator

An optional material generator for points.

shadedSurfaceMaterialGenerator?: SurfaceMaterialGenerator

An optional material generator for shaded surfaces.

The OpenLayers VectorSource providing features to this entity

An style or a callback returning a style to style the individual features. If an object is used, the informations it contains will be used to style every feature the same way. If a function is provided, it will be called with the feature. This allows to individually style each feature.

unshadedSurfaceMaterialGenerator?: SurfaceMaterialGenerator

An optional material generator for unshaded surfaces.