Class: FocusMap

ol.interaction. FocusMap


new FocusMap()

An interaction to focus on the map on click. Usefull when using keyboard event on the map.

Fires:
  • event:focus

Extends

  • ol.interaction.Interaction

Methods


setMap()

Set the map > add the focus button and focus on the map when pointerdown to enable keyboard events.