How can I upload a custom Google Maps marker icon?

I would like to know if this is possible and if so how?