Skip to content

About

Adds a mouseintent event that guess user intentions to hover layers!

Resources

Stars

19 stars

Watchers

28 watching

Forks

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leaflet.OverIntent

Aiming is neater than clicking !

This plugins adds a new event mouseintent, that differs from mouseover since it reflects user intentions to aim a particular layer.

Observe the difference with the online demo.

Usage

    var marker = L.marker([lat, lng]).addTo(map);

    marker.on('mouseintent', function (e) {
        // User meant it !
    });

( works with markers and vectorial layers )

Options

  • intentDuration : default is 300ms (See demo.)

Changelog

1.0.1

  • Allow Leaflet 1.x (peer dependency leaflet >=0.7 <2)

1.0.0

  • Initial version

Authors

Makina Corpus

About

Adds a mouseintent event that guess user intentions to hover layers!

Resources

Stars

19 stars

Watchers

28 watching

Forks

Releases

Packages

Used by

Contributors

Languages