Added logic to fit bounds to markers