Skip to content

Commit

Permalink
chore : 지도 축소 제한 (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmlim0070 authored Dec 9, 2024
1 parent 7c9b115 commit 5c8a5c5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/MapPage/Maplibre/MaplibreWithSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ export const MaplibreWithSearch = ({
</div>

{searchedLocation?.name && (

<div className="absolute top-[5rem] w-[340px] h-[48px] left-1/2 transform -translate-x-1/2 z-10 bg-sample-gray shadow-md text-sample-black text-bold rounded-md p-2 flex items-center justify-between">

<LuMapPin className="ml-2" />
<span className="flex-1 ml-4">{searchedLocation.name}</span>
<LiaTimesSolid
Expand All @@ -68,7 +66,7 @@ export const MaplibreWithSearch = ({
style={{ width: '100%', height: '100%' }}
mapStyle={mapStyle as StyleSpecification}
mapLib={maplibregl}
minZoom={6}
minZoom={14}
maxZoom={18}
onClick={() => clearSelectedLetter()}
>
Expand Down

0 comments on commit 5c8a5c5

Please sign in to comment.