Skip to content

Commit

Permalink
Merge pull request #40 from 4bujak-4bujak/feature/meetingroomQA
Browse files Browse the repository at this point in the history
fix: 마커 이미지 png 변경 및 사이즈 조정
  • Loading branch information
jiohjung98 authored Jun 9, 2024
2 parents 45e6b24 + 4d99213 commit d334671
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
Binary file added public/map/OfficeActive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/map/OfficeInActive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 12 additions & 12 deletions src/components/map/UseMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ const UseMap: React.FC = () => {
position: new naver.maps.LatLng(branch.branchLatitude, branch.branchLongitude),
map: map,
icon: {
url: '/map/OfficeInActive.svg',
size: new naver.maps.Size(48, 48),
scaledSize: new naver.maps.Size(48, 48),
url: '/map/OfficeInActive.png',
size: new naver.maps.Size(33, 46),
scaledSize: new naver.maps.Size(33, 46),
origin: new naver.maps.Point(0, 0),
anchor: new naver.maps.Point(24, 24),
},
Expand All @@ -121,9 +121,9 @@ const UseMap: React.FC = () => {
const updateMarkers = () => {
Object.values(markerRefs.current).forEach(marker => {
marker.setIcon({
url: '/map/OfficeInActive.svg',
size: new naver.maps.Size(48, 48),
scaledSize: new naver.maps.Size(48, 48),
url: '/map/OfficeInActive.png',
size: new naver.maps.Size(33, 46),
scaledSize: new naver.maps.Size(33, 46),
origin: new naver.maps.Point(0, 0),
anchor: new naver.maps.Point(24, 24),
});
Expand All @@ -133,9 +133,9 @@ const UseMap: React.FC = () => {
const selectedMarkerRef = markerRefs.current[selectedMarker];
if (selectedMarkerRef) {
selectedMarkerRef.setIcon({
url: '/map/OfficeActive.svg',
size: new naver.maps.Size(60, 60),
scaledSize: new naver.maps.Size(60, 60),
url: '/map/OfficeActive.png',
size: new naver.maps.Size(45, 63),
scaledSize: new naver.maps.Size(45, 63),
origin: new naver.maps.Point(0, 0),
anchor: new naver.maps.Point(30, 30),
});
Expand All @@ -146,9 +146,9 @@ const UseMap: React.FC = () => {
const resetMarkers = () => {
Object.values(markerRefs.current).forEach(marker => {
marker.setIcon({
url: '/map/OfficeInActive.svg',
size: new naver.maps.Size(48, 48),
scaledSize: new naver.maps.Size(48, 48),
url: '/map/OfficeInActive.png',
size: new naver.maps.Size(33, 46),
scaledSize: new naver.maps.Size(33, 46),
origin: new naver.maps.Point(0, 0),
anchor: new naver.maps.Point(24, 24),
});
Expand Down

0 comments on commit d334671

Please sign in to comment.