Skip to content

aijcoa/Leaflet.SmoothWheelZoom

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Smooth wheel zoom plugin for leaflet

This solution is based on the repo with some improvements

Usage

fork the repository

npm i gitAccount/Leaflet.SmoothWheelZoom.git#x.x.x

import 'leaflet.smoothwheelzoom';

...

var map = L.map('map', {
  scrollWheelZoom: false, // disable original zoom function
  smoothWheelZoom: true,  // enable smooth zoom 
  smoothSensitivity: 1.5,   // zoom speed. default is 1
});

With Vue2Leaflet

import 'leaflet.smoothwheelzoom';

...

<l-map
    :zoom="zoom"
    :center="center"
    :options="{
        scrollWheelZoom: false,
        smoothWheelZoom: true,
        smoothSensitivity: 1.5,
    }"
  >

About

Smooth wheel zoom plugin for leaflet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%