Module for displaying fields.

Hierarchy (view full)

Constructors

Properties

_eventHandler: EventHandler
config?: Config
labelRoot: Container<DisplayObject>
linestrings: GeoJSONLineString
mapmoving: boolean
multipolygons: GeoJSONMultiPolygon
onFeatureHover: ((event: MouseEvent, data: any) => void)
pixiOverlay: pixiOverlayBase

Function for pixi overlay.

points: GeoJSONPoint
polygons: GeoJSONPolygon
root: Container<DisplayObject>

Root container for layer.

visibility: boolean = true

True if layer is currently visible.

Methods

  • Parameters

    • data: FeatureCollection<Geometry, {
          [name: string]: any;
      }>
    • Optionalprops: ((feature: any) => FeatureProps)
        • (feature): FeatureProps
        • Parameters

          • feature: any

          Returns FeatureProps

    Returns void

  • Set visibility of the root PIXI container to a given value.

    Parameters

    • visible: boolean

      Should layer be visible?

    Returns boolean

    True if new visibility was set

  • Check for features at the given coordinates. Will give a list of feature data if any are hit or an empty list if not.

    Parameters

    • pos: Vector2

      Target position in lat-long

    Returns any

    List of features at the given position