Use Crosshairs as a mouse cursor for a Leaflet map
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
L.Crosshairs.js
README.md
index.html

README.md

Leaflet.Crosshairs

Displays a crosshair mouse cursor on the map.

Usage

Include the L.Crosshair.js file and create a map, then call:

L.crosshairs().addTo(map)

//Style Options
L.crosshairs({
  style: {
    opacity: 1,
    fillOpacity: 0,
    weight: 2,
    color: '#333',
    radius: 20
  }
})