Skip to content

Commit

Permalink
Fixed zooming at min zoom
Browse files Browse the repository at this point in the history
  • Loading branch information
dhochbaum-dcp committed Dec 20, 2024
1 parent 8ab2dae commit b62e5c3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/components/atlas.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,19 @@ import {
} from "./layers";
import type { MapView, MapViewState } from "@deck.gl/core";

const MAX_ZOOM = 20;
const MIN_ZOOM = 10;

const INITIAL_VIEW_STATE = {
longitude: -74.0008,
latitude: 40.7018,
zoom: 10,
bearing: 0,
pitch: 0,
maxZoom: MAX_ZOOM,
minZoom: MIN_ZOOM,
};

const MAX_ZOOM = 20;
const MIN_ZOOM = 10;

export function Atlas() {
const capitalProjectsLayer = useCapitalProjectsLayer();
const capitalProjectBudgetedGeoJsonLayer =
Expand Down

0 comments on commit b62e5c3

Please sign in to comment.