It was once known as Jaisalmer state .
It is the capital of Jaisalmer District .