Skip to content

Smooth wheel zoom plugin for leaflet. This plugin provide smooth zoom ux like Google map.

License

Notifications You must be signed in to change notification settings

Dcode-Evo/Leaflet.SmoothWheelZoom

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leaflet.SmoothWheelZoom

Smooth wheel zoom for leaflet.

This plugin provide smooth zoom UX like Google map.

Demo

Usage

var map = L.map('map', {
  scrollWheelZoom: false, // disable original zoom function
  smoothWheelZoom: true,  // enable smooth zoom 
  smoothSensitivity: 1,   // zoom speed. default is 1
  zoomSnap: 0,            // disable zoom snapping (for touchscreen zooming, and fitBounds(), etc.)
});

demo

About

Smooth wheel zoom plugin for leaflet. This plugin provide smooth zoom ux like Google map.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 66.2%
  • HTML 33.2%
  • TypeScript 0.6%