• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Problematy / goodmap / 28131466663

24 Jun 2026 09:41PM UTC coverage: 74.158%. First build
28131466663

Pull #365

github

web-flow
Merge 6f4f8c15d into 27cbf5bb0
Pull Request #365: refactor!: aligned with breaking changes on platzky

174 of 277 branches covered (62.82%)

Branch coverage included in aggregate %.

575 of 733 new or added lines in 26 files covered. (78.44%)

575 of 733 relevant lines covered (78.44%)

8.77 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

71.43
/frontend/src/components/Map/components/ZoomControl.jsx
1
import React from 'react';
2
import { useMap } from 'react-leaflet';
3
import Control from 'react-leaflet-custom-control';
4
import { Button } from '@mui/material';
5
import { zoomInButtonStyle, zoomOutButtonStyle } from '../../../styles/buttonStyle';
6

7
/**
8
 * Custom zoom control component for the Leaflet map.
9
 * Renders stacked zoom in (+) and zoom out (-) buttons in the top-right corner of the map.
10
 * Provides a styled alternative to the default Leaflet zoom controls.
11
 *
12
 * @returns {React.ReactElement} Control component with zoom in/out buttons
13
 */
14
export const CustomZoomControl = () => {
1✔
15
    const map = useMap();
2✔
16

17
    const handleZoomIn = () => {
2✔
NEW
18
        map.zoomIn();
×
19
    };
20

21
    const handleZoomOut = () => {
2✔
NEW
22
        map.zoomOut();
×
23
    };
24

25
    return (
2✔
26
        <Control prepend position="topright">
27
            <div style={{ display: 'flex', flexDirection: 'column', gap: '2px' }}>
28
                <Button
29
                    onClick={handleZoomIn}
30
                    variant="contained"
31
                    aria-label="Zoom in"
32
                    sx={zoomInButtonStyle}
33
                >
34
                    +
35
                </Button>
36
                <Button
37
                    onClick={handleZoomOut}
38
                    variant="contained"
39
                    aria-label="Zoom out"
40
                    sx={zoomOutButtonStyle}
41
                >
42
                    −
43
                </Button>
44
            </div>
45
        </Control>
46
    );
47
};
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc