Skip to main content

@mapgear/geoapps > LayerItem > EnableHover

LayerItem.EnableHover() method

Enable hover on the layer, which shows a pointer cursor when hovering a layer

Signature:
EnableHover(enable: boolean, options?: I.HoverOptions): void;

Parameters

ParameterTypeDescription
enablebooleanWhether hover is enabled
optionsI.HoverOptions(Optional) Optional options for the hover method
Returns:

void

Remarks

This can have a significant performance impact. Be cautios when enabling this option!