fixed next() function with map fitBounds