diff --git a/src/components/map/MapTiles.js b/src/components/map/MapTiles.js index 5982a4f..7b2cfa9 100644 --- a/src/components/map/MapTiles.js +++ b/src/components/map/MapTiles.js @@ -9,6 +9,8 @@ import ResetMapIcon from "../../icons/ResetMapIcon"; import SelectMultipleIcon from "../../icons/SelectMultipleIcon"; import SelectSingleIcon from "../../icons/SelectSingleIcon"; +import RadioIconButton from "./controls/RadioIconButton"; + import MapTile from "./MapTile"; import Link from "../Link"; import Search from "../Search"; @@ -69,22 +71,31 @@ function MapTiles({ onFocus={() => onMapSelect()} > - - onSelectModeChange(selectMode === "single" ? "multiple" : "single") - } - aria-label={ - selectMode === "single" ? "Select Multiple" : "Select Single" - } - title={selectMode === "single" ? "Select Multiple" : "Select Single"} - ml={1} + - {selectMode === "single" ? ( - - ) : ( + onSelectModeChange("single")} + isSelected={selectMode === "single"} + > - )} - + + onSelectModeChange("multiple")} + isSelected={selectMode === "multiple" || selectMode === "range"} + > + + +