Either party may have a view by the jury of the place in question, if in the opinion of the court it is necessary to a just decision. The party moving for it shall advance to the jury such sum as the court orders, to be taxed against the adverse party if the cause is decided against him on the merits or through his default.