Added resize listener to map directive