Skip to content

Commit c3e131a

Browse files
authored
Merge pull request #30 from AtThePlace1/develop
Refact: static map src 수정
2 parents 6a15825 + c23be8a commit c3e131a

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

next.config.mjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ const nextConfig = {
2929
{
3030
protocol: 'https',
3131
hostname: 'naveropenapi.apigw.ntruss.com',
32-
port: '',
33-
pathname: '/map-static/v2/raster',
3432
},
3533
{
3634
protocol: 'https',

src/app/_components/DetailCarousel.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export default function DetailCarousel({ images }: DetailCarouselProps) {
4646
src={img}
4747
fill
4848
alt={`카페 이미지 ${idx + 1}`}
49+
priority
4950
className="absolute h-full w-full object-cover"
5051
sizes="(max-width: 768px) 100vw,
5152
(max-width: 1200px) 50vw,

src/app/_components/StaticMap.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ interface StaticMapProps {
66
}
77

88
export default function StaticMap({ latitude, longitude }: StaticMapProps) {
9-
const mapUrl = `https://naveropenapi.apigw.ntruss.com/map-static/v2/raster?&center=${longitude},${latitude}&level=15&scale=2&w=300&h=200&format=png&markers=type:d|size:small|pos:${longitude} ${latitude}&X-NCP-APIGW-API-KEY-ID=${process.env.NEXT_PUBLIC_NAVER_ID_KEY}&X-NCP-APIGW-API-KEY=${process.env.NEXT_PUBLIC_NAVER_MAP_KEY}`;
9+
const mapUrl = `https://naveropenapi.apigw.ntruss.com/map-static/v2/raster?w=300&h=200&&center=${longitude},${latitude}&level=16&scale=2&format=png&markers=type:d|size:small|pos:${longitude} ${latitude}&X-NCP-APIGW-API-KEY-ID=${process.env.NEXT_PUBLIC_NAVER_ID_KEY}&X-NCP-APIGW-API-KEY=${process.env.NEXT_PUBLIC_NAVER_MAP_KEY}`;
1010

1111
return (
1212
<div className="flexCenter h-full w-full">

0 commit comments

Comments
 (0)