Class: FocusMap

ol.interaction. FocusMap

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


new FocusMap()

Deprecated:
  • use ol/interaction/CurrentMap instead
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.