remove event listeners on marker and svg remove

#2820