@dvina/ngx-leaflet-smooth-zoom
v17.0.0
Published
Angular directives for the Leaflet Smooth Zoom plugin
Downloads
116
Readme
@dvina/ngx-leaflet-smooth-zoom
smooth wheel zoom for leaflet in angular. Using projektpro-leaflet-smoothwheelzoom
This plugin provide smooth zoom ux like Google map.
Install
Install the package and its peer dependencies via npm (or yarn):
npm install leaflet
npm install @dvina/ngx-leaflet-smooth-zoom
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,
});