The Control Zoom component provides a Leaflet zoom control positioned at the bottom-right corner of the map.
Key features:
ZoomControl
component from react-leaflet
.controlZoom.css
adapt the default zoom control to match the application’s theme.Files includes:
ControlZoom.tsx
— the component rendering the zoom control.controlZoom.css
— custom CSS for styling and positioning.ControlZoom.test.tsx
— tests verifying rendering and prop correctness.