first version of the scroll tracking system to update the map position
extracted the calculateCurrentPOIIndex to the scrollCallback