Use map events to set background map