check for map before unhooking "add marker on click"