Options
All
  • Public
  • Public/Protected
  • All
Menu

Creates crosshairs following the mouse on top of a map, helping the user line up the mouse with distant features on the map. This is purely a visual aid.

Hierarchy

  • Crosshairs

Implements

Index

Constructors

constructor

Methods

disable

enable

remove

  • Removes the crosshairs from the assigned map. To re-create them, call setMap again. If you only want to temporarily toggle them, use disable.

    Returns Crosshairs

setMap

  • Set the Map to make the crosshairs follow the mouse when over the given map.

    Parameters

    • olMap: Map

    Returns Crosshairs