Lightweight, read-only, ol.Feature and ol.geom.Geometry like structure, optimized for rendering and styling. Geometry access through the API is limited to getting the type and extent of the geometry.

Param: type

Geometry type.

Param: flatCoordinates

Flat coordinates. These always need to be right-handed for polygons.

Param: ends

Ends or Endss.

Param: properties

Properties.

Constructors

  • Lightweight, read-only, ol.Feature and ol.geom.Geometry like structure, optimized for rendering and styling. Geometry access through the API is limited to getting the type and extent of the geometry.

    Parameters

    • type: GeometryType

      Geometry type.

    • flatCoordinates: number[]

      Flat coordinates. These always need to be right-handed for polygons.

    • ends: number[] | number[][]

      Ends or Endss.

    • properties: {
          [k: string]: any;
      }

      Properties.

      • [k: string]: any

    Returns ol.render.Feature

Methods

  • Get a feature property by its key.

    Parameters

    • key: string

      Key

    Returns any

    Value for the requested key.

    Api

  • Get the extent of this feature's geometry.

    Returns Extent

    Extent.

    Api

  • Get the feature for working with its geometry.

    Returns ol.render.Feature

    Feature.

    Api

  • Get the feature properties.

    Returns {
        [k: string]: any;
    }

    Feature properties.

    • [k: string]: any

    Api

  • Get the type of this feature's geometry.

    Returns GeometryType

    Geometry type.

    Api

Generated using TypeDoc