8000 GitHub - jvgriffis/Leaflet.singleclick: singleclick event support for L.Map
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jvgriffis/Leaflet.singleclick

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leaflet.singleclick

This plugin extends L.Evented to fire the singleclick event. A singleclick happens when clicking on something but not double-clicking for 500msec.

The timeout can be configured by setting the singleClickTimeout option on the relevant L.Evented, like so:

marker.options.singleClickTimeout = 250;
marker.on('singleclick', function(ev){ ... } );

Works with Leaflet 1.0.0-beta1 and greater. Does not work with 0.7.x.

Live example

http://mazemap.github.io/Leaflet.singleclick/

About

singleclick event support for L.Map

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 57.4%
  • JavaScript 42.6%
0