makinacorpus/Leaflet.OverIntent

Name: Leaflet.OverIntent

Owner: Makina Corpus

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

Created: 2013-09-03 10:15:05.0

Updated: 2017-02-24 10:33:14.0

Pushed: 2016-09-12 10:02:11.0

Homepage: http://makinacorpus.github.io/Leaflet.OverIntent

Size: 14

Language: HTML

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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

Authors

Makina Corpus


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.