Skip to content

Commit b719f19

Browse files
committed
DESIGN: change icon size
1 parent 6b4803d commit b719f19

File tree

9 files changed

+21
-23
lines changed

9 files changed

+21
-23
lines changed

thisable/src/assets/images/business.svg

Lines changed: 1 addition & 1 deletion
Loading

thisable/src/assets/images/cafe.svg

Lines changed: 1 addition & 1 deletion
Loading

thisable/src/assets/images/culture.svg

Lines changed: 1 addition & 1 deletion
Loading

thisable/src/assets/images/hotel.svg

Lines changed: 1 addition & 1 deletion
Loading

thisable/src/assets/images/mall.svg

Lines changed: 1 addition & 1 deletion
Loading

thisable/src/assets/images/myself.svg

Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 1 addition & 1 deletion
Loading

thisable/src/assets/images/subway.svg

Lines changed: 1 addition & 1 deletion
Loading

thisable/src/components/MapPage/MapPage.js

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -70,25 +70,25 @@ function MapPage() {
7070

7171
const selectMarker = (location_type) => {
7272
let place_icon = "";
73-
console.log("location_type : ",location_type)
73+
console.log("location_type : ", location_type);
7474
if (location_type == "cafe") {
75-
place_icon = cafe
75+
place_icon = cafe;
7676
} else if (location_type == "restaurant") {
77-
place_icon = restaurant
77+
place_icon = restaurant;
7878
} else if (location_type == "accommodation") {
79-
place_icon = hotel
79+
place_icon = hotel;
8080
} else if (location_type == "shoppingmall") {
81-
place_icon = mall
81+
place_icon = mall;
8282
} else if (location_type == "subway") {
83-
place_icon = subway
83+
place_icon = subway;
8484
} else if (location_type == "administrative") {
85-
place_icon = business
85+
place_icon = business;
8686
} else if (location_type == "cultural") {
87-
place_icon = culture
87+
place_icon = culture;
8888
}
89-
console.log("place_icon : ",place_icon)
90-
return place_icon
91-
}
89+
console.log("place_icon : ", place_icon);
90+
return place_icon;
91+
};
9292

9393
const renderMap = () => {
9494
return (
@@ -139,12 +139,11 @@ function MapPage() {
139139
</Link>
140140
</div>
141141
{renderMarker}
142-
<Marker position={{ lat: +lat, lng: +lng }} />;
142+
<Marker position={{ lat: +lat, lng: +lng }} icon={myself} />;
143143
</GoogleMap>
144144
);
145145
};
146146

147-
148147
const renderMarker =
149148
places &&
150149
places
@@ -181,5 +180,4 @@ function MapPage() {
181180
return isLoaded ? renderMap() : <CircularProgress />;
182181
}
183182

184-
185183
export default MapPage;

0 commit comments

Comments
 (0)