Skip to content

Commit

Permalink
Fix. googlemaps 의존성 추가
Browse files Browse the repository at this point in the history
.

.

.
  • Loading branch information
Miensoap committed Jun 5, 2024
1 parent 607efe7 commit b36e3dd
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 3 deletions.
8 changes: 8 additions & 0 deletions FE/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions FE/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
},
"dependencies": {
"@googlemaps/react-wrapper": "^1.1.35",
"@types/googlemaps": "^3.43.3",
"next": "^14.2.3",
"react": "^18",
"react-dom": "^18"
Expand Down
3 changes: 1 addition & 2 deletions FE/src/components/map/GoogleMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function GoogleMap() {
lng: 127.0,
},
zoom: 16,
mapId: "bc3c0232f45fc3c5",
// mapId: "bc3c0232f45fc3c5",
disableDefaultUI: true,
clickableIcons: false,
minZoom: 10,
Expand All @@ -38,7 +38,6 @@ function GoogleMap() {
},
strictBounds: true,
},
styles: darkMapStyle,
});

setGoogleMap(instance);
Expand Down
2 changes: 1 addition & 1 deletion FE/src/components/map/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export interface Location {
address: string;
zipCode: number;
point: [number, number];
point: { lat: number; lng: number };
}

export interface Accommodation {
Expand Down
5 changes: 5 additions & 0 deletions FE/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@
"@swc/counter" "^0.1.3"
tslib "^2.4.0"

"@types/googlemaps@^3.43.3":
version "3.43.3"
resolved "https://registry.npmjs.org/@types/googlemaps/-/googlemaps-3.43.3.tgz"
integrity sha512-ZWNoz/O8MPEpiajvj7QiqCY8tTLFNqNZ/a+s+zTV58wFVNAvvqV4bdGfnsjTb5Cs4V6wEsLrX8XRhmnyYJ2Tdg==

"@types/json5@^0.0.29":
version "0.0.29"
resolved "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz"
Expand Down

0 comments on commit b36e3dd

Please sign in to comment.