@dvina/ngx-leaflet-smooth-zoom
TypeScript icon, indicating that this package has built-in type declarations

17.0.0 • Public • Published

@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,
});

demo

Demo

Demo

Readme

Keywords

none

Package Sidebar

Install

npm i @dvina/ngx-leaflet-smooth-zoom

Weekly Downloads

9

Version

17.0.0

License

MIT

Unpacked Size

17.2 kB

Total Files

15

Last publish

Collaborators

  • emiryumak
  • kant-admin