@@ -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-
185183export default MapPage ;
0 commit comments