interface LayerDefinition<F, L> {
    feature: F;
    getBounds: (() => LngLatBoundsArray);
    getCenter: (() => LngLatArray);
    layer?: L;
    target: LayerAdapter<any, any, AdapterOptions<Record<string, any>, Record<string, any>>>;
    visible?: boolean;
}

Type Parameters

  • F extends Feature = Feature
  • L = any

Hierarchy (view full)

Properties

feature: F

A vector layer object in geojson format.

getBounds: (() => LngLatBoundsArray)

Get the extent for the geometry on which the action was executed.

getCenter: (() => LngLatArray)

Get the center for the geometry on which the action was executed.

layer?: L

Native layer for a specific adapter layers of a specific map adapter.

target: LayerAdapter<any, any, AdapterOptions<Record<string, any>, Record<string, any>>>

The adapter in which the layer is created.

visible?: boolean

Is layer on the map