Skip to content

Commit 3b1f5ba

Browse files
committed
update init center for map
1 parent e80f6f1 commit 3b1f5ba

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

web/src/components/FieldDrawMap.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import L from "leaflet";
1515
export default function FieldDrawMap({
1616
value, // GeoJSON geometry: Polygon | MultiPolygon
1717
onChange,
18-
initialCenter = [47.4554598, -122.2208032],
18+
initialCenter = [42.6038936, -113.7710083], // 42.6038936,-113.7710083
1919
initialZoom = 14,
2020
rememberView = true,
2121
fitToGeometry = true,

web/src/views/CreateField.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ import { Loader2, Map as MapIcon, Plus, Trash2 } from "lucide-react";
99
import { apiFetch } from "../lib/api.js";
1010
import FieldDrawMap from "../components/FieldDrawMap.jsx";
1111

12-
const DEFAULT_CENTER = [47.4554598, -122.2208032];
12+
// const DEFAULT_CENTER = [47.4554598, -122.2208032];
13+
const DEFAULT_CENTER = [42.6038936, -113.7710083];
1314
const DEFAULT_ZOOM = 14;
1415

1516
export default function CreateField() {

0 commit comments

Comments
 (0)