I want to keep the default icon and just change it's color on click. What property should I use to change color?
this is my makeMarkers function:
makeMarkers=()=>{
const marker=this.props.markers.map((marker,id)=>{
return <Marker marker={marker} position={{lat:marker.lat, lng:marker.lng}}
onClick={()=>this.props.onMarkerClick(marker)}
>
{marker.showWindow && (
<InfoWindow>
<div>Something is there!</div>
</InfoWindow>)
}
</Marker>
})
return marker;
}