Skip to content

Commit

Permalink
Updates to map
Browse files Browse the repository at this point in the history
  • Loading branch information
georgemoon committed Feb 26, 2024
1 parent c93aed4 commit ebc5470
Show file tree
Hide file tree
Showing 7 changed files with 1,221 additions and 689 deletions.
30 changes: 15 additions & 15 deletions apps/map/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,31 @@
"format": "prettier --write \"**/*.{ts,tsx,md,js}\""
},
"dependencies": {
"@turf/turf": "^6.5.0",
"@vercel/analytics": "^1.1.1",
"axios": "^1.6.2",
"bootstrap": "^5.3.2",
"@turf/turf": "6.5.0",
"@vercel/analytics": "^1.2.2",
"axios": "^1.6.7",
"bootstrap": "^5.3.3",
"formik": "^2.4.5",
"leaflet": "^1.9.4",
"next": "14.0.3",
"next": "14.1.0",
"qs": "^6.11.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-leaflet": "^4.2.1",
"swr": "^2.2.4"
"swr": "^2.2.5"
},
"devDependencies": {
"@types/bootstrap": "^5.2.10",
"@types/geojson": "^7946.0.13",
"@types/geojson": "^7946.0.14",
"@types/leaflet": "^1.9.8",
"@types/node": "20.10.0",
"@types/qs": "^6.9.10",
"@types/react": "18.2.39",
"@types/react-dom": "18.2.17",
"@types/node": "20.11.20",
"@types/qs": "^6.9.11",
"@types/react": "18.2.59",
"@types/react-dom": "18.2.19",
"@types/react-leaflet": "^3.0.0",
"eslint": "8.54.0",
"eslint-config-next": "14.0.3",
"prettier": "^3.1.0",
"typescript": "5.3.2"
"eslint": "8.57.0",
"eslint-config-next": "14.1.0",
"prettier": "^3.2.5",
"typescript": "5.3.3"
}
}
2 changes: 1 addition & 1 deletion apps/map/src/components/filters/ZoneFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useRouter } from "next/router";
import { FeatureCollection } from "geojson";
import { Formik, Field, Form, FormikHelpers } from "formik";

const keaZones: FeatureCollection = require("public/geo/kea-zones_2023-05-02.json");
const keaZones: FeatureCollection = require("@/geo/kea-zones_2023-05-02.json");

interface ZoneFilter {
zoneId?: string;
Expand Down
2 changes: 1 addition & 1 deletion apps/map/src/components/views/FWFMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import Menu from "@/components/Menu";
import { ShowMenuContext } from "@/components/context";
import { LayerStatuses } from "@/components/map/types";

const fwfBlocks: FeatureCollection = require("public/geo/fwf-blocks_2022-10-31.json");
const fwfBlocks: FeatureCollection = require("@/geo/fwf-blocks_2022-10-31.json");
const fwfBlocksBbox = bbox(fwfBlocks);

export default function FWFMap() {
Expand Down
2 changes: 1 addition & 1 deletion apps/map/src/components/views/ZoneMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import Menu from "@/components/Menu";
import { ShowMenuContext } from "@/components/context";
import { LayerStatuses } from "@/components/map/types";

const keaZones: FeatureCollection = require("public/geo/kea-zones_2023-05-02.json");
const keaZones: FeatureCollection = require("@/geo/kea-zones_2023-05-02.json");

export default function ZoneMap() {
const showMenu = useContext(ShowMenuContext);
Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit ebc5470

Please sign in to comment.