viewport and location index