Skip to content

feat: add smooth wheel zoom functionality to map component#36

Open
ariqpradipa wants to merge 1 commit into
mainfrom
feat/smooth-scrolling
Open

feat: add smooth wheel zoom functionality to map component#36
ariqpradipa wants to merge 1 commit into
mainfrom
feat/smooth-scrolling

Conversation

@ariqpradipa
Copy link
Copy Markdown
Member

This pull request introduces a smooth zoom feature to the map component using a custom Leaflet handler.
Map Smooth Zoom Feature:

  • Added a new file src/lib/smoothWheelZoom.ts that implements a custom Leaflet map handler for smooth wheel zooming, including sensitivity options and animation logic.
  • Updated src/common/components/map/index.tsx to import and initialize the smooth wheel zoom handler, disable the default scroll wheel zoom, and enable smooth zoom if available. The map's sensitivity is set via options.
  • Modified the map component to use the new smooth zoom logic and adjusted the scroll wheel zoom prop for MapContainer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant