Interface OnLayerMouseOptions<F, L>

interface OnLayerMouseOptions<F, L> {
    event: MapClickEvent;
    feature?: F;
    getBounds: (() => LngLatBoundsArray);
    getCenter: (() => LngLatArray);
    layer: L;
    selected?: boolean;
    source: any;
}

Type Parameters

Hierarchy (view full)

Properties

feature?: F
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
selected?: boolean
source: any