Skip to content

Commit e2bfa60

Browse files
authored
decrease the minZoom level to allow users to see the whole map (#2736)
* decrease the minZoom level to allow users to see the whole map * fix the test
1 parent 38f4835 commit e2bfa60

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/TaskClusterMap/TaskClusterMap.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import "./TaskClusterMap.scss";
3232
const VisibleTileLayer = WithVisibleLayer(SourcedTileLayer);
3333

3434
export const MAX_ZOOM = 18;
35-
export const MIN_ZOOM = 2;
35+
export const MIN_ZOOM = 0;
3636

3737
/**
3838
* An uncluster option will be offered if no more than number of tasks
@@ -232,7 +232,7 @@ export const TaskClusterMap = (props) => {
232232
<MapContainer
233233
attributionControl={false}
234234
center={props.center}
235-
minZoom={2}
235+
minZoom={0}
236236
maxZoom={18}
237237
maxBounds={[
238238
[-90, -180],

src/components/TaskClusterMap/TaskClusterMap.test.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe("TaskClusterMap", () => {
88
const { getByText } = global.withProvider(
99
<TaskClusterMap getUserAppSetting={() => null} taskMarkers={[]} />,
1010
);
11-
const text = getByText("3000 km");
11+
const text = getByText("10000 km");
1212
expect(text).toBeInTheDocument();
1313
});
1414

0 commit comments

Comments
 (0)