Class: GoLayerInteractions

GoLayerInteractions

new GoLayerInteractions()

Interactions/GoLayerInteractions/index.ts, line 7

Class responsible for managing layer interactions such as hover effects on a map.

Methods

changeDefaultHoverZIndex(zindex){GoHover}

Interactions/GoLayerInteractions/index.ts, line 104

Changes the z-index of the default hover interaction.

Name Type Description
zindex number

The new z-index value for the hover interaction.

Returns:
Type Description
GoHover
  • The updated GoHover object.

changeVisibilityDefaultHover(active){void}

Interactions/GoLayerInteractions/index.ts, line 76

Changes the visibility of the default hover interaction.

Name Type Description
active boolean

A boolean indicating whether to show or hide the hover interaction.

Returns:
Type Description
void

getDefaultHover(){GoHover}

Interactions/GoLayerInteractions/index.ts, line 66

Retrieves the default hover interaction.

Returns:
Type Description
GoHover
  • The current default hover interaction.

hasDefaulthover(){boolean}

Interactions/GoLayerInteractions/index.ts, line 57

Checks if the default hover interaction is set.

Returns:
Type Description
boolean
  • Returns true if the default hover interaction exists, false otherwise.

removeDefaultHover(){void}

Interactions/GoLayerInteractions/index.ts, line 88

Removes the default hover interaction from the map.

Returns:
Type Description
void

GoLayerInteractions

new GoLayerInteractions(layer, olMap, interactions)

Interactions/GoLayerInteractions/index.ts, line 26

Creates an instance of GoLayerInteractions.

Name Type Description
layer GOLayer

The layer associated with the interactions.

olMap OlMap

The OpenLayers map object.

interactions LayerInteractions

The set of interactions to be applied to the layer.

Methods

changeDefaultHoverZIndex(zindex){GoHover}

Interactions/GoLayerInteractions/index.ts, line 104

Changes the z-index of the default hover interaction.

Name Type Description
zindex number

The new z-index value for the hover interaction.

Returns:
Type Description
GoHover
  • The updated GoHover object.

changeVisibilityDefaultHover(active){void}

Interactions/GoLayerInteractions/index.ts, line 76

Changes the visibility of the default hover interaction.

Name Type Description
active boolean

A boolean indicating whether to show or hide the hover interaction.

Returns:
Type Description
void

getDefaultHover(){GoHover}

Interactions/GoLayerInteractions/index.ts, line 66

Retrieves the default hover interaction.

Returns:
Type Description
GoHover
  • The current default hover interaction.

hasDefaulthover(){boolean}

Interactions/GoLayerInteractions/index.ts, line 57

Checks if the default hover interaction is set.

Returns:
Type Description
boolean
  • Returns true if the default hover interaction exists, false otherwise.

removeDefaultHover(){void}

Interactions/GoLayerInteractions/index.ts, line 88

Removes the default hover interaction from the map.

Returns:
Type Description
void