Skip to content

Commit

Permalink
DESIGN: change icon size
Browse files Browse the repository at this point in the history
  • Loading branch information
seohyun319 committed Mar 26, 2022
1 parent 6b4803d commit b719f19
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 23 deletions.
2 changes: 1 addition & 1 deletion thisable/src/assets/images/business.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion thisable/src/assets/images/cafe.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion thisable/src/assets/images/culture.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion thisable/src/assets/images/hotel.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion thisable/src/assets/images/mall.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions thisable/src/assets/images/myself.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion thisable/src/assets/images/restaurant.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion thisable/src/assets/images/subway.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 12 additions & 14 deletions thisable/src/components/MapPage/MapPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -139,12 +139,11 @@ function MapPage() {
</Link>
</div>
{renderMarker}
<Marker position={{ lat: +lat, lng: +lng }} />;
<Marker position={{ lat: +lat, lng: +lng }} icon={myself} />;
</GoogleMap>
);
};


const renderMarker =
places &&
places
Expand Down Expand Up @@ -181,5 +180,4 @@ function MapPage() {
return isLoaded ? renderMap() : <CircularProgress />;
}


export default MapPage;

0 comments on commit b719f19

Please sign in to comment.