Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MapElement<Feature, Style>

An object that represents a map element and contains the data, style and renderable object associated with the element.

Type parameters

Hierarchy

Index

Constructors

Properties

Accessors

Constructors

constructor

  • new MapElement(data: any, style: Style, renderable: any): MapElement
  • Parameters

    • data: any
    • style: Style
    • renderable: any

    Returns MapElement

Properties

data

data: any

Model data this element represents.

memberof

MapElement

geometry

geometry: Feature

GeoJSON geometry represented by the element.

memberof

MapElement

id

id: string

The element identifier.

memberof

MapElement

renderable

renderable: any

Native map object that gets added to a map view based on the current strategy.

memberof

MapElement

style

style: Style

Style configuration for the element.

memberof

MapElement

Accessors

adjustOpacity

  • get adjustOpacity(): boolean
  • A Boolean value indicating whether the element should adjust its opacity when the parent data source's opacity changes. Default value is true.

    readonly
    memberof

    MapElement

    Returns boolean

bounds

  • Returns the coordinate bounds that contains the element's geometry.

    readonly
    memberof

    MapElement

    Returns CoordinateBounds

Generated using TypeDoc