ol-cesium
    Preparing search index...

    Class FeatureConverter

    Index

    Constructors

    • Api

      Concrete base class for converting from OpenLayers3 vectors to Cesium primitives. Extending this class is possible provided that the extending class and the library are compiled together by the closure compiler.

      Parameters

      • scene: Scene

        Cesium scene.

      Returns FeatureConverter

    Properties

    scene: Scene

    Cesium scene.

    Methods

    • Create a Cesium primitive if style has a text component. Eventually return a PrimitiveCollection including current primitive.

      Parameters

      • layer: PrimitiveLayer
      • feature: Feature
      • geometry: Geometry
      • style: Style
      • primitive: Primitive | PrimitiveCollection | GroundPolylinePrimitive

      Returns PrimitiveCollection

    • Api

      Compute OpenLayers plain style. Evaluates style function, blend arrays, get default style.

      Parameters

      • layer: PrimitiveLayer
      • feature: Feature
      • fallbackStyleFunction: StyleFunction
      • resolution: number

      Returns Style[]

    • Api

      Convert an OpenLayers feature to Cesium primitive collection.

      Parameters

      • layer: VectorLayer<any>
      • view: View
      • feature: Feature
      • context: OlFeatureToCesiumContext

      Returns PrimitiveCollection

    • Api

      Convert a point geometry to a Cesium BillboardCollection.

      Parameters

      • layer: PrimitiveLayer
      • feature: Feature

        OpenLayers feature..

      • olGeometry: Point

        OpenLayers point geometry.

      • projection: ProjectionLike
      • style: Style
      • imageStyle: ImageStyle
      • billboards: BillboardCollection
      • opt_newBillboardCallback: (bb: Billboard) => void

        Called when the new billboard is added.

      Returns void

    • Basics primitive creation using a color attribute. Note that Cesium has 'interior' and outline geometries.

      Parameters

      • layer: PrimitiveLayer
      • feature: Feature

        OpenLayers feature.

      • olGeometry: Geometry

        OpenLayers geometry.

      • geometry: Geometry | CircleGeometry
      • color: Color | ImageMaterialProperty
      • Optionalopt_lineWidth: number

      Returns Primitive | GroundPrimitive

      primitive

    • Api

      Add a billboard to a Cesium.BillboardCollection. Overriding this wrapper allows manipulating the billboard options.

      Parameters

      • billboards: BillboardCollection
      • bbOptions: ConstructorOptions
      • layer: PrimitiveLayer
      • feature: Feature

        OpenLayers feature.

      • geometry: Geometry
      • style: Style

      Returns Billboard

      newly created billboard

    • Return the fill or stroke color from a plain ol style.

      Parameters

      • style: Style | Text
      • outline: boolean

      Returns Color | ImageMaterialProperty

    • Return the width of stroke from a plain ol style.

      Parameters

      • style: Style | Text

      Returns number

    • Parameters

      • feature: Feature
      • style: Style
      • Optionalopt_geom: Geometry

      Returns Geometry

    • Api

      Parameters

      • layer: PrimitiveLayer
      • feature: Feature
      • geometry: Geometry

      Returns HeightReference

    • Api

      Convert an OpenLayers circle geometry to Cesium.

      Parameters

      • layer: PrimitiveLayer
      • feature: Feature
      • olGeometry: Circle
      • projection: ProjectionLike
      • olStyle: Style

      Returns PrimitiveCollection

    • Api

      Convert one OpenLayers feature up to a collection of Cesium primitives.

      Parameters

      • layer: PrimitiveLayer
      • feature: Feature
      • style: Style
      • context: OlFeatureToCesiumContext
      • Optionalopt_geom: Geometry

      Returns PrimitiveCollection

    • Api

      Convert an OpenLayers text style to Cesium.

      Parameters

      • layer: PrimitiveLayer
      • feature: Feature
      • geometry: Geometry
      • style: Text

      Returns LabelCollection

    • Api

      Convert an OpenLayers line string geometry to Cesium.

      Parameters

      • layer: PrimitiveLayer
      • feature: Feature
      • olGeometry: LineString
      • projection: ProjectionLike
      • olStyle: Style

      Returns PrimitiveCollection

    • Api

      Convert an OpenLayers multi-something geometry to Cesium.

      Parameters

      • layer: PrimitiveLayer
      • feature: Feature

        OpenLayers feature..

      • geometry: Geometry

        OpenLayers geometry.

      • projection: ProjectionLike
      • olStyle: Style
      • billboards: BillboardCollection
      • opt_newBillboardCallback: (bb: Billboard) => void

        Called when the new billboard is added.

      Returns PrimitiveCollection

      primitives

    • Api

      Convert a point geometry to a Cesium BillboardCollection.

      Parameters

      • layer: PrimitiveLayer
      • feature: Feature

        OpenLayers feature..

      • olGeometry: Point

        OpenLayers point geometry.

      • projection: ProjectionLike
      • style: Style
      • billboards: BillboardCollection
      • Optionalopt_newBillboardCallback: (bb: Billboard) => void

        Called when the new billboard is added.

      Returns PrimitiveCollection

      primitives

    • Api

      Convert an OpenLayers polygon geometry to Cesium.

      Parameters

      • layer: PrimitiveLayer
      • feature: Feature
      • olGeometry: Polygon
      • projection: ProjectionLike
      • olStyle: Style

      Returns PrimitiveCollection

    • Api

      Convert an OpenLayers style to a Cesium Material.

      Parameters

      • feature: Feature
      • style: Style
      • outline: boolean

      Returns Material

    • Api

      Convert an OpenLayers vector layer to Cesium primitive collection. For each feature, the associated primitive will be stored in featurePrimitiveMap.

      Parameters

      • olLayer: VectorLayer<any>
      • olView: View
      • featurePrimitiveMap: Record<number, PrimitiveCollection>

      Returns VectorLayerCounterpart

    • Parameters

      • layer: PrimitiveLayer
      • feature: Feature

        OpenLayers feature.

      • primitive: Primitive | Billboard | GroundPolylinePrimitive | GroundPrimitive | Label

      Returns void

    • Create a primitive collection out of two Cesium geometries. Only the OpenLayers style colors will be used.

      Parameters

      • layer: PrimitiveLayer
      • feature: Feature
      • olGeometry: Geometry
      • fillGeometry: Geometry | CircleGeometry
      • outlineGeometry: Geometry | CircleOutlineGeometry
      • olStyle: Style

      Returns PrimitiveCollection