Add documentation for map directive