update map directive