An advisory measure before voters in the most populous county in Illinois is intended to signal public support for a legalization bill in the Legislature.