Class: MouseHoverPopupView

MouseHover MouseHoverPopupView

Shows an ol.overlay with configured informations about the hovered feature on the map. It's always disabled on touch devices because they usually don't have a mouse to trigger a hover event.

new MouseHoverPopupView(config)

modules/mouseHover/view.js, line 4
Name Type Description
config Object Configuration from Config.js.
Fires:
  • Util#event:RadioRequestUtilIsAny
Listens to Events:

Extends

Methods

createOverlayElement(){void}

modules/mouseHover/view.js, line 66
creates the overlay element and appends it to the map element

isTouchdevice(){Boolean}

modules/mouseHover/view.js, line 33
Checks the device type. Disable the ability on smartphones and tablets as they usually don't have a mouse to hover.
Fires:
  • Util#event:RadioRequestUtilIsAny
Returns:
true:known touchdevice false:not known as touchdevice

render(text){void}

modules/mouseHover/view.js, line 47
Renders the Bootstrap-Tooltip into the mousehoverpopup html: true - So that html br will be integrated trigger: manual - solves bug with hiding tooltip
Name Type Description
text string -