@equinor/videx-map
    Preparing search index...

    Class GeoJSONModule

    Module for displaying fields.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

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

    Function for pixi overlay.

    points: GeoJSONPoint
    polygons: GeoJSONPolygon
    root: Container

    Root container for layer.

    visibility: boolean = true

    True if layer is currently visible.

    Methods

    • Parameters

      • data: FeatureCollection
      • Optionalprops: (feature: any) => 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