From b719f19dfd42a3d3774289cd9a8ab669286ae2ad Mon Sep 17 00:00:00 2001 From: seohyun319 Date: Sat, 26 Mar 2022 17:47:14 +0900 Subject: [PATCH] DESIGN: change icon size --- thisable/src/assets/images/business.svg | 2 +- thisable/src/assets/images/cafe.svg | 2 +- thisable/src/assets/images/culture.svg | 2 +- thisable/src/assets/images/hotel.svg | 2 +- thisable/src/assets/images/mall.svg | 2 +- thisable/src/assets/images/myself.svg | 4 ++-- thisable/src/assets/images/restaurant.svg | 2 +- thisable/src/assets/images/subway.svg | 2 +- thisable/src/components/MapPage/MapPage.js | 26 ++++++++++------------ 9 files changed, 21 insertions(+), 23 deletions(-) diff --git a/thisable/src/assets/images/business.svg b/thisable/src/assets/images/business.svg index 8c36702..a9e21de 100644 --- a/thisable/src/assets/images/business.svg +++ b/thisable/src/assets/images/business.svg @@ -1,4 +1,4 @@ - + diff --git a/thisable/src/assets/images/cafe.svg b/thisable/src/assets/images/cafe.svg index 91f0d42..9187585 100644 --- a/thisable/src/assets/images/cafe.svg +++ b/thisable/src/assets/images/cafe.svg @@ -1,4 +1,4 @@ - + diff --git a/thisable/src/assets/images/culture.svg b/thisable/src/assets/images/culture.svg index 05630c3..14f951e 100644 --- a/thisable/src/assets/images/culture.svg +++ b/thisable/src/assets/images/culture.svg @@ -1,4 +1,4 @@ - + diff --git a/thisable/src/assets/images/hotel.svg b/thisable/src/assets/images/hotel.svg index 7657c28..7a99b7a 100644 --- a/thisable/src/assets/images/hotel.svg +++ b/thisable/src/assets/images/hotel.svg @@ -1,4 +1,4 @@ - + diff --git a/thisable/src/assets/images/mall.svg b/thisable/src/assets/images/mall.svg index 96fe1e8..d9a04e3 100644 --- a/thisable/src/assets/images/mall.svg +++ b/thisable/src/assets/images/mall.svg @@ -1,4 +1,4 @@ - + diff --git a/thisable/src/assets/images/myself.svg b/thisable/src/assets/images/myself.svg index 048229e..af92d57 100644 --- a/thisable/src/assets/images/myself.svg +++ b/thisable/src/assets/images/myself.svg @@ -1,4 +1,4 @@ - - + + diff --git a/thisable/src/assets/images/restaurant.svg b/thisable/src/assets/images/restaurant.svg index d15706b..2ec9801 100644 --- a/thisable/src/assets/images/restaurant.svg +++ b/thisable/src/assets/images/restaurant.svg @@ -1,4 +1,4 @@ - + diff --git a/thisable/src/assets/images/subway.svg b/thisable/src/assets/images/subway.svg index aa3da58..5816b24 100644 --- a/thisable/src/assets/images/subway.svg +++ b/thisable/src/assets/images/subway.svg @@ -1,4 +1,4 @@ - + diff --git a/thisable/src/components/MapPage/MapPage.js b/thisable/src/components/MapPage/MapPage.js index 7b018ad..213ccc3 100644 --- a/thisable/src/components/MapPage/MapPage.js +++ b/thisable/src/components/MapPage/MapPage.js @@ -70,25 +70,25 @@ function MapPage() { const selectMarker = (location_type) => { let place_icon = ""; - console.log("location_type : ",location_type) + console.log("location_type : ", location_type); if (location_type == "cafe") { - place_icon = cafe + place_icon = cafe; } else if (location_type == "restaurant") { - place_icon = restaurant + place_icon = restaurant; } else if (location_type == "accommodation") { - place_icon = hotel + place_icon = hotel; } else if (location_type == "shoppingmall") { - place_icon = mall + place_icon = mall; } else if (location_type == "subway") { - place_icon = subway + place_icon = subway; } else if (location_type == "administrative") { - place_icon = business + place_icon = business; } else if (location_type == "cultural") { - place_icon = culture + place_icon = culture; } - console.log("place_icon : ",place_icon) - return place_icon - } + console.log("place_icon : ", place_icon); + return place_icon; + }; const renderMap = () => { return ( @@ -139,12 +139,11 @@ function MapPage() { {renderMarker} - ; + ; ); }; - const renderMarker = places && places @@ -181,5 +180,4 @@ function MapPage() { return isLoaded ? renderMap() : ; } - export default MapPage;