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

jumpinjackie / mapguide-react-layout / 15160437878

21 May 2025 11:00AM UTC coverage: 21.631% (-42.6%) from 64.24%
15160437878

Pull #1552

github

web-flow
Merge 8b7153d9e into 236e2ea07
Pull Request #1552: Feature/package updates 2505

839 of 1165 branches covered (72.02%)

11 of 151 new or added lines in 25 files covered. (7.28%)

1332 existing lines in 50 files now uncovered.

4794 of 22163 relevant lines covered (21.63%)

6.89 hits per line

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

80.0
/src/components/map-menu.tsx
1
import * as React from "react";
1✔
2
import { IMapMenuEntry } from "../api/common";
3

4
/**
5
 * MapMenu component props
6
 *
7
 * @export
8
 * @interface IMapMenuProps
9
 */
10
export interface IMapMenuProps {
11
    locale: string | undefined;
12
    selectedMap: string;
13
    maps: IMapMenuEntry[];
14
    onActiveMapChanged?: (name: string) => void;
15
}
16

17
/**
18
 * The MapMenu component provides the ability to switch between active maps
19
 * @param props 
20
 */
21
export const MapMenu = (props: IMapMenuProps) => {
1✔
22
    const [selected, setSelected] = React.useState(undefined);
2✔
23
    const onActiveMapChanged = (e: any) => {
2✔
24
        const value = e.currentTarget.value;
×
25
        setSelected(value);
×
26
        props.onActiveMapChanged?.(value);
×
UNCOV
27
    };
×
28
    return <div>
2✔
29
        {props.maps.map(layer => {
2✔
30
            return <div className="map-menu-item-container" key={`base-layer-${layer.mapName}`}>
4✔
31
                <label className="bp3-control bp3-radio">
4✔
32
                    <input className="map-menu-option" type="radio" value={layer.mapName} checked={layer.mapName === props.selectedMap} onChange={onActiveMapChanged} />
4✔
33
                    <span className="bp3-control-indicator" />
4✔
34
                    {layer.label}
4✔
35
                </label>
4✔
36
            </div>;
4✔
37
        })}
2✔
38
    </div>;
2✔
39
}
2✔
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